Aligning a partiton with setup-storage

Patrick Cervicek patrick at failist.spamtrap.hs-esslingen.de
Mon Jan 3 18:03:23 CET 2011


Hi Michael,

Sorry for the late answer

On Sat, 18 Sep 2010, Michael Tautschnig wrote:

> Thanks again for providing all the information; I have finally implemented an
> "align-at" option in a patch included in 4.0~beta2+experimental7. It would be
> great if you could give that one a try. The use is as follows:
>
> disk_config sda align-at:4K
> ...

"4K" throws an error but it works with "4k"

   INTERNAL ERROR in setup-storage:
   convert_unit 4


> which should make all non-preserved partitions start at multiples of 4k-blocks
> and also have them end at proper points such that no holes appear. Testing and
> feedback would be much appreciated.

I installed "dpkg -i --force-all fai-setup-storage_4.0~beta2+experimental49_all.deb"
in my nfsroot and the partiontable looks now aligned. (I had to use 
--force as fai-client_beta had some errors)

before:

# sfdisk -d /dev/sda
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       63, size=   610407, Id=83
/dev/sda2 : start=   610470, size=  9655065, Id=83
/dev/sda3 : start= 10265535, size=   192780, Id=82
/dev/sda4 : start=        0, size=        0, Id= 0


after installing fai-setup-storage-experimental

# sfdisk -d /dev/sda
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       64, size=   614400, Id=83
/dev/sda2 : start=   614464, size=  9256896, Id=83
/dev/sda3 : start=  9871360, size=   614400, Id=82
/dev/sda4 : start=        0, size=        0, Id= 0

Thanks!

Patrick


More information about the linux-fai mailing list