LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   usb stick in slackware 9.1 (https://www.linuxquestions.org/questions/slackware-14/usb-stick-in-slackware-9-1-a-492112/)

Clarence27 10-13-2006 10:44 AM

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?

Nylex 10-13-2006 11:40 AM

Have you mounted the device? Why are you using 9.1 instead of a newer version? :/

dive 10-13-2006 01:27 PM

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.

davidsrsb 10-13-2006 11:20 PM

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.

2.718281828 10-14-2006 12:56 AM

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.

Clarence27 10-14-2006 07:51 AM

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?

glussier 10-14-2006 08:29 AM

Open a console:

su
mkdir /mnt/usb


Then you should be able to go.

Nylex 10-14-2006 08:54 AM

To be honest, that error message is quite clear..

tfrei 10-14-2006 09:22 AM

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.

dive 10-14-2006 10:05 AM

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.

Clarence27 10-14-2006 11:26 AM

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

2.718281828 10-14-2006 11:40 AM

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.

duryodhan 10-14-2006 01:44 PM

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.

dive 10-14-2006 02:02 PM

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).

littledrop 10-15-2006 07:05 AM

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

Clarence27 10-15-2006 08:45 AM

ive tried all this. None of this works:S

dive 10-15-2006 09:12 AM

Clarence27: In your last post you said you were still getting 'mount point does not exist' error. You must cd into /mnt and look - does /mnt/usb exist or not? If not mkdir it.


All times are GMT -5. The time now is 01:14 PM.