Talk:USB Mass Storage

From Gentoo Linux Wiki

Jump to: navigation, search

the instructions for udev require that udev is installed.

'emerge udev' - takes about 10 seconds.


the symlink via udev rules aren't very practical for individual usb drives if you have more than one. Each usb drive, even if they are both made by the same manufacturer - will have different SYSFS{serial} values. In other words - you have to make a unique rule for each unique device. yuk.


Another point that isn't obvious (as per the number of ??? about it in the forums)

Adding this line to your /etc/fstab file will allow others (non-root accounts) to access your USB Storage Device:

/dev/sda1 /mnt/usbstick vfat noauto,user,umask=000 0 0


I don't know if this is just a 2.6 issue, but I had to set SCSI device support and SCSI disk support to load as modules for the alternate config. I think the alternate config (with modules) needs to be changed, but it might work with a 2.4 kernel; I haven't had a chance to try it.

Contents

[edit] Kernel 2.6

Some mention shnould be made of whether or not that code will work with the 2.6 kernel.

It should but the code boxes don't reflect that. I can't access them right now, but anyone who wanted to provide the 2.6 alternatives should do so -- MighMoS 00:54, 4 Apr 2005 (GMT)

[edit] Package for sg_scan / sg_map

Getting:

!!! Digest verification Failed: !!! /usr/portage/distfiles/rescan-scsi-bus.sh !!! Reason: Filesize does not match recorded size

I can't find either -- what's a guy gotta emerge to get them? --BubbaPuryear 16:13, 25 Apr 2005 (GMT)

> emerge sg3_utils

[edit] Ext3 usb key

lol i never thoat about this it's because i have linux-only and windows-only computers so it was used to read the usb key and not some linux partitions ps:it would be fun if windows could run on an ext3 drive(i think it's possible with a fat/ntfs partition and an ext3 with $PATHS on the ext3 one)


[edit] Advice for usb keys with no sysfs serial numbers

Quite a few of the usb sticks I've tried don't have any serial numbers (or none that show up following the specified udevinfo command). The workaround I used was to replace "SYSFS{serial}" with "SYSFS{manufacturer}" since I wasn't using any other usb devices from my manufacturer (lexar media).

[edit] About Windows based viruses writing to ext3

If the Windows OS is infected, the virus basically have root access, the data can be hosed if it chose to do a low level write to the disk. So really giving ext3 to Windows will only give viruses a way to write 'meaningful' data to the disk, or erase specific files.

Personal tools