Auto Install for Mandrake Linux | ||
---|---|---|
Prev | Next |
This option allows you to add additional entries to the /etc/fstab file on the target computer. The most notable include adding NFS mounts and Windows shares (smbfs). Possibilities include other devices which are not detected by the install program, partitions or devices which already exist on the target computer and have not been specified in the 'partitioning' option.
'manualFstab' => [ |
{ |
'device' => 'linux1:/nfscd/cdrom82', |
'mntpoint' => '/mnt/linux1', |
'type' => 'nfs', |
'options' => 'noauto,ro,nosuid,rsize=8192,wsize=8192' |
}, |
], |
Descriptions:
The fields for this option are identical to those you would see in the /etc/fstab file.
'device' |
a physical device (partition) such as 'hdd1' or, a nfs network device such as 'linux1:/nfscd/cdrom82' or, '//cherry/cherry-c' for smb file systems. |
'mntpoint' |
the file system mount point for the device. It is a good idea NOT to use a mount point that is created for the use of rpmdrake (eg. /mnt/nfs). |
'type' |
type of file system on the device ( eg. ext2, reiserfs, nfs,smbfs ). See man mount for a list of supported file types. You may also use numeric values for the type. |
'options' |
mount options for the device / file system being mounted and are very file system specific. See the appropriate man page for details about the options available. |
'passno' |
if present, the value specified is placed in the fifth (5) field (default value of 0 is used if this is omitted). See the man page for fstab (man fstab). |
'freq' |
if present, the value specified is placed in the sixth (6) field (default value of 0 is used if this is omitted). See the man page for fstab (man fstab). |
'toFormat' => 1, |
if present, causes the associated 'device' to be formatted. This selection is applicable to local devices only and is ONLY used when an EXISTING partition must be formatted prior to the actual installation (see the Note for the option 'partitioning'). |
'toFormatCheck' => 1, |
if present, causes the associated 'device' to be checked for Bad Blocks. This selection is applicable to local devices only and is ONLY valid if 'toFormat' is used. |
Examples:
The following is a simple example to illustrate specifying a Windows Share:.
'manualFstab' => [ |
{ |
'device' => '//cherry/cherry-c', |
'mntpoint' => '/mnt/cherry', |
'type' => 'smbfs', |
'options' => 'noauto,ro,username=david,password=hawker,workgroup=eastcott' |
'passno' => 0, |
'freq' => 0, |
}, |
], |
|
Because username
and password are present,
drakx will automatically create a file
|
The following is an example that re-uses existing partitions, including one that I did not want formatted (it contains a copy of the cooker files for testing the Grub auto install).
'partitioning' => { |
'eraseBadPartitions' => 0, |
'auto_allocate' => 0, |
'clearall' => 0, |
}, |
'manualFstab' => [ |
{ |
'device' => 'hde1', |
'mntpoint' => '/boot', |
'type' => 'ext3', |
'options' => 'defaults', |
'passno' => 1, |
'freq' => 2, |
'toFormat' => 1, |
}, |
{ |
'device' => 'hde5', |
'mntpoint' => 'swap', |
'type' => 'swap', |
'options' => 'defaults', |
}, |
{ |
'device' => 'hde6', |
'mntpoint' => '/', |
'type' => 'ext3', |
'options' => 'defaults', |
'passno' => 1, |
'freq' => 1, |
'toFormat' => 1, |
}, |
{ |
'device' => 'hde7', |
'mntpoint' => '/mnt/hd', |
'type' => 'ext2', |
'options' => 'defaults', |
'passno' => 1, |
'freq' => 2, |
'toFormat' => 0, |
}, |
], |
Related Option Entries:
Prev | Home | Next |
locale | miscellaneous |