LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-25-2006, 02:05 PM   #1
Newtonx
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware 11.0 with 2.6.18.2 Kernel compiled from source at kernel.org
Posts: 16

Rep: Reputation: 0
trouble mounting USB


i have a serial ATA hdd, and i'm using slackware 10.2, my hdd reads as /dev/sda so my root is /dev/sda1 /dev/sda5 is my swap partition, i'm trying to mount my usb, without using x, what should my usb be in fstab ..../dev/???..........the usb is generally for winxp but i'm using slackware 10.2 on this computer and it works fine, i'm using a sandisk micro cruzer 2 gig jump drive....if that helps any
 
Old 10-25-2006, 02:31 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
PLug it in and then check your log files..

tail /var/log/dmesg
tail /var/log/messages

One of those log files should show the USB drive being plugged in and what /dev/sdx was assigned to it.
 
Old 10-26-2006, 12:28 PM   #3
Newtonx
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware 11.0 with 2.6.18.2 Kernel compiled from source at kernel.org
Posts: 16

Original Poster
Rep: Reputation: 0
it only shows what /dev/xxx i've assigned it and it won't mount, anybody know the file system for that usb? i tryed
Code:
mount /dev/sda2 -t vfat /mnt/usb
but it didn't work...i've tryed many other /dev/xxx points but everytime i get it is not a valid fat fs type
 
Old 10-26-2006, 02:13 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
You can find out which sda devs have been detected by

Code:
dmesg | grep sd
and
Code:
ls -l /dev/sd*
then use mount like so

Code:
mount -t xxx /dev/xxx /mnt/xxx
where xxx is the appropriate fs, device and mount point. Be sure the /mnt/xxx actually exists.
 
Old 10-27-2006, 07:26 PM   #5
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
What is the exact error messae you get when yuo try to mount the drive ?

Did you create the directory /mnt/usb you are trying to mount the drive to ?

if you have a Seiral ATA Hard drive the it is /dev/sda , when you plug in a USB drive it would most likely be assigned /dev/sdb so to mount it

mount -t vfat /dev/sdb1 /mnt/usb

checking dmesg log after pluggin in the drive should confirm that..
 
Old 12-06-2006, 02:30 PM   #6
Newtonx
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware 11.0 with 2.6.18.2 Kernel compiled from source at kernel.org
Posts: 16

Original Poster
Rep: Reputation: 0
nevermind i figured it out, the correct syntax was
Code:
mount -t ext2 /dev/sda1 /mnt/usb
 
  


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
trouble mounting USB drive edobrzel Linux - Hardware 7 06-03-2008 01:40 PM
trouble mounting usb drive adssse Linux - Newbie 5 05-13-2005 02:33 PM
Newbie Trouble Mounting USB with Mandrake 10.1 themarina Linux - Hardware 4 01-03-2005 06:52 PM
Trouble mounting USB card player... pdmackenzie Linux - Hardware 0 03-26-2004 08:25 PM
Trouble Mounting USB CDRW lawrencegoodman Linux - Hardware 2 01-27-2004 02:31 PM


All times are GMT -5. The time now is 12:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration