[luau] thumb drive
Hawaii Linux Institute
wp at HawaiiLinux.us
Mon Sep 29 11:37:01 PDT 2003
Alvin Murphy wrote:
(quoting the following comment:)
>> So the following command will mount it to the above location: mount
>> -t vfat /dev/sda mnt/usb.
>
For the sake of fool-proof-ness, the above command is, of course, not
always correct (unless you happen to be in the root directory). The
correct command should be:
mount -t vfat /dev/sda mnt/usb.
You can make this job a lot easier by writing a two-line script file as
follows:
#!/bin/sh
-t vfat /dev/sda mnt/usb
exit your edittor by saving it as, say, usb_stick.
Then, make it executable using the "chmod" command (or you can do it
GUI-fully with Konqueror):
chmod +x usb_stick
Next time you want to use your usb thumb drive, simply "su" to root,
then type:
sh usb_stick
If you use your thumb drive a lot, you can include it in your fstab
file, then create a desktop icon by right-clicking your mouse anywhere
on the desktop. Select "Create New", "Hard Disc". Then left-click on
the "Device" tab, and type in "/dev/sda". This is beyond the scope of
this discussion, but you get the idea (i.e., Linux can be customized to
become very user-friendly, no command-line needed, for end-users).
More information about the LUAU
mailing list