Question about setup-storage

Andreas Sindermann sinder at thp.Uni-Koeln.DE
Wed Mar 16 15:50:48 CET 2011


Hello,

I have a question about the config file for setup-storage. 

Using the table

disk_config disk1
primary  /             10000      rw,errors=remount-ro ; -j ext3
logical  swap           2000      rw

the old *setup_harddisk* created the following partition table:

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1275    10241406   83  Linux
/dev/sda2            1276        1530     2048287+   5  Extended
/dev/sda5            1276        1530     2048256   82  Linux swap / Solaris

Additionally on some of our machines a /scratch partition starting at
cylinder 1531 was established:

/dev/sda3            1531       30401   231906307+  83  Linux



In contrast to that the new setup-storage command creates a somewhat
different partition table.

disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid
primary  /        10000    ext3  rw,noatime,errors=remount-ro
logical  swap      2000    swap  rw

leads to partitions which are 1 cylinder shorter than before:

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1274    10233373+  83  Linux
/dev/sda2            1275        1528     2040255    f  W95 Ext'd (LBA)
/dev/sda5            1275        1528     2040223+  82  Linux swap / Solaris


How should the configuration file for setup-storage look like to
reproduce the original partition table?

The man page doesn't mention 'c' for cylinders as size specification.

Thanks in advance
Andreas


More information about the linux-fai mailing list