lördag 5 december 2009

Spaces in /etc/fstab

Hi! I just had a problem with spaces in a mountpoints name. While searching for solutions I found others who had problems with this, but in their case while trying to mount a network share. The solution can be found in the manual page for fstab (write "man fstab" in terminal).

Here's the text from fstabs manual:

The second field, (fs_file), describes the mount point for the filesys‐
tem. For swap partitions, this field should be specified as `none'. If
the name of the mount point contains spaces these can be escaped as
`\040'.


And here's a working example that mounts "/dev/sdb1" (ntfs) into "/media/drive 2"
/dev/sdb1 /media/drive\0402 ntfs nls=iso8859-1,umask=000 0 0

Inga kommentarer:

Skicka en kommentar