You are not logged in.
Pages: 1
Similar to this thread, I attempted to shrink my /home partition to make room for another partition after it. My /home partition starts at 54GB and took up the remaining 946GB of the drive. I wanted to shave off 150GB for the new partition. I booted a live-cd, and used
# resize2fs /dev/sda4 796G
# parted
> resizepart 4 850GB
Everything seemed to work fine, though when I rebooted, I got the error in the title, and a root recovery login. How can I recover from this? Also, did I do anything wrong?
Unlike in the linked thread, the UUID of the partition given by "lsblk -o NAME,UUID" still matches that in /etc/fstab. Any ideas? I'm happy to provide logs and more info.
Last edited by cdbfoster (2016-09-16 19:13:54)
Offline
It was an issue of inconsistent units. resize2fs works in gibibytes (GiB), and by default, parted works in gigabytes (GB).
So, 796 / (1.024 ^ 3) = 741.33.
# parted # This was just to undo my previous partition resize, and to give resize2fs enough room to work. I don't know if it was necessary.
> resizepart 4 1000GB
# resize2fs /dev/sda4 741G
# parted
> resizepart4 850GB
Rebooted and everything's fine.
Offline
Pages: 1