LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount USB Device (https://www.linuxquestions.org/questions/linux-newbie-8/mount-usb-device-757565/)

LXAdm 09-24-2009 02:06 PM

Mount USB Device
 
I am attempting to mount a usb flash drive with the following cmd: mount /dec/sda8 /mnt/usbdrive

I have a folder created under /mnt named usbdrive, when I enter lsusb to see the number associated with it it shows me Bus 004 Device 008 ID 0718:0069 Imation Corp. and this is the device I have connected. At first it returned that I needed to specify a file type. So I entered the following mount -t fat32 /dev/sda8 /mnt/usbdrive and got the result fat32 not supported by the kernel.

Does anyone know of anything I am doing wrong or if I need to do something different?

Any and all help would be appreciated.
Len

Larry Webb 09-24-2009 02:15 PM

Try entering 'fdisk -l' without the quotes and as root, see if that will list the drive and number.

I would not think your usb drive would be listed as sda, that should be your hd.

LXAdm 09-24-2009 02:19 PM

I did that and got this.


[root@vm08 root]# fdisk -l

Disk /dev/sda: 73.2 GB, 73295462400 bytes
255 heads, 63 sectors/track, 8910 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 650 5116702+ 83 Linux
/dev/sda3 651 8574 63649530 fb Unknown
/dev/sda4 8575 8910 2698920 f Win95 Ext'd (LBA)
/dev/sda5 8575 8643 554211 82 Linux swap
/dev/sda6 8644 8897 2040223+ 83 Linux
/dev/sda7 8898 8910 104391 fc Unknown

How can I do a list of the USB ports?

JamesChamberlain 09-24-2009 03:11 PM

Hm, the device should automount and be able to be viewed by issuing:

df -h

Of coarse this is assuming the usb device was auto mounted. If not indeed you can issue fdisk -l to see the filesystems and devices attached to your machine.

If this isn't happening you should be able to see what device has been assigned to when you plug it in, my using the dmesg command.

Example:

Insert your usb device and issue dmesg,

this should show you what device was input (/dev/sdb .. etc)

You can then use this to mount the device

mkdir /mnt/usb
mount /dev/sdb /mnt/usb

JamesChamberlain 09-24-2009 03:13 PM

Quote:

Originally Posted by LXAdm (Post 3695946)
How can I do a list of the USB ports?

Using:

lsusb

Note; you can also use ls for other types of devices..

lspci

for example, you can also pipe with with a grep command to search for specific connected pci devices.

slakmagik 09-24-2009 04:06 PM

Quote:

Originally Posted by LXAdm (Post 3695931)
I am attempting to mount a usb flash drive with the following cmd: mount /dec/sda8 /mnt/usbdrive

I'm assuming that's a post typo for 'dev' and not a command line typo.

Quote:

Originally Posted by LXAdm (Post 3695931)
So I entered the following mount -t fat32 /dev/sda8 /mnt/usbdrive and got the result fat32 not supported by the kernel

You need 'vfat' rather than 'fat32'.


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