LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How can I use a USB Drive with linux (https://www.linuxquestions.org/questions/linux-hardware-18/how-can-i-use-a-usb-drive-with-linux-124341/)

binkybuckle 12-09-2003 04:09 PM

How can I use a USB Drive with linux
 
I have a USB drive and wish to be able to connect it into linux.

I tried to 'mount /dev/ttyUSB0' but it said their was no such block device.

Can anyone help?
Has anyone done this before?

codedv 12-09-2003 04:22 PM

I just plug it in and at the shell prompt:
$ mount -t ext3 /dev/sda1 /mnt/usbdrv

I have done that with camera's, compact flash and USB pens.

binkybuckle 12-09-2003 04:32 PM

I tried the command you suggested, it came with the same error. I thouht sda devices were only scsi devices.

codedv 12-09-2003 05:01 PM

On my Redhat system USB devices com under sda. I'm not sure what they would be on Debian: try /dev/usb0 or /dev/input

loonix 12-09-2003 07:14 PM

I think you will find that you need to make sure you have scsi and mass storage device loaded into kernel. If you are using one of the newer distro's then hotplug should do the rest.
I am using slack 9.1 and I have no trouble. I put the usb stick in and it is ready for mounting: via root@pc01:~# mount -t ext3 /dev/sda1 /mnt/crap

jared0422 12-09-2003 07:24 PM

1. Install usb core modules first:

insmod usbcore
insmod usb-uhci (If your mainboard uses intel 430TX, 440FX, 440LX, 440BX, i810, i820 or VIA PCI chipsets (like VIA VP2, VP3, MVP3, Apollo Pro, Apollo Pro II or Apollo Pro133)).
or
insmod usb-ohci (If your mainboard uses non-Intel architectures: SiS (aktual 610, 610 and so on) or ALi (ALi IV, ALi V, Aladdin Pro..))


2. Install your device driver:
Use USB keyboard and USB mouse:
insmod input
insmod hid
insmod mousedev
insmod keybdev
Now you can plug-in your USB keyboard and USB mouse

Use CardReader:
insmod scsi_mod
insmod sd_mod
insmod usb-storage
Then mount it:
For example: mount -t ext2 /dev/sda1 /mnt

These commands have been tested by Redhat 9.0 environment

loonix 12-09-2003 07:31 PM

You could try this article out and see if it helps.
http://www.newsforge.com/software/03.../2214256.shtml


All times are GMT -5. The time now is 01:16 PM.