LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-01-2007, 08:21 AM   #1
Vlad-The-Impaled
LQ Newbie
 
Registered: Jun 2006
Posts: 8

Rep: Reputation: 0
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?

Vlad
 
Old 08-01-2007, 10:46 AM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
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.
 
Old 08-02-2007, 08:57 AM   #3
Vlad-The-Impaled
LQ Newbie
 
Registered: Jun 2006
Posts: 8

Original Poster
Rep: Reputation: 0
That makes sense. Do you know what the device name that an external USB device shows up as so I can construct the mount command for this?

Vlad
 
Old 08-02-2007, 09:45 AM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
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.

Last edited by dracolich; 08-02-2007 at 09:48 AM.
 
Old 08-02-2007, 03:33 PM   #5
jpmzometa
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Rep: Reputation: 0
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.

Chito

Last edited by jpmzometa; 08-02-2007 at 03:38 PM.
 
Old 08-02-2007, 03:35 PM   #6
jpmzometa
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Rep: Reputation: 0
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.

Chito
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing disk space in external HDD wearetheborg Linux - General 4 04-10-2007 04:47 AM
Getting an USB external HDD xiongnu Mandriva 1 12-12-2004 08:11 PM
usb 2.0 external hdd drum2jc Linux - Hardware 0 12-07-2004 03:14 AM
USB external HDD yhus Linux - Hardware 1 06-07-2004 05:18 AM
cdrecord -scanbus shows incorrect device (external USB CD-RW) Avatar Linux - Hardware 2 04-14-2004 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration