LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2006, 01:09 AM   #1
zhuqlfeixia
LQ Newbie
 
Registered: Dec 2005
Posts: 19

Rep: Reputation: 0
Why I can't not mount my USB


Hi,everybody
I'm using the Redhat9.0
I use "mount -t vfat /dev/sda1 /mnt/usb" to mount my USB,and it's successful.
But today I try again, it dosen't work! I don't know why.....
The system says:

[root@localhost root]# mount -t vfat /dev/sda1 /mnt/usb
mount: /dev/sda1 is not a valid block device

and then :
[root@localhost root]# fsck /dev/sda1
fsck 1.32 (09-Nov-2002)
e2fsck 1.32 (09-Nov-2002)
fsck.ext2: No such device or address while trying to open /dev/sda1
Possibly non-existent or swap device?

What's the reason?
Could somebody tell me?
Thanks!
 
Old 01-24-2006, 02:50 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
To check the device use:
fsck -t vfat /dev/sda1
ext2 is a linux filesystem.

Also, if this is a memory stick, be sure to use the 'noatime' option.
 
Old 01-24-2006, 02:55 AM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Can you explain what noatime do please? I read man mount, but i don't exactly understand what it do.
 
Old 01-24-2006, 03:16 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
noatime will prevent ext2/ext3 files(inode of the file) from seing their "accesstime" changed whenever you access them.

This is to speed up disk access and also to not write anything to the disk if you just edit a file without even modifying it.

It's a good thing for flashmemory as they have a limited number of accesses.

The thing is that it is not honoured by vfat so it's useless for vfat.
 
Old 01-24-2006, 04:20 AM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Thanx for this info!
 
Old 01-24-2006, 04:24 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Y a pas de quoi
 
Old 01-24-2006, 06:52 AM   #7
ari_sant
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
I am use KNOPPIX 4.02 and install to my HD, Its OKE but if my USB plugin the ICON can not automatically display on DESKTOP,
Why ????
I ever use as same way with KNOPPIX 3.8 No problem and no problem like that
Thank U
 
Old 01-24-2006, 07:50 AM   #8
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
First off, you'd be better off starting your own thread rather than dredging one up from four months ago (if only because threads with no replies get auto-bumped amongst other things).

Anyway, without more information your question is very difficult to diagnose. Can you mount the memory stick? When you plug it in, does the kernel see it (look for "new USB device detected"-style messages in the output from 'dmesg')? Do you have a line in /etc/fstab relating to your memory stick? If I had to guess, I'd say that last one's most likely the problem.
 
Old 01-24-2006, 10:04 AM   #9
zhuqlfeixia
LQ Newbie
 
Registered: Dec 2005
Posts: 19

Original Poster
Rep: Reputation: 0
to Dtsazza:I really don't understand your means, I have the problem,so I write out it.
when I reboot my system,I can mount the USB,I don't understand.........
It seems lot's of people have the same problem. Why there is'n a exact solution?
 
Old 01-24-2006, 10:19 AM   #10
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
First the mount -t vfat .. is the good line.
the fsck will not work on vfat

Have you tried reading it on another OS like windows?
I'm wondering if you did not unplug the usb without unmounting it, or if you didn't format it with something else.

what gives this:
modprobe vfat if it is not in lsmod
mount /dev/sda1 /mnt/usb
?

edit:
oops, from your first post:
fsck.ext2: No such device or address while trying to open /dev/sda1

this would indicate that you have a usb problem.
Code:
fdisk -l

Last edited by nx5000; 01-24-2006 at 10:24 AM.
 
Old 01-25-2006, 08:06 AM   #11
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
Quote:
Originally Posted by zhuqlfeixia
to Dtsazza:I really don't understand your means, I have the problem,so I write out it.
I was responding to ari_sant's post... which demonstrates another reason why you should start your own thread

It seems like your problem is caused by the USB subsystem not detecting the USB device and mapping /dev/sda1 to it. You might want to look at the output of 'dmesg' to see if there's any clues there to why this isn't happening (there's usually a good eight or so lines when you connect a USB device to tell you what the kernel's doing).
 
  


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 - Newbie

All times are GMT -5. The time now is 02:57 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