Partitions are not formatted by fai

Roberto Sebastiano askrs at tiscalinet.it
Mon Nov 12 21:19:44 CET 2001


I have a problem with my configuration: if the preserve flag is set and
the format option is given, hda2 is not formatted.

Here is my disk_config file (vmclient):
(hda1 is a vfat partition, hda2 ext2 and hda3 swap)

disk_config hda

primary  -		preserve1
primary  /              preserve2     rw,errors=remount-ro ; format
primary  swap           preserve3     rw ; format         


And this is format.log from the client:


FAI: setup harddisks V0.10fai
disks found: hda

parsing config file: /fai/disk_config/vmclient

Partition with sfdisk:
# partition table of device: /dev/hda
unit: sectors

/dev/hda1 : start=        63, size=   1435329, Id=  6
/dev/hda2 : start=   1435392, size=   2358720, Id= 83, bootable
/dev/hda3 : start=   3794112, size=    298368, Id= 82
  LC_ALL=C sfdisk -q /dev/hda < /tmp/hda.sfdisk

Formating disks:
Preserve Partition hda1 with no mountpoint
Make Swap Partition:
  mkswap  /dev/hda3

Write fstab:
# /etc/fstab: static file system information.
#
#<file sys>          <mount point>     <type>   <options>   <dump>  
<pass>
/dev/hda2    /                 ext2    rw,errors=remount-ro  0    1   
/dev/hda3    none              swap    rw        0    0   
none         /proc             proc    defaults  0    0   
Write FAI variables to file /tmp/disk_var.sh

And also hda.sfdisk :)

# partition table of device: /dev/hda
unit: sectors

/dev/hda1 : start=        63, size=   1435329, Id=  6
/dev/hda2 : start=   1435392, size=   2358720, Id= 83, bootable
/dev/hda3 : start=   3794112, size=    298368, Id= 82



Any idea ?


Regards
Roberto



More information about the linux-fai mailing list