Ubuntu Truncating Disk Partitions
ben2k_xsxl at trashmail.net
Tue May 27 05:48:36 UTC 2008
On Sun May 25 13:17:26 BST 2008, Marius Gedminas wrote:
> On Sat, May 25, 2008 at 05:59:51PM -0700, Ben2K wrote:
> > I recently swapped out my laptop harddrive for a larger 160GB model. I
> > created the partitions I wanted, significantly expanding /home and
> > /usr/local. Then I copied everything with Clonezilla. After some boot
> > difficulties, I got everything running.
> > The problem is that the /home and /usr/local partitions (/dev/sda8 and
> > /dev/sda9) are sized at 40GB and 45GB. respectively. Both are ext3. This
> > info is correctly reported by fdisk, gparted, and even Nautilus. But
> > do a df, or try to use the space, df reports that both partitions have
> > truncated to 9.9GB!
> > /dev/sda8 10365264 8994932 843804 92% /home
> > /dev/sda9 10365264 9082556 756180 93%
> Partition size and filesystem size don't necessarily have to be the
> same. I suspect that Clonezilla copied your existing filesystems
> bit-by-bit from your old disk, and didn't resize them to match newer and
> larger partition sizes.
> > BTW, I'm running kernel 2.6.24-16-generic and Ubuntu 8.04, Hardy.
> > How do I fix this, and get access to the missing space?
> I would suggest that you make a backup (just in case), and then resize
> the partitions with the resize2fs tool. According to the manual page,
> it can expand the size of a mounted ext3 filesystem, so this should be
> sudo resize2fs /dev/sda8
> sudo resize2fs /dev/sda9
> Hope that helps,
> Marius Gedminas
Many thanks! That seemed to be exactly what I needed. Glad I listened to
Derek and didn't start over.
Clonezilla has a '-r' *resize* option that I deliberately suppressed, but I
now suspect that I misunderstood its purpose. Clonezilla's documentation
leaves a bit to be desired, but it is still a great utility.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users