LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-20-2006, 05:05 AM   #1
Lunar_Lamp
LQ Newbie
 
Registered: Jan 2006
Posts: 15

Rep: Reputation: 0
usb stick - not /dev/sda1?


Ok, I am relatively new to linux I guess, but on all other distros I have experimented with, mounting a USB stick has been a variation of mount /dev/sda1

However, when I plug in the usb stick the output of tail -f /var/log/messages gives me this (relevant info copied over as not posting from same pc):

Code:
darkstar kernel: hub.c: new USB device 00:01.2-1, assigned address 2
darkstar kernel: hub.c: new USB device 00:01.2-1, assigned address 3
the command "mount /dev/sda1 /media/stick" (having previously created /media/stick), gives the error "/dev/sda1 is not a valid block device".

I have tried with both sda2 and sda3 also.

What am I doing wrong here? Please help! I have tried googling, but I couldn't find anything that I could work out how it applied to my situation, though I am sure it is there.
 
Old 01-20-2006, 05:10 AM   #2
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
next time you plug it in have a look at the output from dmesg
 
Old 01-20-2006, 05:42 AM   #3
Lunar_Lamp
LQ Newbie
 
Registered: Jan 2006
Posts: 15

Original Poster
Rep: Reputation: 0
oh.

Well, I have no idea how it happened, but now "mount /dev/sda1 /media/stick" works. Now all I need to do is edit my /etc/fstab to make it all nicer - thanks for pointing me to read dmesg.

Thanks a lot KMcD!
 
Old 01-20-2006, 02:59 PM   #4
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
"fdisk -l" should list the usb stick and where it's located once you plug it in.
 
Old 01-20-2006, 08:34 PM   #5
Pepto
LQ Newbie
 
Registered: Dec 2005
Location: Silt, Colorado USA
Distribution: dsl; suse 9.1 personal; slackware; puppy
Posts: 8

Rep: Reputation: 0
perhaps I missed what the solution was? I have the same exact problem that Lunar_Lamp describes, with one other twist. If I plug in the stick before I boot the box, then I can mount it as sda1 which sounds like it's getting picked up in the hardware probe at boot time. If I plug it in after the box is up and running, all I get is the invalid block device error as described above. Dmesg shows no new entries since the boot up finished. fdisk -l shows only hda1 and the swap space. this is running 10.2 with the 2.4.31 kernel.
 
Old 01-20-2006, 09:52 PM   #6
intox
LQ Newbie
 
Registered: Jan 2006
Posts: 10

Rep: Reputation: 0
Pepto: As root try this:

# . /etc/rc.d/rc.hotplug restart

then

# fdisk -l

to see if it got loaded...
 
Old 01-20-2006, 10:17 PM   #7
Pepto
LQ Newbie
 
Registered: Dec 2005
Location: Silt, Colorado USA
Distribution: dsl; suse 9.1 personal; slackware; puppy
Posts: 8

Rep: Reputation: 0
Yep, that worked. doing
# . /etc/rc.d/rc.hotplug restart
and I could see the led on the stick blinking a few times while hotplug was running. when that was done, then fdisk reported it as /dev/sda1 and I could mount it. Thanks for the quick solution!!
 
Old 01-20-2006, 11:20 PM   #8
intox
LQ Newbie
 
Registered: Jan 2006
Posts: 10

Rep: Reputation: 0
Not a problem

Not a problem

IntoX
 
Old 01-21-2006, 12:46 PM   #9
skisoccer13
LQ Newbie
 
Registered: Jan 2006
Location: Virginia
Distribution: Slackware 10.2
Posts: 20

Rep: Reputation: Disabled
I'm kind of having the same problem. I just compiled the 2.6.15 kernel and now my I can't mount my usb hard drive anymore (can't find /dev/sda1 in /etc/fstab or /etc/mtab). I'm sure it's just something that I didn't include in the compile or something else that's simple. It doesn't show up with fdisk -l and the hotplug restart didn't work. I'm guessing it's just something that I forgot to check in the menuconfig. I would post the config but I can't get the internet working on my linux box either.
 
Old 02-26-2006, 01:01 PM   #10
silenas
LQ Newbie
 
Registered: Feb 2006
Distribution: Slackware 10.1
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by intox
Pepto: As root try this:

# . /etc/rc.d/rc.hotplug restart

then

# fdisk -l

to see if it got loaded...
I had exactly same problem as Pepto. and this worked fine for me as well. Thanx, intox!!!!! However, could anyone tell me how to mount my USB flash disk without restarting rc.hotplug??I mean, how to make sda device seen by fdisk automatically when the disk to sda is inserted.

Sorry, if i'm completely misunderstanding things and said something really stupid, but it's my second day with Linux...
 
Old 02-26-2006, 01:21 PM   #11
silenas
LQ Newbie
 
Registered: Feb 2006
Distribution: Slackware 10.1
Posts: 3

Rep: Reputation: 0
Problem solved!!!ignore my previous message.thanx again for all help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB: Memory Stick: no /dev/sda1 sysbox Linux - Hardware 6 08-09-2005 11:29 PM
USB drive... /dev/sda1 does not exist! Lord Zoltar Linux - Hardware 48 05-15-2005 11:55 AM
USB 2.0 memory stick mount: wrong fs type, bad option, bad superblock on /dev/sda1, o olivier.riff Linux - Hardware 2 11-12-2003 08:11 AM
USB - /dev/sda1 is not a block device rstebbins Linux - Hardware 4 08-14-2003 05:16 AM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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