View previous topic :: View next topic |
Author |
Message |
fraktalek n00b
Joined: 28 Mar 2004 Posts: 18
|
Posted: Sun Nov 13, 2005 9:13 pm Post subject: mounting USB Flash disk on PC with SATA hdd |
|
|
I used to mount my Flash disk on /dev/sda and my usb mp3 player on /dev/sda1. That was when I had IDE (PATA) hard drive.
I moved my system to a new SATA harddrive which mounts on /dev/sda, which is obviously in conflict with the USB flash disks.
Do you have an idea how I should mount the USB Flash disk now? I would really appreciate some hint...
dmesg | tail after plugging in the Flash key:
Code: |
usb 1-1.1: default language 0x0409
usb 1-1.1: new device strings: Mfr=1, Product=4, SerialNumber=0
usb 1-1.1: Product: USB Mass Storage Device
usb 1-1.1: Manufacturer: USB 2.0 Flash Disk
usb 1-1.1: hotplug
usb 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
usb 1-1.1:1.0: hotplug
midi 1-1.1:1.0: usb_probe_interface
midi 1-1.1:1.0: usb_probe_interface - got id
midi: probe of 1-1.1:1.0 failed with error -5
|
dmesg | tail after plugging in the usb flash mp3 mplayer:
Code: |
usb 2-1: Product: MEGA Player 5511
usb 2-1: Manufacturer: MSI
usb 2-1: SerialNumber: 23DE7394D6190E07
usb 2-1: hotplug
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: hotplug
midi 2-1:1.0: usb_probe_interface
midi 2-1:1.0: usb_probe_interface - got id
midi: probe of 2-1:1.0 failed with error -5
hub 2-0:1.0: state 5 ports 2 chg 0000 evt 0002
|
|
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Sun Nov 13, 2005 9:44 pm Post subject: |
|
|
use sdb just like you would with a normal hard drive with hda and hdb _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
fraktalek n00b
Joined: 28 Mar 2004 Posts: 18
|
Posted: Sun Nov 13, 2005 9:52 pm Post subject: |
|
|
Nice tip, it has one defect though.. There's no /dev/sdb in my system, only /dev/sdaX
Notice the last line of the dmesg output: midi: probe of 1-1.1:1.0 failed with error -5
something failed....
It seems that no device in /dev was created for the flash disk :-/ |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Sun Nov 13, 2005 10:05 pm Post subject: |
|
|
you can probably just create it in /dev give it a dir to mount to in /mnt add the line to fstab and then just mount it. _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
fraktalek n00b
Joined: 28 Mar 2004 Posts: 18
|
Posted: Sun Nov 13, 2005 10:07 pm Post subject: |
|
|
I've got the mp3 player to work after reverting to the older SCSI-style driver as suggested in Gentoo kernel 2.6 migration guide:
Code: |
Device Drivers --->
Block devices --->
< > Low Performance USB Block driver
|
It then appears on /dev/uba1
However the problem with the normal Flash disk still remains :-/ |
|
Back to top |
|
|
fraktalek n00b
Joined: 28 Mar 2004 Posts: 18
|
Posted: Sun Nov 13, 2005 10:11 pm Post subject: |
|
|
cokehabit wrote: | you can probably just create it in /dev give it a dir to mount to in /mnt add the line to fstab and then just mount it. |
Ok, I'll try that too, but perhaps tomorrow... it's getting late here. Thanks |
|
Back to top |
|
|
fraktalek n00b
Joined: 28 Mar 2004 Posts: 18
|
Posted: Sun Nov 13, 2005 11:01 pm Post subject: |
|
|
cokehabit wrote: | you can probably just create it in /dev give it a dir to mount to in /mnt add the line to fstab and then just mount it. |
btw, how do I create the /dev/sdb? I have udev |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Sun Nov 13, 2005 11:19 pm Post subject: |
|
|
Well the nodes in /dev are special files which are either character special files, which support byte-level I/O, or block special files, which support I/O in larger units. Disk partitions are represented by both character special and block special files. So it seems to me that the best idea is to copy one like sda and rename it sdb and give it a mount point in /mnt _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
fraktalek n00b
Joined: 28 Mar 2004 Posts: 18
|
Posted: Mon Nov 14, 2005 7:32 pm Post subject: |
|
|
cokehabit wrote: | Well the nodes in /dev are special files which are either character special files, which support byte-level I/O, or block special files, which support I/O in larger units. Disk partitions are represented by both character special and block special files. So it seems to me that the best idea is to copy one like sda and rename it sdb and give it a mount point in /mnt |
That did not help either. Btw, copying the file is not a good idea since it starts to copy the contents of the device.
The special files can be created using mknod program.
So for example you go:
Code: |
/ $ cd /dev
/dev $ mknod sdb b 8 16
/dev $ mknod sdb1 b 8 17
/dev $ mknod sdc b 8 32
/dev $ mknod sdc1 b 8 33
|
to create sdb, sdb1, sdc, sdc1. The b stands for block device, the numbers are minor and major numbers. 8 is for SCSI device and the second number is for the actual device. You can find the numbers in /usr/src/linux/Documentation/devices.txt
I think the problem is that neither of the drivers is able to assign (and create) a special device for my USB Flash key... So, maybe next kernel release will help...I hope...
(Now I use 2.6.13-r3) |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Mon Nov 14, 2005 7:44 pm Post subject: |
|
|
i have a better idea. Try vanilla which is 2.6.14.2 and see if that sorts it out. If it does post a bug report with gentoo sources. _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
|