tomdchi Posted September 29, 2008 Share Posted September 29, 2008 I am running centos 5.2 and I have so far been unable to figure out what to do to have a usb hard drive auto mounted at boot. If I am logged into xserver as root then it will mount under /media but only if logged in. I am using this for normal backups and cpanel backups. I have searched on the net and found very few instructions that deal with this specific setup and have tried them all but nothing has worked. Can someone please help? Quote Link to comment https://forums.phpfreaks.com/topic/126214-mount-usb-hard-drive-for-backups/ Share on other sites More sharing options...
steviewdr Posted October 1, 2008 Share Posted October 1, 2008 Try the following: df -h (shows current mounted disks etc.) In the above, check to see if your usb key is showing. Check based on size of space on device. If the usb is not mounted automatically, you need to do: mkdir /mnt mount /dev/sda1 /mnt (see if that works) ls /mnt mount /dev/sda2 /mnt (see if that works) ls /mnt mount /dev/sdb1 /mnt (see if that works) Keep trying from sda to sdd etc. -steve Quote Link to comment https://forums.phpfreaks.com/topic/126214-mount-usb-hard-drive-for-backups/#findComment-654849 Share on other sites More sharing options...
Ghulam Yaseen Posted October 10, 2008 Share Posted October 10, 2008 Hello , First, install autofs on workstation(s). yum install autofs vi /etc/autofs/auto.master add /mnt/auto /etc/autofs/auto.auto --timeout=5 now vi /etc/autofs/auto.auto usb -fstype=auto :/dev/sda1 add auto -fstype=auto :/dev/sda1 restart the autofs /etc/init.d/autofs restart Try the following: df -h (shows current mounted disks etc.) In the above, check to see if your usb key is showing. Check based on size of space on device. If the usb is not mounted automatically, you need to do: mkdir /mnt mount /dev/sda1 /mnt (see if that works) ls /mnt mount /dev/sda2 /mnt (see if that works) ls /mnt mount /dev/sdb1 /mnt (see if that works) Keep trying from sda to sdd etc. -steve Quote Link to comment https://forums.phpfreaks.com/topic/126214-mount-usb-hard-drive-for-backups/#findComment-661462 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.