LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to connect pen drive (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-connect-pen-drive-358510/)

nick021 08-30-2005 11:13 AM

how to connect pen drive
 
hi

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

regards
:study:

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:
Code:

$ su
Password:
# 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. ;)

J_K9

tuxrules 08-30-2005 11:44 AM

connect your drive...open up a terminal

$ dmesg | tail

gives you the device details...like 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.


Tux,

nick021 09-01-2005 01:55 PM

detecting pen drive
 
hi

my pendrive has been detected by slackware 10.0

thanks:D

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 01:11 PM.