LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-24-2006, 05:28 PM   #1
Mike Healan
Member
 
Registered: May 2004
Distribution: SuSe 10.0
Posts: 31

Rep: Reputation: 15
How do you mount a usb drive?


I asked this on suseforums.net, but that site has mysteriously disappeared in the last day or two.

I have an odd problem. I have two external USB hard drives. One of them has equal parts NTFS and FAT32, the other is entirely NTFS. They mount properly when they are plugged in and turned on. However, every so often the two NTFS partitions become unmounted.

If I turn the drives off, then back on, KDE will mount them again without a problem. If I try right-clicking in Konqueror and choosing "Mount", I get an error, even if I launch it as root.

How do I mount these drives without having to reach for the power switches? My cat likes to chew on the cables, so I have them in a closet on the other side of the wall. The door to that closet is a trip all the way around the house, so I'd like to learn how to avoid doing that every time it happens.

This is my mtab. The drives are the last three entries.

SuSe 10.0 + KDE 3.4

Quote:
/dev/hda3 / reiserfs rw,acl,user_xattr 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
/dev/hda1 /windows/C ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0
/dev/hdb1 /windows/D ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/fd0 /media/floppy subfs rw,nosuid,nodev,sync,fs=floppyfss,procuid 0 0
/dev/sdb1 /media/external2 subfs ro,nosuid,nodev,sync,fs=ntfs,procuid,nls=utf8 0 0
/dev/sda5 /media/ntfs subfs ro,nosuid,nodev,sync,fs=ntfs,procuid,nls=utf8 0 0
/dev/sda1 /media/FAT32 subfs rw,nosuid,nodev,sync,fs=floppyfss,procuid,utf8=true 0 0
 
Old 01-24-2006, 06:34 PM   #2
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Rep: Reputation: 30
as root:

mount /dev/sdb1 /media/external2
mount /dev/sda5 /media/ntfs
mount /dev/sda1 /media/FAT3
 
Old 01-24-2006, 10:05 PM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
If I turn the drives off, then back on, KDE will mount them again without a problem. If I try right-clicking in Konqueror and choosing "Mount", I get an error, even if I launch it as root.

What error do you get? The system doesn't automatically unount (well I don't think so) driver that turn off while mounted, you may have to unmount (you might need touse the -f option) them before mounting again. In any case, you shouldn't remove/turn off a drive without unmounting it first, as you may create mess on the filesystem (especially on FAT).
 
Old 01-24-2006, 10:31 PM   #4
Mike Healan
Member
 
Registered: May 2004
Distribution: SuSe 10.0
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks. I'll try those commands if it happens again.

I'm not sure what the error is. KDE pops up a box, makes a sound and the box disappears before I have to chance to read it.
 
Old 05-17-2006, 03:24 PM   #5
The Real Bev
LQ Newbie
 
Registered: May 2006
Distribution: Slackware 13.0
Posts: 28

Rep: Reputation: 3
What kind of mess? (removal before unmount)

Quote:
Originally Posted by Half_Elf
If I turn the drives off, then back on, KDE will mount them again without a problem. If I try right-clicking in Konqueror and choosing "Mount", I get an error, even if I launch it as root.

What error do you get? The system doesn't automatically unount (well I don't think so) driver that turn off while mounted, you may have to unmount (you might need touse the -f option) them before mounting again. In any case, you shouldn't remove/turn off a drive without unmounting it first, as you may create mess on the filesystem (especially on FAT).
What kind of mess and how do you clean it up?

Here is the situation. I have an mp3 player that I connect via a USB port.
It is mounted as:

mount -t msdos /dev/sdb1 /sdb1
I am using kernel 2.6.16.

If I make the mistake of disconnecting the player without first umounting
it, I cannot thereafter remount it, or anything on sdb, or sdc.

I tracked down the problem to the file /etc/mtab, as the only file that is
different in the /etc directory between two systems, one which works and
one which doesn't. I can't simply copy over the working mtab and reboot,
that doesn't fix the problem.

I have two partitions holding Slackware 10.2. One is the backup of the
other. I fouled up my main partition by the disconnect without umounting.
I wrote a script to compare all the files in the /etc directory:

cd /etc
rm differences
find . -print >allfiles
while read file
do
echo NEWFILE:$file >>differences
diff $file other_partition/$file >>differences
done <allfiles

There is really an intermediate step in the creation of allfiles, but that
is irrelevant.

Only two files come up different: adjtime which tweaks the system clock
and mtab.

If I merely copy over mtab from the working partition it doesn't correct
the problem. If I copy the whole /etc directory over it does fix the
problem.

I can't make any sense out of this.
 
  


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
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 11:50 AM

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

All times are GMT -5. The time now is 03:31 PM.

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