Elektra: kdb-fstab(1) -- Create a new fstab entry

Elektra 0.8.14

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

kdb-fstab(1) -- Create a new fstab entry

`kdb fstab <key-path> <fs_spec> <fs_file> <fs_vfstype> <fs_mntops>`

Where `key-path` is the path the where the key should be stored in the key database. The other arguments are as described in fstab(5).

## DESCRIPTION

This command is used to create a new `fstab` entry. Due to the unique format of `fstab` entries, it is not possible to set individual elements of new `fstab` entries. This command is used to gather all the data needed to create a single `fstab` entry in order to bypass the issue of not being able to set individual elements. This command will create the new entry with a name of `ZZZNewFstabName` which should then automatically be renamed by the `fstab` plugin.

## OPTIONS

- `-H`, `--help`: Show the man page.
- `-V`, `--version`: Print version info.
- `-v`, `--verbose`: Explain what is happening.

## EXAMPLES

To create an fstab entry to mount `dev/sdb1` to `/media/external` stored in the key `system/fstab/sdb1`: `kdb fstab system/fstab/sdb1 /dev/sdb1 /media/external ext4 errors=remount-ro`

## SEE ALSO

- Use `kdb info fstab` to get information about the fstab plugin.