-   Linux - Newbie (
-   -   how to connect pen drive (

nick021 08-30-2005 11:13 AM

how to connect pen drive

i have slackware 10.0 on my laptop.
it has 3 usb slots.
i want to connect pen drive(usb flash drive) to it .
how will i detect my usb flash drive and mount it on slackware


J_K9 08-30-2005 11:43 AM

Hi nick021, and welcome to LQ! :D

Ok, plug your pen drive into one of the USB ports - whichever one you like the most! Then, go into terminal/console. If you are using GNOME, then just right-click on the desktop and select "Open Terminal". If not just browse your menu for Konsole or a terminal program and open it. Then, type in the following:

$ su
# mount -a

That should automatically mount your drive (it mounts everything visible), and the mounted drive should be found in either /mnt or /media (I'm not too familiar with Slackware).

If you are still having trouble mounting it, or trouble with file permissions, then please reply stating the problem. ;)


tuxrules 08-30-2005 11:44 AM

connect your up a terminal

$ dmesg | tail

gives you the device device name...sda1 or sdb1 or something else.

go ahead log in as root

# mkdir /mnt/pendrive
# mount -t <fs-type> -o rw /dev/device /mnt/pendrive

fs-type is generally fat32 for usb pen drives

replace "device" with whatever number you get from dmesg

you can then

# cd /mnt/pendrive

# ls

to see contents of your pendrive.


nick021 09-01-2005 01:55 PM

detecting pen drive

my pendrive has been detected by slackware 10.0


Poetics 09-01-2005 03:10 PM

USB devices are most often detected as Serial devices in Slackware. An easy way to do it in the future is to do the following:

$ su -
# mkdir /mnt/usb
# mount /dev/sda1 /mnt/usb

Then you can edit your fstab so it knows to mount there, and so users can mount it.

All times are GMT -5. The time now is 08:03 AM.