Question about setup-storage

Andreas Sindermann sinder at thp.Uni-Koeln.DE
Wed Mar 16 18:32:57 CET 2011


Michael Tautschnig writes:
 > Hi Andreas,
 > 
 > [...]
 > > the old *setup_harddisk* created the following partition table:
 > >=20
 > >    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 / Sola=
 > ris
 > >=20
 > > Additionally on some of our machines a /scratch partition starting at
 > > cylinder 1531 was established:
 > >=20
 > > /dev/sda3            1531       30401   231906307+  83  Linux
 > >=20
 > >=20
 > >=20
 > > In contrast to that the new setup-storage command creates a somewhat
 > > different partition table.
 > >=20
 > > disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid
 > > primary  /        10000    ext3  rw,noatime,errors=3Dremount-ro
 > > logical  swap      2000    swap  rw
 > >=20
 > > leads to partitions which are 1 cylinder shorter than before:
 > >=20
 > >    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 / Sola=
 > ris
 > >=20
 > >=20
 > > How should the configuration file for setup-storage look like to
 > > reproduce the original partition table?
 > >=20
 > > The man page doesn't mention 'c' for cylinders as size specification.
 > >=20
 > 
 > Cylinders aren't really useful these days as the numbers you get don't rela=
 > te to
 > anything really physically existing. Therefore I don't see much use in
 > implementing this unit of measurement. If you need a really precise
 > specification you may go to the level of bytes (use parted -s /dev/bla -s u=
 > nit B
 > print to obtain that information from one of the existing systems).
 > 
 > As setup-storage has been implemented from scratch, the details of computin=
 > g the
 > size, which involve rounding to boundaries, may show subtle differences with
 > respect to the results of setup_harddisks. But, just curious, why does that
 > small difference matter for you?

These scratch partitions should be preserved if possible...

I'll use parted -s instead of setup-storage...

Thanks for your answer.

Andreas


 > 
 > Best regards,
 > Michael
 > 
 > 
 > --82I3+IH0IqGh5yIs
 > Content-Type: application/pgp-signature
 > 
 > -----BEGIN PGP SIGNATURE-----
 > Version: GnuPG v1.4.11 (Darwin)
 > 
 > iQIcBAEBCAAGBQJNgO+qAAoJEKjvEonjOGdBNLoP/ifFOaxZfRDOQV0JXst5DyxJ
 > l8r3F1NfKXlhmbNNql5Ti43x3GeCmxsooPBmk5xQ3uH9vMTqqYHXOyc/Is1kLrc2
 > 74vHw/iaSb1lBFNDFrKBlLIvJjAIp9QODTCqfx+KReOtBDmbxtCc9lZ7adLtg0M+
 > Wyvb/OBDitp+oSqBdXHbfEkbL4IExEsgEr7YDMvi+rHNL50Rcu7i89nRTZk6O13V
 > ZW/2G+zhHGuDy6jSznE4KM6t4BMz/4RdMW+0B8SvqPcHjRvMWLcwpyIsocufMfHf
 > pSehZdb/CZAzj7koExg3gJXBijLSOr4B3cQkjVBnMxfy3EN78PmvFhqJ5EEhrJCa
 > jFGVAlH7lsZRcj26Hu0SWXQcF30GEb/HU4CYu+29+h80ox+0kpuX3L8ROGQcydBg
 > M767Cn0CyNDbs3ManAfABybsVmIyQ+8p7FECvlj+tT/wSYsor1eiwUuhSk5i1nOw
 > q3Oqb+0WxE2DYbJ7PHtO87dfuHKgLX7Znxg7OI4fnSt4j7rmZ9chBGMagFqJ/mLv
 > 1XSbi5P1+3gPI6UQl6hgh1BEYGyf1EJsR+oWY7CvBnsv98D8y9pLarFaFS7GcaCs
 > HoM4XcuBk9ublFqSDzqzULuvPsrxDpGLk8608dW7Szh9+fT3eYWOlJxZKOMNb1a7
 > xnGE0J+byy220aZaThfX
 > =wWR0
 > -----END PGP SIGNATURE-----
 > 
 > --82I3+IH0IqGh5yIs--


More information about the linux-fai mailing list