Fedora on a Dell

Fedora Core 2 on a Dell Inspiron 8600

USB key Summary.

Please Note:

This is no longer an issue in Fedora Core 3. A key now appears in the computer folder and on the desktop

Showing my laptop to one of my brothers who is not familiar with Linux one of the first things he wanted to do was put a usbkey in. Sure enough Fedora picked it up as a flash device. Double clicking the Computer folder on the Desktop showed a Flash device that could be opened to show the contents of the key. Not having used one before I thought that was pretty nifty. Having got one only to find it wasn't detected as had my brother's was disappointing to say the least. Looking in /var/log/messages I found the following. A SCSI drive?

Jun 28 21:27:33 localhost kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jun 28 21:27:33 localhost kernel: Vendor: hp Model: Drive Key Rev: 3.04
Jun 28 21:27:33 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Jun 28 21:27:33 localhost kernel: SCSI device sda: 256320 512-byte hdwr sectors (131 MB)
Jun 28 21:27:33 localhost kernel: sda: assuming Write Enabled
Jun 28 21:27:33 localhost kernel: sda: assuming drive cache: write through
Jun 28 21:27:33 localhost kernel: sda: sda1
Jun 28 21:27:33 localhost kernel: Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0

I thought it would then be a simple matter to set up a mount point, a symbolic link to sda1 and edit fstab. I eventually found where I was going wrong on FedoraNews.

USB Setup.

Important:

Don't assume your device is sda1. Systems can differ so run the following after putting in the key.

# tail -10 /var/log/messages

Firstly I set up a symbolic link for sda1, then make a mount point in /mnt and finally change the permissions on the directory with the following.

# ln -s /dev/sda1 /dev/usbkey

# mkdir /mnt/usb

# chmod 777 /mnt/usb.

Finally you need to edit fstab. This is where I had a problem. I hadn't done that sort of thing for awhile and I was missing something. Searching for a fix I found this tutorial which has all the details for setting up a usbkey. The additions to fstab are highlighted at the top of the tutorial. I presume it was the umask that was giving me the problems but I haven't double checked. Add the following to fstab.

# /dev/usbkey /mnt/usb vfat user,noauto,owner,umask=0 0 0

At the point you should be able to mount the usbkey through the computer folder on your desktop. See a screenshot here. Of course you can always mount the key at the command line with the following.

# mount /dev/sda1 /mnt/usb

Resources: