LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   USB-Stick? Please help (https://www.linuxquestions.org/questions/debian-26/usb-stick-please-help-290402/)

GSX 02-15-2005 02:14 AM

USB-Stick? Please help
 
Hi,

I want to use a usb-memory-stick with Debian sarge kernel 2.6.6-1.
Know anybody where I can find a HOWTO or something else???

Because I didnīt find any documentation..



Greetz

overlord73 02-15-2005 02:54 AM

plug it in. if itīs not automounted, look which device it is (dmesg) and mount it as normal.
or have u a different problem?

GSX 02-15-2005 03:22 AM

I donīt know how to use it.

Do you mean I have to find out the device for the usb-ports
and then to implement the device to /etc/fstab ???

How I can find out out which device it is?

oneandoneis2 02-15-2005 03:39 AM

When you plug it in, it'll probably be detected as /dev/sda1 - check with dmesg.

Then you want to mount it as a filesystem. USB sticks are FAT-formatted when you buy them, so create a mount point (I use /mnt/usb) and mount /dev/sda1 (or whatever) to that mount point.

overlord73 02-15-2005 03:47 AM

after plugging in, dmesg should show a new device attached e.g.
Quote:

usb 1-1: new full speed USB device using uhci_hcd and address 4
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
Vendor: LEXAR Model: DIGITAL FILM Rev: /W1.
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 125952 512-byte hdwr sectors (64 MB)
sda: Write Protect is off
sda: Mode Sense: 0d 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 125952 512-byte hdwr sectors (64 MB)
sda: Write Protect is off
sda: Mode Sense: 0d 00 00 00
sda: assuming drive cache: write through
sda: sda1 sda2
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
usb-storage: device scan complete
now u can mount the stick or make an entry in /etc/fstab.

bornhj 02-15-2005 04:08 AM

Then, its:

mkdir /mnt/usb (if it doesn't exist)
mount -t vfat /dev/sda1 /mnt/usb

(I think. Works in Gentoo LiveCD)

GSX 02-15-2005 04:09 AM

Ok,

thanks a lot.. I will try and then give you a feedback...

GSX 02-16-2005 02:12 AM

Hi,

many thanks...it works


device - /dev/sda1


Greetz


All times are GMT -5. The time now is 03:49 PM.