[CentOS] fstab multiple line entries?

m.roth at 5-cent.us m.roth at 5-cent.us
Wed Jan 5 19:32:05 UTC 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.
>
> 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




More information about the CentOS mailing list