I'm trying to add a long list of mount options in my fstab, and break the entry over 2 lines, as it goes off screen. Taking this as an example: # This works # #/dev/hda9 # original settings # LABEL=downloads /downloads ext3 defaults 1 2 # This doesn't work # #/dev/hda9 # new options LABEL=downloads /downloads \ ext3 defaults 1 2 Using the '\' character at the end of the line in the above example gives the following error message at boot time: Mounting local filesystems: mount: unknown filesystem type '\' mount point defaults does not exist. Is it possible to make multiple line entries like this in fstab, or not? Kind Regards, Keith Roberts ----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
Keith Roberts wrote:> I'm trying to add a long list of mount options in my fstab, > and break the entry over 2 lines, as it goes off screen. > > Taking this as an example: > > # This works > # > #/dev/hda9 > # original settings > # LABEL=downloads /downloads ext3 defaults 1 2 > > # This doesn't work > # > #/dev/hda9 > # new options > LABEL=downloads /downloads \ > ext3 defaults 1 2 > > Using the '\' character at the end of the line in the above > example gives the following error message at boot time:<snip> Just a thought: go into vi, cursor down to the line, and hit $, and see where the actual end of the line is. If there's whitespace *after* the \, it won't work. mark
On Wed, 5 Jan 2011, Keith Roberts wrote:> I'm trying to add a long list of mount options in my fstab, > and break the entry over 2 lines, as it goes off screen.The fstab(5) man page mentions comments but no line-break mechanism. I suspect your best friend in this case is a widescreen terminal emulator. :-) -- Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
On Wed, 2011-01-05 at 19:16 +0000, Keith Roberts wrote:> I'm trying to add a long list of mount options in my fstab, > and break the entry over 2 lines, as it goes off screen.$ man fstab /line Each filesystem is described on a separate line; Regards, Leonard. -- mount -t life -o ro /dev/dna /genetic/research