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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-24-2006, 06:28 PM
|
#1
|
Member
Registered: May 2004
Distribution: SuSe 10.0
Posts: 31
Rep:
|
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
|
|
|
|
01-24-2006, 07:34 PM
|
#2
|
Member
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230
Rep:
|
as root:
mount /dev/sdb1 /media/external2
mount /dev/sda5 /media/ntfs
mount /dev/sda1 /media/FAT3
|
|
|
01-24-2006, 11:05 PM
|
#3
|
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163
Rep:
|
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).
|
|
|
01-24-2006, 11:31 PM
|
#4
|
Member
Registered: May 2004
Distribution: SuSe 10.0
Posts: 31
Original Poster
Rep:
|
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.
|
|
|
05-17-2006, 04:24 PM
|
#5
|
LQ Newbie
Registered: May 2006
Distribution: Slackware 13.0
Posts: 28
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|