[CentOS] Mount USB disk at startup?

Thu Feb 4 13:15:25 UTC 2010
Mogens Kjaer <mk at crc.dk>

I have a CentOS 5 machine with an external 500G USB disk,
formatted with JFS.

How do I get this to mount automatically at boot time?

If I add to /etc/fstab:

/dev/sdb1 /var/video jfs defaults 1 2

fsck.jfs complains at boot time:

Error: Cannot open device /dev/sdb1

Usage: fsck.jfs ...

...

Give root password for maintenance
...

If I log in with the root password, /dev/sdb1
is present, and I can run

fsck.jfs -f /dev/sdb1

without problems. After ctrl-D it reboots, and gives
the above error again.

I have to log in as root, remount,rw / and remove
the /dev/sdb1 line from /etc/fstab to get it to boot.

The problem is not related to JFS; it occurs with
an external ext3 file system as well.

How do I mount /dev/sdb1 automatically at boot?

Mogens

-- 
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25
Email: mk at crc.dk Homepage: http://www.crc.dk