External hard drive, how do I mount it?
This is a newbie question, but I have to ask here cause I have never had a chance to touch an external hard drive before.
I've just got an external hard drive, brand new (never plugged in any Windows machine). How should I mount it? Do I treat it like any USB stick or do I have to add something to the file /etc/fstab to mount it? Thanks |
Plug it in. Watch dmesg to get the device name then you can format it or try to mount it right off. Once you get it mounted the way you like add an entry to fstab then you can mount it easier in the future.
|
Thank you.
|
File managers using HAL should be able to mount it without using fstab. For example Thunar (of XFCE) will do that, the device should get mounted under /media (this should work on Slack 12.2).
|
do a "cat /etc/mtab"
from slackware-12.2 that I know of running KDE-3.5 just plug it in and IF it has a file system slackware understands watch the magic happen then do a "cat /etc/mtab" and make note of where /dev/??? is the hard drive will be auto mounted to /media/something |
You can also use fdisk -l (as root) to see what the device node is.
|
Quote:
When you plug it in a Windows machine, you'll notice Windows puts system files, directories and executables on the device. Windows hides these, but *nix doesn't. |
Just one thing to watch for based on recent experience with a USB connected external hard drive. This drive was pre-formatted with the NTFS file system, so to write to it requires mounting with the ntfs-3g file system.
|
Quote:
Assuming it's formatted 1. find out the device name by typing in a console cat /proc/partitions for instance in my machine I get this cat /proc/partitions major minor #blocks name 8 0 312571224 sda 8 1 73400953 sda1 ..... 8 9 13607023 sda9 Here I don't have an external usb disk plugged in. But if I had I should see something like .... .... sdb .... .... sdb1 .... ............ as you see the last column tells you the device name and the partition name (in my case if I wanted to mount the first partition of the first external hard drive I would use /dev/sdb1 as the partition name) so, assuming it's ntfs-formatted and I want to mount it read and write I'll do this (as root) mkdir -p /mnt/sdb1; ntfs-3g /dev/sdb1 /mnt/sdb1 (mkdir -p /mnt/sdb1 is for just in case /mnt/sdb1 doesn't exist) if it's vfat-formatted mount /dev/sdb1 /mnt/sdb1 would mount it read and write |
I am a newbie newbie, only working on Linux for about a week. Anyway, I have been using an external hard drive to transfer data from my Windows computer to my Linux one, since the Linux isn't connected to a network. This hasn't been a problem so far and I haven't had to mount it or anything. I have just been able to copy and paste files from it. Until today. Gah! There is one file on the drive I didn't think I needed but realized today I did, but when I connected the drive to the Linux computer, the drive comes up in the 'Computer' folder, but I can't open it anymore. What is up? I keep checking my permissions but it looks okay. What is the difference?
|
Satchel try to mount it manually from an terminal and see if you get any errors also check dmesg for errors.
What filesystem is it on the drive and have you unmounted the drive before you unplug it? |
Hi,
Welcome to LQ! Quote:
Whenever you post a query please try to provide information that will aid the helper to diagnose your problem. As 'Nille_kungen' posted for some information. I would add; distribution, kernel in use and what did you mean by; Quote:
I suspect a filesystem corruption on the external hdd. |
I have just found halrv. In CLI or WMs that do not mount media for you, it it does a fine job. It even includes a SlackBuild.
Regards, Bill |
All times are GMT -5. The time now is 07:52 PM. |