SlackwareThis 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.
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.
You need to mount the partition on it to be able to access the files. After you plug the device in, run dmesg in a terminal and that will help you find out what the kernel is calling it. For example, here's the output after I plug mine in:
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: Direct-Access Sony Storage Media 0100 PQ: 0 ANSI: 0 CCS
SCSI device sdb: 1966080 512-byte hdwr sectors (1007 MB)
sdb: Write Protect is off
sdb: Mode Sense: 43 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 1966080 512-byte hdwr sectors (1007 MB)
sdb: Write Protect is off
sdb: Mode Sense: 43 00 00 00
sdb: assuming drive cache: write through sdb: sdb1
sd 2:0:0:0: Attached scsi removable disk sdb
sd 2:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
The bit in bold tells me that the kernel's calling it /dev/sdb and that there's 1 partition on it (sdb1), which is the one I need to mount.
Once you find out this information you can then mount it with "mount devicemount point -t filesystem type -o options"
For example, I can mount mine with "mount /dev/sdb1 /mnt/memory -t vfat", since the partition is formatted FAT32. You may not need to specify the filesystem type or any options. The mount point (/mnt/memory in my example) must exist before you try and mount, otherwise you'll get an error telling you it doesn't exist. You will need to be root to mount.
One thing to note: the device may not always be called the same thing. Say I have two memory sticks and I plug them in in different orders at different times. The one I plugged in first the first time will be sdb, but will be sdc the second time (I also have an SATA hard drive in my machine, which is sda). You'd probably like to assign meaningful, persistent names to your removable devices (for example, my memory sticks end up being called /dev/flash, rather than /dev/sdb), which you can do with udev and a 2.6.15.x kernel (or later).
and add your users to the appropriate groups (check out the sticky in the forum)
Code:
larry@darkstar:~$ groups
users floppy audio video cdrom plugdev
larry@darkstar:~$
Now USB work fine after "chmod +x rc.messagebus ; chmod +x rc.hal" and installation of vsupdfstab-0.1-noarch-0.tgz.
Quote:
The vsupdfstab automatically adds to fstab USB mass storage devices when they are plugged in, and removes them from fstab when they are removed. This program don't automatically mount devices, because this is incompatible with KDE.
You shouldn't need vsupdfstab for HAL to work properly. I don't have it installed, and everything works for me.
More importantly, I personally don't want anything but *me* editing /etc/fstab. I don't see the need for it anyway -- what's the point?
I've got ivman and pmount for 12.0 ready to commit at SlackBuilds.org, so I'll try to go ahead and get those pushed out tonight or tomorrow -- it seems that a lot of people are wanting that sort of functionality.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.