LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2010, 08:49 AM   #1
butlerm1977
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
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

Last edited by butlerm1977; 07-28-2010 at 09:07 AM. Reason: addition of mount -a comment and last line
 
Old 07-28-2010, 03:50 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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/

Last edited by bigrigdriver; 07-28-2010 at 03:53 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
not mounting Vista partition ...here's my fstab joutlancpa Slackware 2 05-02-2009 07:37 AM
why is e2label not recognising the partition labels in RHEL 4? nivedhitha Red Hat 1 05-10-2006 03:13 AM
/etc/fstab MOUNTING FAT PARTITION cb951303 Slackware 7 08-30-2004 08:07 PM
Mounting an ext3 partition in fstab. RoaCh Of DisCor Linux - Software 6 07-18-2004 10:50 AM
Mounting a wndows partition with fstab fedetxf Linux - General 2 12-29-2003 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration