LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-18-2006, 06:09 PM   #1
proeliator
LQ Newbie
 
Registered: Mar 2006
Posts: 15

Rep: Reputation: 0
USB Drive


Hello,

I'm fairly new to Linux, I have only used Linspire before, and I just installed Debian stable version (3.1)(Linux 2.6.8-2-386) The problem is that I don't have the foggiest idea how to mount the usb drive. I've downloaded pmount, but I don't know how to work it. The lsusb command found the drive:

Bus 002 Device 004: ID 05dc:a300 Lexar Media, Inc.

So I know it identifies it at least.

When I ran demesg, however, I got this in regards to the USB:

usb-storage: Error in device_reset: invalid state 0

I've looked at several posting on the web, but I suspect most of the advice is out of date.

HELP

best
 
Old 03-18-2006, 06:54 PM   #2
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Rep: Reputation: 15
i never really figured out automatic mounting in debian, but the way i did it was to edit /etc/fstab

# nano /etc/fstab

and add something like

/dev/sda /mnt/usbflash vfat users,noauto,gid=users 0 0

then save it, and make the directory for it to be mounted to

# mkdir /mnt/usbflash

then mount it

# mount /dev/sda


???? i am no linux guru, but that should work
 
Old 03-18-2006, 07:00 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Click terminal mode and type
Code:
fdisk -l
the "l" above is a small "L".

That should list all your usb devices. The first one should be called sda with partitions sda1, sda2...
If you have Sata disks which grab the sda and sdb notations then the USB device may be named sdc or sde.

If you can't find it in fdisk then Debian's kernel doesn't support it.

If you find the device in fdisk and want to mount it then you need to make a directory in /mnt and mount the partition on it. Before doing it you need to become a superuser to have the root privilege. You can type "su" at the terminal and then supply the root password to become the root user in Debian. Thereafter, say you want to mount sda1, the commands are just
Code:
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
Mounting a USB partition is no different to mounting any hard disk partition. Just make sure it is recognised by seeing it in "fdisk-l" command.
 
Old 03-18-2006, 07:06 PM   #4
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Rep: Reputation: 15
i thought lsusb was to show all usb devices? certainly works for me
 
Old 03-18-2006, 09:11 PM   #5
proeliator
LQ Newbie
 
Registered: Mar 2006
Posts: 15

Original Poster
Rep: Reputation: 0
This is what I got:

Disk /dev/sdb: 262 MB, 262144000 bytes
32 heads, 33 sectors/track, 484 cylinders
Units = cylinders of 1056 * 512 = 540672 bytes


When I tried to mount it as saikee mentioned it said that I should specify the file type:

"you must specify the filesystem type"

That is vfat for this particular stick. Which command do I use to do this? After playign around with it a while, I found out that sdb has a superblock on it. Something I'm not familliar with at all.

best
 
Old 03-18-2006, 11:22 PM   #6
proeliator
LQ Newbie
 
Registered: Mar 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Ok, I haven't found out how to get the usb drive working, but your tip did show me how to access my windows partition, making the usb device superfulous. Thanks saikee. It is still a little annoying that I can't get the usb to work. Oh well.
 
Old 03-19-2006, 03:46 AM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Code:
mount -t vfat /dev/sda1 /mnt/sda1
Modern Linux usually do not need to be told the file system type. the "-t vfat" or "-t msdos" can be added if needed.
 
Old 03-21-2006, 11:12 PM   #8
willyboy19
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
Still can't mount USB memory stick.

I tried the method as suggested by Saikee:

fdisk -l

mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1

And got the following message:

mount: /dev/sda1 is not a valid block device.

Please help!!
 
Old 03-22-2006, 02:31 AM   #9
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
In responding to the command of "fdisk -l" Linux lists all the partitions in each disk. These are the valid block devices "as found".

If sda1 is not a valid block device then your USB device may be named differently for being lower down in the disk order. Can you not see it from the list and make the adjustment yourself?
 
Old 03-23-2006, 11:27 AM   #10
willyboy19
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
I am a newbee in the Linux world. My current laptop has RH7.3 Kernel 2.4.18-3 installed. It is not advanced enough to support hotplug USB support.

1) Here is the output from fdisk -l command:
--------------------------------------------------------

Disk /dev/sda: 5 heads, 50 sectors, 1024 cylinders
Units = cylinders of 250 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sda1 ? 7679804 9857553 272218546+ 20 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(356, 97, 46) logical=(7679803, 4, 9)
Partition 1 has different physical/logical endings:
phys=(357, 116, 40) logical=(9857552, 1, 1)
Partition 1 does not end on cylinder boundary:
phys=(357, 116, 40) should be (357, 4, 50)
/dev/sda2 ? 5320737 7476642 269488144 6b Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(288, 110, 57) logical=(5320736, 4, 3)
Partition 2 has different physical/logical endings:
phys=(269, 101, 57) logical=(7476641, 4, 40)
Partition 2 does not end on cylinder boundary:
phys=(269, 101, 57) should be (269, 4, 50)
/dev/sda3 ? 2155958 7749410 699181456 53 OnTrack DM6 Aux3
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(345, 32, 19) logical=(2155957, 2, 42)
Partition 3 has different physical/logical endings:
phys=(324, 77, 19) logical=(7749409, 1, 3)
Partition 3 does not end on cylinder boundary:
phys=(324, 77, 19) should be (324, 4, 50)
/dev/sda4 * 5578511 5578596 10668+ 49 Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(87, 1, 0) logical=(5578510, 3, 14)
Partition 4 has different physical/logical endings:
phys=(335, 78, 2) logical=(5578595, 4, 50)
Partition 4 does not end on cylinder boundary:
phys=(335, 78, 2) should be (335, 4, 50)

Partition table entries are not in disk order

Disk /dev/hda: 255 heads, 63 sectors, 2432 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 1150 9237343+ 17 Hidden HPFS/NTFS
/dev/hda2 2426 2432 56227+ f Win95 Ext'd (LBA)
/dev/hda3 * 1217 2425 9711292+ 83 Linux
/dev/hda4 1151 1216 530145 82 Linux swap
/dev/hda5 2426 2432 56196 b Win95 FAT32

Partition table entries are not in disk order
---------------------------------------------------------

Please help!Thanks.
 
Old 03-23-2006, 11:35 AM   #11
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
willyboy19,

If RH7.3 doesn't support it why don't you use a newer distro, say Fedora Core 5 which is 7 versions after RH7.3.

Got the feeling the geometry errors of you sda could be due to playing around with Partition Magic.
 
  


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
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 1 07-15-2005 02:12 AM
Creating/restoring drive image on USB drive OneSeventeen Linux - Newbie 9 07-06-2005 05:08 AM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM
USB thumb drive works great, but I still can't get my USB mouse to work. blk96gt Slackware 8 06-22-2004 01:52 AM
XS Drive II external USB hard drive/card reader max74 Linux - Hardware 7 10-21-2003 10:41 PM

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

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