LinuxQuestions.org
Review your favorite Linux distribution.
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 10-13-2006, 11:44 AM   #1
Clarence27
Member
 
Registered: Jun 2006
Location: Australia, South Australia
Posts: 102

Rep: Reputation: 15
usb stick in slackware 9.1


Im new to linux and slackware 9.1 I have jsut installed this distro and have stuck my usb stick into my compy. HOwever when i go into mnt it does not show?:S Can anyone plz help me?
 
Old 10-13-2006, 12:40 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Have you mounted the device? Why are you using 9.1 instead of a newer version? :/
 
Old 10-13-2006, 02:27 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
What do the last few lines of dmesg show just after you plug usbstick in?

You didn't say what kernel you are using but you may need to use one with usb mass storage, scsi support, scsi disk support and scsi generic support as modules or built in.
 
Old 10-14-2006, 12:20 AM   #4
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
The only reason for runnning such an old version of Slackware is if you have a stable production server that you just want to "run"

9.1 is using ancient versions of KDE and still had Gnome desktop, I think.

If you get the latest 11.0 and do a clean install, you are more likely to get your questions answered here, without having to search in the archives for threads that closed a few years ago.
 
Old 10-14-2006, 01:56 AM   #5
2.718281828
Member
 
Registered: Jan 2004
Distribution: Arch, formerly Slackware
Posts: 43

Rep: Reputation: 15
Quote:
Originally Posted by davidsrsb
The only reason for runnning such an old version of Slackware is if you have a stable production server that you just want to "run"
Haha, yeah, or if you're me and you haven't gotten around to configuring Slackware 11 yet... Slackware 9.1 still works fine for me, but I can't easily install new software any more because all my development libraries are too old.

Anyway, I use my USB memory stick in Slackware 9.1. The original poster seems to think you can just plug things in and have them automatically configured. Well, Slackware doesn't do things that way. I got my USB drive to work by loading the usb-storage module and adding this line to /etc/fstab:
Code:
/dev/sda1       /mnt/usb        vfat        noauto,user,uid=1000,gid=100 0  0
You might need to change /dev/sda1 to something else like /dev/sdb1. You don't really need the uid and gid part. That just makes me the owner of the drive when it mounts. Then you need to make the /mnt/usb dirctory, plug in the drive, and type
Code:
mount /mnt/usb
When you want to take the USB stick out, run
Code:
umount /mnt/usb
At least, I think that's all I did to get my USB drive working. Good luck.
 
Old 10-14-2006, 08:51 AM   #6
Clarence27
Member
 
Registered: Jun 2006
Location: Australia, South Australia
Posts: 102

Original Poster
Rep: Reputation: 15
I have followed your instructions and all went well except for the last part:

Called: mount -tvfat /dev/sda1 /mnt/usb -o noauto,user,uid=1000,gid=100
mount: mount point /mnt/usb does not exist

Any ideas why this happened?
 
Old 10-14-2006, 09:29 AM   #7
glussier
Member
 
Registered: Jul 2005
Location: Montreal, Qc, Canada
Distribution: Fedora Core 5/6 Slackware 10.1/11
Posts: 120

Rep: Reputation: 15
Open a console:

su
mkdir /mnt/usb


Then you should be able to go.
 
Old 10-14-2006, 09:54 AM   #8
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
To be honest, that error message is quite clear..
 
Old 10-14-2006, 10:22 AM   #9
tfrei
Member
 
Registered: Dec 2004
Location: Fargo
Distribution: slackware 13.37
Posts: 63

Rep: Reputation: 16
I think Nylex means that you need to create "/mnt/usb". Just do as root:

Quote:
cd /mnt
mkdir usb
I'm not sure, but you may need to reboot after that.

Edit: Sorry glussier; you already said this. I didn't see your post.

Last edited by tfrei; 10-14-2006 at 10:23 AM.
 
Old 10-14-2006, 11:05 AM   #10
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by tfrei
I'm not sure, but you may need to reboot after that.
No. Just mkdir the mountpoint and put the entry in /etc/fstab then try to mount it.

Also reading the last few lines of dmesg after plugging in your usb stick usually gives some info about which dev it's been assigned to.
 
Old 10-14-2006, 12:26 PM   #11
Clarence27
Member
 
Registered: Jun 2006
Location: Australia, South Australia
Posts: 102

Original Poster
Rep: Reputation: 15
alright ive done mkdir on it all as root user. I now get this message:
Called: mount /mnt/usb
[mntent]: warning: no final newline at the end of /etc/fstab
mount: mount point /mnt/usb does not exist

and another is this:
Called: mount -tvfat /dev/sda2 /mnt/usb -o defaults
mount: mount point /mnt/usb does not exist
 
Old 10-14-2006, 12:40 PM   #12
2.718281828
Member
 
Registered: Jan 2004
Distribution: Arch, formerly Slackware
Posts: 43

Rep: Reputation: 15
Are you sure /mnt/usb exists? What do you get when you type
Code:
ls /mnt/usb
Did you check the output from dmesg to make sure your USB drive is sda2? When you type dmesg after plugging in your drive, one of the last lines should say something like "sda: sda2" and then /dev/sda2 would be what you want. Also, do you have the usb-storage module loaded? You should see it when you type
Code:
lsmod | grep usb-storage
Otherwise, type
Code:
modprobe usb-storage
Of course, you need to do most of this as root for it to work.

I don't think the warning about /etc/fstab missing a final newline is going to stop you from mounting the drive, but you might want to fix that some time (probably just open the file in an editor and go to the end of the last line, and hit enter). The command you tried,
Code:
mount -tvfat /dev/sda2 /mnt/usb -o defaults
should work provided that /mnt/usb/ exists and the usb-storage module is loaded.
 
Old 10-14-2006, 02:44 PM   #13
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Hey,
I am also a total newbie and this is what I did. I booted up and then connected the USB stick. then typed dmesg in the console. I read where it has put the stick and then mounted it to a USB folder.
 
Old 10-14-2006, 03:02 PM   #14
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by duryodhan
Hey,
I am also a total newbie and this is what I did. I booted up and then connected the USB stick. then typed dmesg in the console. I read where it has put the stick and then mounted it to a USB folder.
Yes that's pretty much all you need to do, but you must have usb mass storage, scsi disk and scsi generic support in kernel (as well as a mountpoint).
 
Old 10-15-2006, 08:05 AM   #15
littledrop
Member
 
Registered: Aug 2006
Posts: 79

Rep: Reputation: 15
Quote:
Originally Posted by dive
Yes that's pretty much all you need to do, but you must have usb mass storage, scsi disk and scsi generic support in kernel (as well as a mountpoint).
mount -tvfat /dev/sda2 /mnt/usb -o defaults
may be its incorrect as I haven't tried it.


mount -t vfat /dev/sda2 /mnt/usb -o defaults
 
  


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
How to use usb stick in Slackware 11? rsamurti Slackware 3 10-11-2006 02:54 PM
How Can I Use My Usb Stick Drive In Slackware grok82 Linux - Hardware 7 04-09-2006 06:23 PM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM
usb memory stick in slackware 10 MayaPT Linux - Newbie 1 10-02-2004 08:47 PM


All times are GMT -5. The time now is 05:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration