LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems mounting a partition using fstab and e2label... (https://www.linuxquestions.org/questions/linux-newbie-8/problems-mounting-a-partition-using-fstab-and-e2label-822626/)

butlerm1977 07-28-2010 08:49 AM

Problems mounting a partition using fstab and e2label...
 
System is CentOS 5.4 using two 80GB raid 1 drives and one external usb 1TB drive.

I am trying to make the USB partition (ext3 and e2labeled as /usbstorage) a permanent mount using fstab. I used the writeup found here and here to base the setup from.

When I reboot the server, the external drive does not auto mount. But if I run mount -a the drive mounts and is usable.

fdisk -l
Code:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          13      104391  83  Linux
/dev/sda2              14        9709    77883120  8e  Linux LVM

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1          13      104391  83  Linux
/dev/sdb2              14        9709    77883120  8e  Linux LVM

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdc1              1      121601  976760001  83  Linux

e2label /dev/sdc1
Code:

/usbstorage
tune2fs -l /dev/sdc1 | grep volume
Code:

Filesystem volume name:  /usbstorage
/etc/fstab
Code:

/dev/VolGroup00/LogVol00 /                      ext3    defaults        1 1
LABEL=/boot            /boot                  ext3    defaults        1 2
tmpfs                  /dev/shm                tmpfs  defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                  /sys                    sysfs  defaults        0 0
proc                    /proc                  proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
LABEL=/usbstorage      /Storage                ext3    defaults        0 0

ls -ld /Storage
Code:

drwxr-xr-x 2 root root 4096 Jul 27 14:42 /Storage

bigrigdriver 07-28-2010 03:50 PM

It's been a while since I had such a problem. If memory serves, you need to write a udev rule which relates /dev/sdc1 to the volume label to the mount point to create a persistent mount point. Then, your fstab entry should work.

Red Hat has this on writing custom udev rules:
http://www.redhat.com/magazine/002dec04/features/udev/


All times are GMT -5. The time now is 01:03 AM.