how do I mount an external USB hard drive
I am VERY new to linux. any hint is appreciated.
When I plug in an external USB hard drive in one of the FRONT USB ports (both REAR ports used already used): 1- how do I make the system recognize it? 2- how do I mount this drive and what type of filesystem is it. SYS: Dell Poweredge 2800 running Red Hat Enterprise Linus ES 3. |
You can usually use "auto" as the filesystem type, so when you mount the drive the filesystem gets automatically detected (normally). If it does not get automatically mounted when you plug the cable in, then add the information about it into your /etc/fstab file; for this you'll need to know two things: 1) where you want it to be mounted (in which directory will you want to see it's contents) and 2) what is the device file (a special file in /dev directory) called. The 2nd question is most of the time the "harder" one, but you could try guessing: for usb hard drives it's usually (but not always) sda1, sda2, sda3, or something like it (second usb hard drive would be sdb1, sdb2, ..., in a normal situation).
First when you plug the cable in, open up a console and do Code:
dmesg First, create the mount directory where the drive will show it's contents: Code:
mkdir /mnt/usbdrive Code:
su Code:
gedit /etc/fstab Quote:
After you've saved, simply try: Code:
mount /mnt/usbdrive Once you get this done, you don't have to worry about it again, it's there. Nowadays people have nice things like automounters so they don't have to do this even, but adding new drives to fstab is always a sure way. EDIT: about the dev filenames. sda is normally assigned to an usb or scsi device, and the number (sda1, sda2, sda3 etc.) depends on the device, most of the time it's 1 for the first device, 2 for the second etc. Also, when dealing with harddisks, first disk should get sda, second sdb and so on. Like hda for a primary "normal" harddisk, hdb for a secondary "normal" harddisk etc. The two names I've seen most often are sda1 and sda4 (I can't tell why it's just sda4 and not sda2, for example, but that's what my devices have always been, or at least almost always - so sda1 and sda4 are good tries if you start guessing). |
All times are GMT -5. The time now is 06:53 PM. |