Mounting external hard drives for RHEL
Hi,
I am new to system administration. We have recently got external USB hard drives (Samsung Story, 1TB) for our office machines. However, the machines do not detect these external hard drives automatically when plugged in. And to manually mount I need to be superuser/root. I want the user to be able to mount/unmount or the USB drives be automatically mounted when plugged in. So after some serach on the internet, I added this line to fstab line: Code:
LABEL=SAMSUNG /media/USB_Bkup vfat rw,suid,dev,noexec,noauto,user,async,dmask=000,fmask=111 0 0 Code:
mount LABEL=SAMSUNG Code:
umount LABEL=SAMSUNG I get an error message saying Code:
umount: LABEL=SAMSUNG is not mounted (according to mtab) Code:
umount /dev/sdx# 1. Is there any way to unmount in a more user-friendly way, i.e., not looking for which device it is attached to? 2. Is there any way to get the USB drive to be mounted automatically when plugged in? My OS are RHEL 3,4 and CentOS 5. Any help is appreciated. TIA |
umount by LABEL is not supported yet in RHEL, but yes this works in fedora.
the logic is, if suppose your one of drive is mounted on mutiple places then what it will unmount. To mount on insertion by drive, you can edit your udev rules. Let me know if you are unaware of udev rules. Thanks |
Quote:
Can you please enlighten me on udev rules? TIA, |
Error while trying with udev
I tried to mount the external usb hard drive with udev rules but encountered errors. Here is what I did:
I looked at the /var/log/messages while plugging in the hard drive: Quote:
Quote:
Code:
BUS=="usb",SYSFS{product}=="Samsung STORY Station",KERNEL=="sd?1",NAME="Bkup",SYMLINK="usbdevices/samsung1tb" Code:
[root@permian scratch]# cat /etc/fstab Quote:
Code:
[root@permian scratch]# /sbin/start_udev Quote:
I am running RHEL 3. TIA, |
All times are GMT -5. The time now is 08:34 PM. |