LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   cannot mount usb drive, (https://www.linuxquestions.org/questions/linux-hardware-18/cannot-mount-usb-drive-478804/)

asif2k 08-30-2006 11:31 AM

cannot mount usb drive,
 
I created a usb directory in /mnt , then I ran the command
Quote:

mount /dev/sda1 /mnt/usb
I get a error message saying "mount: /dev/sda1 is not a valid block device"

My usb is LexarMedia (512MB).

I am running Fedora Core. The /dev/sda1 does not exist. I ran the command
Quote:

dmesg|grep -i usb

result:
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver hiddev
usbcore: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
Is there something I am doing wrong? Can someone help me with this. Your help is appreciated.

thanks in advance :)

rednuht 08-30-2006 02:13 PM

run dmesg to find the location of the drive.

DotHQ 08-30-2006 02:22 PM

unplug your usb device.
Wait a few seconds then plug it back in.
Then type: tail /var/log/messages

This gives me the address of the usb device.

Then do your mount command plugging in the right sd** info.

jahvascriptmaniac 08-31-2006 07:00 AM

I had a similar problem with a usb key that wouldn't give me a /dev/sda1 entry, only a /dev/sda one. After one yer of pesting against my Mandrake (it worked with aurox live) I tried mount /dev/sda /mnt/usb instead of complaining about the absence of /dev/sda1. And it worked, cause the data was directly written to the key, without any partitionning.

Also, it may be that linux got a wrong /dev/sda1 position. try this :
dd if=/dev/sda of=/home/you/usbdata.img
and as root :
i=0; while ! mount -o loop,offset="$i" /home/you/usbdata.img /mnt/usb; do echo "$i" i=$[$i+1]; done
This will try getting the begining of your partition.
When you get bored, press control+c.


All times are GMT -5. The time now is 08:33 PM.