Expand the size of /dev/mapper/qubes_dom000-root - out of space

39 views
Skip to first unread message

dumbcyber

unread,
Jan 9, 2017, 6:02:05 AM1/9/17
to qubes-users
I built Qubes on a 64Gb USB stick. I then successfully cloned the stick to an external SSD drive using Clonezilla. The SSD drive is 500Gb in total size.

As a result my /dev/mapper/qubes_dom000-root on the SSD is only 53Gb in total size according to "df -h" in dom0.

I used gparted on another linux machine to extend the size of this partition (qubes_dom000) to the full size available. Gparted then shows 57Gb used and 360Gb free.

I boot off the SSD into Qubes and run "df -h" again but it still shows only 53G total size.

Is there a "right" way to extend the size of /dev/mapper/qubes_dom000-root, if in fact its at all possible?

Thanks in advance.

Bernhard

unread,
Jan 9, 2017, 7:02:53 AM1/9/17
to qubes...@googlegroups.com
Hello, I am not expert, but often such differences are explained by the
following calculation: 1 KB is 2^10 = 1024 bytes and not 1000. While
this difference is little, in third power it becomes big: 2^30 * 53=
56,908,316,672
so *real* 53 GiB are approx 60 * 10^6 bytes which sometimes are called
GB al well ... Bernhard

Alex

unread,
Jan 9, 2017, 7:12:42 AM1/9/17
to qubes...@googlegroups.com
The problem here is not the rounding (yes, usb pen drives are usually
measured with the SI interpretation of the multiplication prefixes) but
the enlargement of the filesystem.

dumbcyber wrote that he correctly adjusted the partition size, but
that's not enough; the filesystem on it has to be resized as well.

I'm not an expert with lvm either, but online guides can be found on
resizing LVM volumes and filesystems...

--
Alex

Unman

unread,
Jan 9, 2017, 8:38:12 AM1/9/17
to dumb...@riseup.net, qubes...@googlegroups.com
Assuming that the LV has been succesfully resized then resize2fs is what
you need.

dumbcyber

unread,
Jan 9, 2017, 5:57:05 PM1/9/17
to qubes-users, dumb...@riseup.net, un...@thirdeyesecurity.org

Thanks, ran this from dom0 and worked fine.

Reply all
Reply to author
Forward
0 new messages