Mounting an External Hard Drive Manually Using Terminal
What terminal command should I use to mount an external hard drive that Ubuntu 6.10 did not recognize during installation? I understand that I should use either /mnt/hdb1 or /media/hdb1, but do I just open terminal and plop one or the other of those commands into the first blank space, or do I need to be at a specific location in terminal to which I do not know how to navigate as yet? Right now when I open terminal, what I see is -- pjm@pjm-desktop:~$ What do I do after that?
Thank you for your patience, you're going to need it. Phil |
Just open a terminal and type:
Code:
mount /dev/<insert device> /mnt/hdb1 |
First un-plug this external hard drive from the system (this is a USB hard drive correct??) Then plug the external drive back in. As root or equivalent check the tail end of /var/log/messages;
tail /var/log/messages Example: Code:
$ sudo tail /var/log/messages To mount this device as root or equivalent type something like; mkdir /mnt/USB mount -t auto /dev/sdc1 /mnt/USB -rw The first command creates the location to mount the device to, the second mounts the device to this location (mountpoint) as read/writeable. you should be able to access the directories and files by looking in this location /mnt/USB, for example; ls -al /mnt/USB To un-mount the device type something like; umount /mnt/USB See the manpages for the details and additional information; man mount man tail man mkdir man umount |
Oh, just so you know if you get errors about "the device being busy" when you try to unmount it, make sure you aren't in the directory where you mounted it. For example, if I mount my USB pendrive to /mnt, and I want to unmount it, I have to leave /mnt before I can unmount the drive.
|
All times are GMT -5. The time now is 09:55 AM. |