Slackware This Forum is for the discussion of Slackware 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-20-2006, 05:05 AM
|
#1
|
LQ Newbie
Registered: Jan 2006
Posts: 15
Rep:
|
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.
|
|
|
01-20-2006, 05:10 AM
|
#2
|
Member
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354
Rep:
|
next time you plug it in have a look at the output from dmesg
|
|
|
01-20-2006, 05:42 AM
|
#3
|
LQ Newbie
Registered: Jan 2006
Posts: 15
Original Poster
Rep:
|
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!
|
|
|
01-20-2006, 02:59 PM
|
#4
|
Member
Registered: Jun 2004
Distribution: Slackware
Posts: 241
Rep:
|
"fdisk -l" should list the usb stick and where it's located once you plug it in.
|
|
|
01-20-2006, 08:34 PM
|
#5
|
LQ Newbie
Registered: Dec 2005
Location: Silt, Colorado USA
Distribution: dsl; suse 9.1 personal; slackware; puppy
Posts: 8
Rep:
|
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.
|
|
|
01-20-2006, 09:52 PM
|
#6
|
LQ Newbie
Registered: Jan 2006
Posts: 10
Rep:
|
Pepto: As root try this:
# . /etc/rc.d/rc.hotplug restart
then
# fdisk -l
to see if it got loaded...
|
|
|
01-20-2006, 10:17 PM
|
#7
|
LQ Newbie
Registered: Dec 2005
Location: Silt, Colorado USA
Distribution: dsl; suse 9.1 personal; slackware; puppy
Posts: 8
Rep:
|
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!!
|
|
|
01-20-2006, 11:20 PM
|
#8
|
LQ Newbie
Registered: Jan 2006
Posts: 10
Rep:
|
Not a problem
Not a problem
IntoX
|
|
|
01-21-2006, 12:46 PM
|
#9
|
LQ Newbie
Registered: Jan 2006
Location: Virginia
Distribution: Slackware 10.2
Posts: 20
Rep: 
|
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. 
|
|
|
02-26-2006, 01:01 PM
|
#10
|
LQ Newbie
Registered: Feb 2006
Distribution: Slackware 10.1
Posts: 3
Rep:
|
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...
|
|
|
02-26-2006, 01:21 PM
|
#11
|
LQ Newbie
Registered: Feb 2006
Distribution: Slackware 10.1
Posts: 3
Rep:
|
Problem solved!!!ignore my previous message.thanx again for all help.
|
|
|
All times are GMT -5. The time now is 10:38 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
|
|