How to increase size of root partition at /dev/sda1 from /dev/sdb1?
I have an Ubuntu 16.04 system without GUI (only command line) with a very limited root partition (20GB) and 1 storage partition (1000GB) as below
sudo parted -l
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 21.5GB 21.5GB primary ext4 boot
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sdb: 1074GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 1074GB 1074GB primary ext4
The current status of these disk are:
df -hP
Filesystem Size Used Avail Use% Mounted on
udev 27G 0 27G 0% /dev
tmpfs 5.4G 530M 4.9G 10% /run
/dev/sda1 20G 19G 194M 99% / (almost full!!!!!)
tmpfs 27G 112K 27G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 27G 0 27G 0% /sys/fs/cgroup
/dev/sdb1 985G 602G 333G 65% /rasv1 (more space!!!!!)
tmpfs 5.4G 20K 5.4G 1% /run/user/121
tmpfs 5.4G 0 5.4G 0% /run/user/1001
How can I increase the size of root partition for /dev/sda1 (e.g: 20GB -> 100 GB) from /dev/sdb2 (1000GB -> 900GB) online (no liveCD, USB boot, reboot)?
boot partitioning root fdisk parted
add a comment |
I have an Ubuntu 16.04 system without GUI (only command line) with a very limited root partition (20GB) and 1 storage partition (1000GB) as below
sudo parted -l
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 21.5GB 21.5GB primary ext4 boot
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sdb: 1074GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 1074GB 1074GB primary ext4
The current status of these disk are:
df -hP
Filesystem Size Used Avail Use% Mounted on
udev 27G 0 27G 0% /dev
tmpfs 5.4G 530M 4.9G 10% /run
/dev/sda1 20G 19G 194M 99% / (almost full!!!!!)
tmpfs 27G 112K 27G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 27G 0 27G 0% /sys/fs/cgroup
/dev/sdb1 985G 602G 333G 65% /rasv1 (more space!!!!!)
tmpfs 5.4G 20K 5.4G 1% /run/user/121
tmpfs 5.4G 0 5.4G 0% /run/user/1001
How can I increase the size of root partition for /dev/sda1 (e.g: 20GB -> 100 GB) from /dev/sdb2 (1000GB -> 900GB) online (no liveCD, USB boot, reboot)?
boot partitioning root fdisk parted
1
Unless you are using LVM, or zfs (or a few others) I don't think you could borrow for /sdb to feed /sda. But this is a VM - why not make the virtual disk /sda bigger, and expand the file system for it? And make a live USB while you are at this.
– Charles Green
9 hours ago
1
Possible duplicate of How to resize virtual machine disk?
– Charles Green
9 hours ago
add a comment |
I have an Ubuntu 16.04 system without GUI (only command line) with a very limited root partition (20GB) and 1 storage partition (1000GB) as below
sudo parted -l
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 21.5GB 21.5GB primary ext4 boot
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sdb: 1074GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 1074GB 1074GB primary ext4
The current status of these disk are:
df -hP
Filesystem Size Used Avail Use% Mounted on
udev 27G 0 27G 0% /dev
tmpfs 5.4G 530M 4.9G 10% /run
/dev/sda1 20G 19G 194M 99% / (almost full!!!!!)
tmpfs 27G 112K 27G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 27G 0 27G 0% /sys/fs/cgroup
/dev/sdb1 985G 602G 333G 65% /rasv1 (more space!!!!!)
tmpfs 5.4G 20K 5.4G 1% /run/user/121
tmpfs 5.4G 0 5.4G 0% /run/user/1001
How can I increase the size of root partition for /dev/sda1 (e.g: 20GB -> 100 GB) from /dev/sdb2 (1000GB -> 900GB) online (no liveCD, USB boot, reboot)?
boot partitioning root fdisk parted
I have an Ubuntu 16.04 system without GUI (only command line) with a very limited root partition (20GB) and 1 storage partition (1000GB) as below
sudo parted -l
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sda: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 21.5GB 21.5GB primary ext4 boot
Model: QEMU QEMU HARDDISK (scsi)
Disk /dev/sdb: 1074GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 1074GB 1074GB primary ext4
The current status of these disk are:
df -hP
Filesystem Size Used Avail Use% Mounted on
udev 27G 0 27G 0% /dev
tmpfs 5.4G 530M 4.9G 10% /run
/dev/sda1 20G 19G 194M 99% / (almost full!!!!!)
tmpfs 27G 112K 27G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 27G 0 27G 0% /sys/fs/cgroup
/dev/sdb1 985G 602G 333G 65% /rasv1 (more space!!!!!)
tmpfs 5.4G 20K 5.4G 1% /run/user/121
tmpfs 5.4G 0 5.4G 0% /run/user/1001
How can I increase the size of root partition for /dev/sda1 (e.g: 20GB -> 100 GB) from /dev/sdb2 (1000GB -> 900GB) online (no liveCD, USB boot, reboot)?
boot partitioning root fdisk parted
boot partitioning root fdisk parted
asked 10 hours ago
Bằng RikimaruBằng Rikimaru
1012
1012
1
Unless you are using LVM, or zfs (or a few others) I don't think you could borrow for /sdb to feed /sda. But this is a VM - why not make the virtual disk /sda bigger, and expand the file system for it? And make a live USB while you are at this.
– Charles Green
9 hours ago
1
Possible duplicate of How to resize virtual machine disk?
– Charles Green
9 hours ago
add a comment |
1
Unless you are using LVM, or zfs (or a few others) I don't think you could borrow for /sdb to feed /sda. But this is a VM - why not make the virtual disk /sda bigger, and expand the file system for it? And make a live USB while you are at this.
– Charles Green
9 hours ago
1
Possible duplicate of How to resize virtual machine disk?
– Charles Green
9 hours ago
1
1
Unless you are using LVM, or zfs (or a few others) I don't think you could borrow for /sdb to feed /sda. But this is a VM - why not make the virtual disk /sda bigger, and expand the file system for it? And make a live USB while you are at this.
– Charles Green
9 hours ago
Unless you are using LVM, or zfs (or a few others) I don't think you could borrow for /sdb to feed /sda. But this is a VM - why not make the virtual disk /sda bigger, and expand the file system for it? And make a live USB while you are at this.
– Charles Green
9 hours ago
1
1
Possible duplicate of How to resize virtual machine disk?
– Charles Green
9 hours ago
Possible duplicate of How to resize virtual machine disk?
– Charles Green
9 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1117409%2fhow-to-increase-size-of-root-partition-at-dev-sda1-from-dev-sdb1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1117409%2fhow-to-increase-size-of-root-partition-at-dev-sda1-from-dev-sdb1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Unless you are using LVM, or zfs (or a few others) I don't think you could borrow for /sdb to feed /sda. But this is a VM - why not make the virtual disk /sda bigger, and expand the file system for it? And make a live USB while you are at this.
– Charles Green
9 hours ago
1
Possible duplicate of How to resize virtual machine disk?
– Charles Green
9 hours ago