Two key difficulties:
1. The drive mounts, you write to it, umount it, re-mount it again, and
:eek: the stuff you just wrote is no longer there.
2. Is there a way to configure such that non-root can mount/umount it ?
Thanks in advance.
banzaikai
09-28-2003, 05:19 AM
Howdy.
Just got my Lexar JumpDrive Pro 2.0 going (had to set it as /dev/sdb1, since I've got a bunch of sdas in there already).
1) Hmmm. Seems like the cache isn't clearing things right. Try doing a listing after remounting (ls -l /mnt/JumpDrive) to see if the OS re-caches the files. (A similar problem exists in Windows - the icons occasionally get messed up because the cache gets out of whack.) If the ls doesn't do it, try df (disk freespace), and if that won't work, try updatedb as a last resort. Updatedb, by the way, takes a few minutes to do it's thing...
2) Sure. In your /etc/fstab, make sure the line that mounts the drive has something like:
(assuming that the usb drive you have is named "JumpDrive"...)
/dev/sda1 /mnt/JumpDrive auto noauto,user,exec 0 0
or
/dev/sda1 /mnt/JumpDrive auto noauto,owner,exec 0 0
or, for Redhat users using kudzu on boot -
/dev/sda1 /mnt/JumpDrive auto noauto,user,kudzu 0 0
or
/dev/sda1 /mnt/JumpDrive auto noauto,owner,kudzu 0 0
You also want to have the usb-storage module loaded (/sbin/lsmod to find out if she's loaded), but since you got it to mount in the first place, I'll assume you've got that, too (modprobe usb-storage, if you don't). Then, it's a simple mount /dev/sda1 /mnt/JumpDrive after that.
Hope this helps...
banzai