Auto Install for Mandrake Linux
Prev Next

manualFstab

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'

}

],

The fields for this option are identical to those you would see in the /etc/fstab file.

Descriptions:

'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.

'options' - mount options for the device/file system being mounted.

'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').

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,

}

],

NOTE: Because username and password are present, drakx will automatically create a file /etc/samba/auth.cherry.david (/etc/samba/auth.<server>.<username>) which will contain the actual username and password values, and adjust the /etc/fstab file entry so that it contains a reference (credentials) to this file. See man smbmount for more details.

Related Option Entries:

partitions, partitioning




PrevHome Next
lang   miscellaneous