Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting USB Drive - sda and sdb already taken [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Tue Oct 21, 2008 11:01 am    Post subject: Mounting USB Drive - sda and sdb already taken [SOLVED] Reply with quote

Hi All

I want to mount a USB stick. I have a 500G drive on sda and another 350G drive on sdb. How do I go about mounting a USB stick when these two are already taken.

lsusb shows the following:

lsusb
Bus 001 Device 002: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 Flash drive controller
Bus 001 Device 001: ID 0000:0000
Bus 005 Device 002: ID 046d:c03f Logitech, Inc. UltraX Optical Mouse
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 002: ID 06a3:0006 Saitek PLC Cyborg Gold Joystick
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000

and fdisk says correctly I have the two disks as mention.

I have also connected the USB stick and rebooted but sdc does not show up.

uname says:

Linux seneca 2.6.24-gentoo-r8 #3 SMP Tue Aug 5 17:51:29 EST 2008 i686 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux


Thanks!
_________________
answer an unanswered post:
https://forums.gentoo.org/search.php?search_id=unanswered


Last edited by shazam75 on Fri Oct 24, 2008 7:15 am; edited 1 time in total
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Oct 21, 2008 2:39 pm    Post subject: Reply with quote

Look through the output of dmesg, and see what the kernel says about your USB stick when you plug it in.
Code:
Oct 21 10:37:38 gecko usb 1-10: new high speed USB device using ehci_hcd and address 2
Oct 21 10:37:38 gecko usb 1-10: configuration #1 chosen from 1 choice
Oct 21 10:37:38 gecko usb 1-10: New USB device found, idVendor=0781, idProduct=5151
Oct 21 10:37:38 gecko usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 21 10:37:38 gecko usb 1-10: Product: Cruzer Micro
Oct 21 10:37:38 gecko usb 1-10: Manufacturer: SanDisk Corporation
Oct 21 10:37:38 gecko usb 1-10: SerialNumber: SNDK3289852CA9409607
Oct 21 10:37:38 gecko Initializing USB Mass Storage driver...
Oct 21 10:37:38 gecko scsi10 : SCSI emulation for USB Mass Storage devices
Oct 21 10:37:38 gecko usb-storage: device found at 2
Oct 21 10:37:38 gecko usb-storage: waiting for device to settle before scanning
Oct 21 10:37:38 gecko usbcore: registered new interface driver usb-storage
Oct 21 10:37:38 gecko USB Mass Storage support registered.
Oct 21 10:37:43 gecko scsi 10:0:0:0: Direct-Access     SanDisk  Cruzer Micro     0.2  PQ: 0 ANSI: 2
Oct 21 10:37:43 gecko sd 10:0:0:0: [sde] 1000944 512-byte hardware sectors (512 MB)
Oct 21 10:37:43 gecko sd 10:0:0:0: [sde] Write Protect is off
Oct 21 10:37:43 gecko sd 10:0:0:0: [sde] Mode Sense: 03 00 00 00
Oct 21 10:37:43 gecko sd 10:0:0:0: [sde] Assuming drive cache: write through
Oct 21 10:37:43 gecko sd 10:0:0:0: [sde] 1000944 512-byte hardware sectors (512 MB)
Oct 21 10:37:43 gecko sd 10:0:0:0: [sde] Write Protect is off
Oct 21 10:37:43 gecko sd 10:0:0:0: [sde] Mode Sense: 03 00 00 00
Oct 21 10:37:43 gecko sd 10:0:0:0: [sde] Assuming drive cache: write through
Oct 21 10:37:43 gecko sde:
Oct 21 10:37:43 gecko sd 10:0:0:0: [sde] Attached SCSI removable disk
Oct 21 10:37:43 gecko sd 10:0:0:0: Attached scsi generic sg6 type 0
Oct 21 10:37:43 gecko usb-storage: device scan complete
Back to top
View user's profile Send private message
scan2006
n00b
n00b


Joined: 20 Jan 2008
Posts: 48

PostPosted: Tue Oct 21, 2008 2:49 pm    Post subject: Reply with quote

You can also mount it by ID as well :
Code:
mount /dev/disk/by-id/"then hit tab to see your choices and use the one with usb-something-part1 for your first partition" /path/to/mountinglocation
Back to top
View user's profile Send private message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Wed Oct 22, 2008 7:26 am    Post subject: Reply with quote

Well I tried that /dev/disk/.... and I dont have usb...

ll /dev/disk/by-id/
ata-ST3320620A_5QF56XBJ ata-ST3320620A_5QF56XBJ-part3 scsi-SATA_ST3320620A_5QF56XBJ-part1 scsi-SATA_ST3500320AS_9QM3T2BT
ata-ST3320620A_5QF56XBJ-part1 ata-ST3500320AS_9QM3T2BT scsi-SATA_ST3320620A_5QF56XBJ-part2
ata-ST3320620A_5QF56XBJ-part2 scsi-SATA_ST3320620A_5QF56XBJ scsi-SATA_ST3320620A_5QF56XBJ-part3


:roll:
_________________
answer an unanswered post:
https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Wed Oct 22, 2008 9:22 am    Post subject: Reply with quote

Your problem is not related to running out of sd*, the stick should show up as sdc*. What is the output in dmesg if you plug in the stick?
Back to top
View user's profile Send private message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Wed Oct 22, 2008 9:45 am    Post subject: Reply with quote

This is the output when I booted this evening:

Code:
dmesg | grep -i usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
USB Universal Host Controller Interface driver v3.0
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
usb 1-4: new high speed USB device using ehci_hcd and address 2
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
usb 1-4: configuration #1 chosen from 1 choice
drivers/usb/host/r8a66597-hcd.c: driver r8a66597_hcd, 29 May 2007
usb 4-1: new low speed USB device using uhci_hcd and address 2
usb 4-1: configuration #1 chosen from 1 choice
usb 5-1: new low speed USB device using uhci_hcd and address 2
usb 5-1: configuration #1 chosen from 1 choice
input: SAITEK CYBORG 3D USB as /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/input/input3
input: USB HID v1.00 Joystick [SAITEK CYBORG 3D USB] on usb-0000:00:1d.2-1
input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/input/input4
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1d.3-1
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver

_________________
answer an unanswered post:
https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Wed Oct 22, 2008 11:06 am    Post subject: Reply with quote

OK, presuming that the stick was plugged in during boot, usb-storage seems not to be compiled in. Can you post the output of
Code:
zgrep -i usb /proc/config
Back to top
View user's profile Send private message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Wed Oct 22, 2008 11:14 am    Post subject: Reply with quote

sure - here it is:

Quote:
$zgrep -i usb /proc/config
# USB Network Adapters
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# USB devices
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
# CONFIG_SND_USB_CAIAQ is not set
# USB Input Devices
CONFIG_USB_HID=y
# CONFIG_USB_HIDINPUT_POWERBOOK is not set
# CONFIG_USB_HIDDEV is not set
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
# Miscellaneous USB options
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_DEVICE_CLASS is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_PERSIST is not set
# CONFIG_USB_OTG is not set
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_SPLIT_ISO=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_ISP116X_HCD=y
CONFIG_USB_OHCI_HCD=y
# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_SL811_HCD=y
CONFIG_USB_R8A66597_HCD=y
# USB Device Class drivers
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
# may also be needed; see USB_STORAGE Help for more information
# CONFIG_USB_STORAGE is not set
# CONFIG_USB_LIBUSUAL is not set
# USB Imaging devices
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_MON is not set
# USB port drivers
# USB Serial Converter support
# CONFIG_USB_SERIAL is not set
# USB Miscellaneous drivers
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_BERRY_CHARGE is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_PHIDGET is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# USB DSL modem support
# USB Gadget Support
# CONFIG_USB_GADGET is not set

_________________
answer an unanswered post:
https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
DirtyHairy
l33t
l33t


Joined: 03 Jul 2006
Posts: 608
Location: Würzburg, Deutschland

PostPosted: Wed Oct 22, 2008 12:58 pm    Post subject: Reply with quote

Your problem is
Code:
# CONFIG_USB_STORAGE is not set

Please enable usb storage in your kernel configuration and retry (also make sure you enable "probe all LUNs..." in the SCSI settings, otherwise multicard readers will show only one slot). If you're configuration is OK, the relevant parts should look somewhat like this (on my machine):
Code:
pestix@gondolin ~$ zgrep -i usb_storage /proc/config.gz
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
# may also be needed; see USB_STORAGE Help for more information
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_STORAGE_ALAUDA=y
CONFIG_USB_STORAGE_ONETOUCH=y
CONFIG_USB_STORAGE_KARMA=y
CONFIG_USB_STORAGE_CYPRESS_ATACB=y
Back to top
View user's profile Send private message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Thu Oct 23, 2008 8:12 am    Post subject: Reply with quote

ok thanks! I will try this at a later time.
_________________
answer an unanswered post:
https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Thu Oct 23, 2008 9:45 pm    Post subject: Reply with quote

Hi

I have compiled the kernel with usb drive support and now I can see sdc !

However, what is the command to mount?

I tried:

mount -t vfat /dev/sdc1 /mnt/mp3/
mount: unknown filesystem type 'vfat'

do I need to compile fat in the kernel as well? or do these little drives have someother file system ?

thanks
Shelton.
_________________
answer an unanswered post:
https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Oct 23, 2008 10:02 pm    Post subject: Reply with quote

shazam75 wrote:
do I need to compile fat in the kernel as well?

Yes.

If you care about Windows compatibility, then the USB stick should be formatted with fat16 or fat32.
In theory, any filesystem would work on a USB stick (I have used ext2 and udf in the past).
Back to top
View user's profile Send private message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Fri Oct 24, 2008 7:15 am    Post subject: Reply with quote

Ok thanks all! the problem has been resolved. I didnt have USB and FAT compiled in the kernel.

Cheers!
_________________
answer an unanswered post:
https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum