[luau] thumb drive

tom_gordon at notes.k12.hi.us tom_gordon at notes.k12.hi.us
Mon Sep 29 16:05:00 PDT 2003


Add a slash and remove the period:

mount -t vfat /dev/sda /mnt/usb

Your script is broken (missing the mount command) and doesn't umount when 
the stick is removed (like, say, hotplug would).

;-)



Please respond to luau at videl.ics.hawaii.edu
Sent by:        luau-admin at videl.ics.hawaii.edu
To:     luau at videl.ics.hawaii.edu
cc: 
Subject:        Re: [luau] thumb drive

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).

_______________________________________________
LUAU mailing list
LUAU at videl.ics.hawaii.edu
http://videl.ics.hawaii.edu/mailman/listinfo/luau






More information about the LUAU mailing list