USB External HDD - Shows up in KDE, but not in /media/disk
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
USB External HDD - Shows up in KDE, but not in /media/disk
I have a Fedora Core 5 linux system that has some weird behavior regarding an external USB hard drive. Whenever I reboot the computer, I lose my connection to /media/disk for this external hard drive. We use it for nightly backups.
But if I VNC to the box and bring up KDE, I see an icon for the external USB disk. I can click on the icon and open the disk, access files, etc.
I just can't see it at the command line.
Anyone have any ideas? Is there a command I have to give the box to force it to rescan external drives and make them accessible?
From my experience I think what happens is, clicking on the icon is a way of telling it to mount and display the contents. In other words, seeing the icon doesn't mean the disk is mounted. From the commandline you would have to use the mount command.
Assuming it's the only usb disk attached it's most likely sda1, but you can always check dmesg to verify. Use "dmesg | grep sd" (without the quotes).
And when you use the mount command, if you want to access the files as a non-root user add -o gid=100,umask=002. The mount command will be something like this:
Code:
mount -t vfat /dev/sda1 /media/disk -o gid=100,umask=002
Again using some assumptions. gid=100 is the uid of the users group so that users can access, and umask=002 sets effective permissions of 775 for the files. NOTE: I think these options only work with vfat and ntfs.
You can automate the mount process by adding a line to the /etc/fstab file, for example:
/dev/sda1 /media/disk vfat defaults,user 0 0
this will automatically mount your filesystem /dev/sda1 on your /media/disk mounting point, assuming the type of the file system is fat32 (vfat). The users (not only root) will be able to mount/umount the filesystem.
You can automate the mount process by adding a line to the /etc/fstab file, for example:
/dev/sda1 /media/disk vfat defaults,user 0 0
this will, after every reboot, automatically mount your filesystem /dev/sda1 on mounting point /media/disk, assuming the type of the file system is fat32 (vfat). The users (not only root) will be able to mount/umount the filesystem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.