UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a new hard drive about 150% larger than the current one. I have both Vista and Ubuntu on the current drive, along with a shared partition to allow me to move data to and from.
When I first partitioned the original drive, I used only 10GB for the Linux root partition, and now I have plenty of room and want to grow it on the new drive. Since the inode table is part of the partition (I believe,) I don't think that I can just dd the old partition over to the new one.
I finally had a chance to d/l clonezilla and use it to move things around. Unfortunately, what I was afraid would happen, did happen.
Here is the fdisk output after the use of clonezilla and then moving the drive into my laptop and booting:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xef859dce
Device Boot Start End Blocks Id System
/dev/sda1 * 1 12004 96421763 7 HPFS/NTFS
/dev/sda2 12004 13309 10482748 c W95 FAT32 (LBA)
/dev/sda3 13310 14224 7349737+ 7 HPFS/NTFS
/dev/sda4 14225 30401 129941752+ 5 Extended
/dev/sda5 14225 14617 3156741 82 Linux swap / Solaris
/dev/sda6 14618 18534 31463271 83 Linux
/dev/sda7 18535 22451 31463271 83 Linux
/dev/sda8 22452 26368 31463271 7 HPFS/NTFS
I cloned the first partition and the third (the OEM Vista install) and thought that my cloning of the second partition (10Gb originally, and I set up the new drive to have 30 Gb. After creating the various new partitions, Linux, MSDOS and VFAT, I wrote the partition table, then figured that it wouldn't hurt to mkfs all of the new partitions.
I'm surprised that partitions 2, 3 and 6 don't seem to reflect what I set up. Here is the df output:
I used clonezilla thinking that it could move the contents of a smaller partition to a larger one, and would have used dd, except I thought that the inode table would transfer over and cause the same symptoms as I am seeing.
(parted) check 9
Warning: Partition 2 is 10.7GB, but the file system is 1074MB.
Ignore/Cancel? i
Warning: Partition 3 is 7526MB, but the file system is 7337MB.
Ignore/Cancel? i
Warning: Partition 6 is 32.2GB, but the file system is 10.8GB.
Ignore/Cancel? i
Information: The ext2 file system passed a basic check.
Eventually,I stumbled into a solution, but I'd be damned if I can remember exactly how I solved it.
I THINK that I created the larger partitions, formatted them, then rsync'ed everything into them. The Vista partition wouldn't boot, and having an HP with only a "remake the original, as-sold, OS DVD", I was stumped as to how to fix it. But I eventually found a Vista restore disk via Google, downloaded it, and I'm now (as of last night) in a much larger "home".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.