LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-06-2004, 06:08 PM   #1
esanchez
Member
 
Registered: Mar 2004
Location: SJ, Costa Rica
Distribution: Slackware
Posts: 34

Rep: Reputation: 15
Can't mount usb drive


Hi everybody!
I'm trying to mount a usb drive in the followin way:
Code:
mount -t usbdevfs /dev/sda1 /mnt/usb
but the only thing I get in the /mnt/usb dir is:
Code:
root@midget:~# ls -la /mnt/usb
total 1
dr-xr-xr-x  1 root root   0 2004-10-06 17:16 ./
drwxr-xr-x  6 root root 144 2004-09-30 10:30 ../
dr-xr-xr-x  1 root root   0 2004-10-06 17:16 001/
-r--r--r--  1 root root   0 2004-10-06 17:16 devices
-r--r--r--  1 root root   0 2004-10-06 17:16 drivers
I have the modules usb-storage and usb-ohci loaded in the kernel.
As far as I know the usb drive is recognized by linux, I can see is
a JetFlash doing:
Code:
root@midget:~# cat /proc/scsi/scsi 
Attached devices: 
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: JetFlash Model: TS64MJF2B        Rev: 2.00
  Type:   Direct-Access                    ANSI SCSI revision: 02
I have read the linux-usb.org site and the guide listed there, but still cannot make
it work...
any help would be appreciated..
thanks in advance..
regards,
-eduardo s.m.
 
Old 10-06-2004, 06:13 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You probably want to use mount -t vfat /dev/sda1 /mnt/usb (if using a FAT32 Windows file system) to make it appear like an ordinary drive instead of a USB device filesystem.

In addition, you may also want to add an umask= option or a gid= option to make it fully accessible for your regular (non-root) user.


Håkan
 
Old 10-06-2004, 06:19 PM   #3
esanchez
Member
 
Registered: Mar 2004
Location: SJ, Costa Rica
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
That didn't work either:
Code:
root@midget:~# mount -t vfat /dev/sda1 /mnt/usb
mount: /dev/sda1 is not a valid block device
any other thought?
regards,
 
Old 10-06-2004, 06:38 PM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
tail you syslog when you plug the drive in and see if it assigns a /dev/sd? designation. For whatever the reason my camera is always /dev/sdb on my old laptop (even when there are no other SCSI or USB devices plugged in).

Håkan
 
Old 10-06-2004, 06:39 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
type ' fdisk -l ' to see if it is being seen and where which /dev it is located at.
 
Old 10-06-2004, 07:24 PM   #6
esanchez
Member
 
Registered: Mar 2004
Location: SJ, Costa Rica
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
I if make fdisk -l this is the output:
Code:
root@midget:~# fdisk -l

Disk /dev/sda: 65 MB, 65536000 bytes
3 heads, 42 sectors/track, 1015 cylinders
Units = cylinders of 126 * 512 = 64512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   ?    15237707    19558636   272218546+  20  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(356, 97, 46) logical=(15237706, 0, 3)
Partition 1 has different physical/logical endings:
     phys=(357, 116, 40) logical=(19558635, 0, 41)
Partition 1 does not end on cylinder boundary.
/dev/sda2   ?    10557018    14834608   269488144   6b  Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(288, 110, 57) logical=(10557017, 1, 19)
Partition 2 has different physical/logical endings:
     phys=(269, 101, 57) logical=(14834607, 0, 8)
Partition 2 does not end on cylinder boundary.
/dev/sda3   ?     4277694    15375812   699181456   53  OnTrack DM6 Aux3
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(345, 32, 19) logical=(4277693, 1, 32)
Partition 3 has different physical/logical endings:
     phys=(324, 77, 19) logical=(15375811, 2, 33)
Partition 3 does not end on cylinder boundary.
/dev/sda4   *    11068474    11068643       10668+  49  Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(87, 1, 0) logical=(11068473, 1, 24)
Partition 4 has different physical/logical endings:
     phys=(335, 78, 2) logical=(11068642, 2, 24)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order
I've trying to mount each of the sda's partitions with the same result always...
regards,
-eduardo s.m.
 
Old 10-09-2004, 04:48 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Why so many partitions on a 65 meg drive. If it was me I would fdisk the drive under linux and create only one partition as vfat and go from there. Lot sa of info on fdisk and formatted the drive here.
 
Old 10-10-2004, 10:44 AM   #8
esanchez
Member
 
Registered: Mar 2004
Location: SJ, Costa Rica
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
don't know why so many partitions, it seems the drive was formatted using WinXP, and mess with
the MBR of the drive.
I mounted the drive using:
Code:
mount -t vfat /dev/sda /mnt/usb
I know how to make only one partition on the drive, but how can I format it?
regards,
-eduardo s.m.
 
Old 10-10-2004, 03:25 PM   #9
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
use mkdosfs
 
Old 10-10-2004, 10:39 PM   #10
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.2 and Slackware Arm
Posts: 479

Rep: Reputation: 44
If you don't need to use it with XP then use cfdisk to delete the partitions one at a time, then write a new partition table for just one partition.

Be warned: I had this problem with a handy2 or something drive. After doing the above it worked great with Linux machines but everytime I put it in an XP machine XP reported that it was not formatted

mark
 
  


Reply



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
Mount usb drive, umount and mount another drive arubin Linux - Hardware 9 01-17-2007 03:46 AM
USB drive mount double mount issue pazzport Ubuntu 3 10-10-2005 08:28 PM
mount usb drive pmorimer Linux - Hardware 3 08-24-2004 10:16 PM
USB drive won't mount. Borg Swarm DamnSmallLinux 1 02-07-2004 09:25 AM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:00 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