On Sun May 25 13:17:26 BST 2008, Marius Gedminas wrote:<br>> On Sat, May 25, 2008 at 05:59:51PM -0700, Ben2K wrote:<br>> > I recently swapped out my laptop harddrive for a larger 160GB model. I first<br>> > created the partitions I wanted, significantly expanding /home and<br>
> > /usr/local. Then I copied everything with Clonezilla. After some boot<br>> > difficulties, I got everything running.<br>> ><br>> > The problem is that the /home and /usr/local partitions (/dev/sda8 and<br>
> > /dev/sda9) are sized at 40GB and 45GB. respectively. Both are ext3. This<br>> > info is correctly reported by fdisk, gparted, and even Nautilus. But when I<br>> > do a df, or try to use the space, df reports that both partitions have been<br>
> > truncated to 9.9GB!<br>> ><br>> >          /dev/sda8             10365264   8994932    843804  92% /home<br>> >          /dev/sda9             10365264   9082556    756180  93% /usr/local<br>><br>
> Partition size and filesystem size don't necessarily have to be the<br>> same.  I suspect that Clonezilla copied your existing filesystems<br>> bit-by-bit from your old disk, and didn't resize them to match newer and<br>
> larger partition sizes.<br>><br>> > BTW, I'm running kernel 2.6.24-16-generic and Ubuntu 8.04, Hardy.<br>> ><br>> > How do I fix this, and get access to the missing space?<br>><br>> I would suggest that you make a backup (just in case), and then resize<br>
> the partitions with the resize2fs tool.  According to the manual page,<br>> it can expand the size of a mounted ext3 filesystem, so this should be<br>> sufficient:<br>><br>>   sudo resize2fs /dev/sda8<br>
>   sudo resize2fs /dev/sda9<br>> <br>> Hope that helps,<br>> Marius Gedminas<br>> <br><br>Many thanks! That seemed to be exactly what I needed. Glad I listened to Derek and didn't start over.<br><br>Clonezilla has a '-r' <i>resize</i> 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.<br>
<br>Thanks again.<br><br><br>