0

I want a 2nd hard drive to mount at boot

I have this in /etc/fstab

UUID=7726e231-4373-451d-8588-930becd772c6 /home/server/common ext4 0 1

When starting I get an error, did I misconfigure the line?

1
  • 3
    What error do you get ?
    – nixgadget
    Apr 12, 2013 at 3:22

2 Answers 2

1

Look at the top of /etc/fstab. It should have a line like this:
# Device Mountpoint FStype **Options** Dump Pass#

Your mount line has these:

# Device              Mountpoint            FStype  Options    Dump    Pass#
UUID=7726...d772c6    /home/server/common   ext4                0       1

Notice the lacking value for the field options, which means that it gets parsed as:

# Device              Mountpoint            FStype  Options    Dump    Pass#
UUID=7726...d772c6    /home/server/common   ext4       0       1

And options 0 is invalid.

1

I would suggest the correct entry should be as follows:

UUID=7726e231-4373-451d-8588-930becd772c6 /home/server/common defaults ext4 0 1
2
  • I would be very useful to explain why your answer is correct - what is different, why the change and what it does.
    – fossfreedom
    Apr 12, 2013 at 10:41
  • the options go after the FStype so this is actually wrong.
    – wlraider70
    Apr 12, 2013 at 19:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .