LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-15-2007, 11:11 AM   #1
warun
Member
 
Registered: Aug 2007
Posts: 39

Rep: Reputation: 15
mounting usb pen drive


i'm using slackware 11... i need to know how to mount a usb pen drive... i tried editing the /etc/fstab file but dint work...

thanks in advance....
 
Old 10-15-2007, 11:24 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,634

Rep: Reputation: 144Reputation: 144
Plug in the device. As root do
Code:
cat /var/log/messages
.

You will see a similar output like this one:
Code:
Oct 15 17:23:08 nestor kernel: usb 1-10: new high speed USB device using ehci_hcd and address 6
Oct 15 17:23:08 nestor kernel: usb 1-10: configuration #1 chosen from 1 choice
Oct 15 17:23:08 nestor kernel: scsi5 : SCSI emulation for USB Mass Storage devices
Oct 15 17:23:13 nestor kernel: scsi 5:0:0:0: Direct-Access     Generic  MP3 player       0100 PQ: 0 ANSI: 4
Oct 15 17:23:13 nestor kernel: SCSI device sdb: 1020032 2048-byte hdwr sectors (2089 MB)
Oct 15 17:23:13 nestor kernel: sdb: Write Protect is off
Oct 15 17:23:13 nestor kernel: SCSI device sdb: 1020032 2048-byte hdwr sectors (2089 MB)
Oct 15 17:23:13 nestor kernel: sdb: Write Protect is off
Oct 15 17:23:13 nestor kernel:  sdb: sdb1
From the output you see that the device is named "sdb", the only partition on it is sdb1. To mount it at /mnt/tmp do:

Code:
mount /dev/sdb1 /mnt/tmp
If needed use some umask options to fine tune the permissions that the device gets if it is FAT32 formatted. In this case

Code:
mount -t vfat -o umask=0000 /dev/sdb1 /mnt/tmp
should give all users full write access to it, although it's not very secure of course.
 
Old 10-15-2007, 11:28 AM   #3
jowa45
Member
 
Registered: Apr 2007
Location: Stockholm, Sweden
Distribution: Slackware11&14.1
Posts: 119

Rep: Reputation: 15
I use something like:

mount -t vfat /dev/sda1 /mnt/memory

You have to experiment with the sda1. Try things like sda2 sdb1.

Failing that boot up with the usb in. You might just see something in dmesg or /var/log/messages.

John
 
Old 10-15-2007, 12:49 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349Reputation: 1349
http://slackwiki.org/Windows_Partitions
 
  


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
mounting a usb pen drive syedtariq Linux - Newbie 3 02-27-2007 12:20 PM
problem mounting USB pen drive Gogul VectorLinux 2 04-25-2006 03:42 AM
problem in mounting a USB pen drive santhosh.linux Programming 2 04-21-2006 12:05 AM
USB Pen Drive not mounting Psirus Debian 10 01-11-2006 12:15 AM
mounting usb pen drive; ntfs problem ShamitSoneji Fedora 20 12-01-2004 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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
Open Source Consulting | Domain Registration