[ltp] partitioning

morpheus linux-thinkpad@linux-thinkpad.org
Wed, 22 Dec 2004 22:37:18 -0500


I would suggest you use fdisk which will allow you to create your
partitions manually.  I'm not familiar with qtparted, but fdisk should
let you create the partitions in order, specifying specific start and
end blocks.
-m

On Wed, 2004-12-22 at 22:10 -0500, Rei Shinozuka wrote:
> i have a t23 with 60BG drive partioned thusly:
> 
> Disk /dev/hda: 60.0 GB, 60011642880 bytes
> 240 heads, 63 sectors/track, 7752 cylinders
> Units = cylinders of 15120 * 512 = 7741440 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hda1   *           1         655     4951768+   c  W95 FAT32 (LBA)
> /dev/hda2            7621        7752      997920   1c  Hidden W95 FAT32 (LBA)
> /dev/hda3             656        7473    51544080    5  Extended
> /dev/hda4            7474        7620     1111320   a0  IBM Thinkpad hibernation
> /dev/hda5             656         708      400648+  83  Linux
> /dev/hda6             709        1792     8195008+  83  Linux
> /dev/hda7            1793        2470     5125648+  83  Linux
> /dev/hda8            2471        2609     1050808+  82  Linux swap
> /dev/hda9            2610        7473    36771808+  83  Linux
> 
> i want to recreate this system on a larger 80GB drive, using 
> systemrescueCD and partimage, but i cannot seem to use qtparted 
> make the same device name/numbers for the 8 slices.  if i make
> the third partition the extended partition, it skips hda4 altogether:
> 
> Disk /dev/hda: 80.0 GB, 80026361856 bytes
> 240 heads, 63 sectors/track, 10337 cylinders
> Units = cylinders of 15120 * 512 = 7741440 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hda1   *           1        4334    32765008+   c  W95 FAT32 (LBA)
> /dev/hda2            4335        4469     1020600    c  W95 FAT32 (LBA)
> /dev/hda3            4470       10337    44362080    f  W95 Ext'd (LBA)
> /dev/hda5            4470        4604     1020568+   e  IBM Thinkpad hibernation
> /dev/hda6            4605        4657      400648+   e  Linux
> /dev/hda7            4658        5716     8006008+   e  Linux
> /dev/hda8            5717        6378     5004688+   e  Linux
> /dev/hda9            6379        6513     1020568+   e  Linux swap
> /dev/hda10           6514       10337    28909408+   e  Linux
> 
> this will be a problem as fstab will point to the wrong slices, and
> the hibernate which is expecting to use hda4 won't find it.
> 
> how can i get the device name/numbers in the above example?
> 
> thanks much in advance.
> 
> -rei
> 
> -- 
> Rei Shinozuka shino@panix.com
> Ridgewood, New Jersey
>