<p>blkid is good for showing device ids for all partitions. I use it on debian.</p>
<p>Wolf</p>
<p><a href="http://evergreen-community-01.lyrasistechnology.org">http://evergreen-community-01.lyrasistechnology.org</a><br>
<a href="http://sourcefreedom.com">http://sourcefreedom.com</a><br>
Apache developer:<br>
<a href="mailto:wolfhalton@apache.org">wolfhalton@apache.org</a></p>
<div class="gmail_quote">On Aug 3, 2012 5:15 PM, "Michael H. Warfield" <<a href="mailto:mhw@wittsend.com">mhw@wittsend.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, 2012-08-03 at 16:43 -0400, Michael H. Warfield wrote:<br>
> On Fri, 2012-08-03 at 11:40 -0400, Tom Freeman wrote:<br>
> > With appologies to one and all. This is documented somewhere in my old<br>
> > notes which are somewhere in a big home cleanup initiated by adult<br>
> > children who think their old man needs more than all the help he can get.<br>
> > Well, the children are probably right. But the main machine for the house<br>
> > died dead, and I need it working with the old files.<br>
><br>
> > Of course, if there is a better way to do this...<br>
><br>
> > Essentially, in the past I have used a dirt standard install (Fedora in<br>
> > the past, Centos this time), with the children's accounts created on<br>
> > /home, which is it's own partition. Since I also host several GB of family<br>
> > pictures and such, for use by said children and myself, I created a large<br>
> > partition which mounted under the /media directory at boot time. As I<br>
> > recall, (personal notes are missing), I assign ownership to<br>
> > nobody:nobody, with permissive permissions to each of the files, and dump<br>
> > all those shared family files into a hierarchy /media/media.<br>
><br>
> If you are going to mount things at boot time I would NOT use /media!<br>
> Classically, that's what /mnt is for. Reserve /media for dynamic mounts<br>
> through udev and that whole subsystem through to the UI. If you have<br>
> system related stuff (opt, export, srv) then mount then in their correct<br>
> root directories. If you've got something non-transient, like a<br>
> permanently connected USB drive, I would definitely make it in /mnt.<br>
> Then you can add entries to your /etc/fstab file like these:<br>
<br>
> LABEL=FUJI /mnt/Fuji vfat defaults,noauto,user 0 0<br>
> LABEL=OLYMPUS /mnt/Olympus vfat defaults,noauto,user 0 0<br>
> LABEL=EVO /mnt/EVO vfat defaults,noauto,user 0 0<br>
> LABEL=Kindle /mnt/Kindle vfat defaults,noauto,user 0 0<br>
> LABEL=Terabyte /mnt/Terabyte auto defaults,noauto,user 0 0<br>
<br>
> UUID=16868893-6b15-49a7-9282-686d0d085aee /mnt/Archive1 auto defaults,noauto,user 0 0<br>
> UUID=9acdeea0-5fb6-4b08-a0b8-0948e833a07b /mnt/Archive2 auto defaults,noauto,user 0 0<br>
> UUID=f115baca-83c9-4b7a-9534-03c9cc4416f4 /mnt/Archive3 auto defaults,noauto,user 0 0<br>
> UUID=8118085e-4d57-4c5a-9473-b08d8e61bf12 /mnt/Archive4 auto defaults,noauto,user 0 0<br>
<br>
> That's a mix of lables and UUIDs but came from an actual system that<br>
> included my various cameras (I've labeled the VFAT file systems) and<br>
> whatnot. Those "Archive" drives are actually encrypted drives and the<br>
> UUIDs are pointing at the UUID of the LUKS container.<br>
<br>
> > Almost certainly not the canoniacal (sp?) way to approach the problem, but<br>
> > it has worked for several years. Except that I'm needing to rebuild<br>
> > hardware at the same time getting ready for teaching a new class at<br>
> > school. (Time for fixing stuff is in short supply at the moment.)<br>
<br>
> > Memory claims there is some approach using a "label" command, and<br>
> > something else to get this partition to automount at boot. I'm just not<br>
> > finding the documentable details at the moment...<br>
<br>
> For ext* fs - e2label does the trick or use the -L option at the time<br>
> you build the fs with mkfs.ext?. For VFAT, you want mlabel or -n to<br>
> mkfs.vfat.<br>
<br>
> Add your fixed entries to /etc/fstab with "defaults,noauto,user" and<br>
> anyone can mount and unmount them as they wish. If you WANT them<br>
> mounted at boot time (which I don't really recommend for external<br>
> drives) then drop the "noauto" and add some fsck cycle numbers for<br>
> checking (assuming something != FAT).<br>
<br>
> If you REALLY want to do it right, though... Use autofs. Only mount it<br>
> when you need it and nobody has to "mount" the bloody thing. It's not<br>
> that hard to create an automount map file to map a path to a location.<br>
> You can then boot the system up without it and it will be there (if it's<br>
> there) when you want it (or give you an error if it's not there). Most<br>
> of my NFS stuff goes through /net, which is predefined, but you can<br>
> create maps for just about anything - CIFS, SSHFS, hard devices, etc,<br>
> etc... I think under autofs.misc you can find examples for floppies<br>
> (Gods that be! Is there anyone still using those damn things???) and<br>
> CD-ROMS.<br>
<br>
> Just install autofs and look at the /etc/auto.* files.<br>
<br>
And of COURSE - the moment I replied to this I just HAD to try it out<br>
and make it work under autofs for myself...<br>
<br>
So I took the "Terabyte" entry above (for my 2TB USB drive) and<br>
converted it to an autofs entry under the "misc" category. So this is<br>
my /etc/autofs.misc file on that machine now:<br>
<br>
--<br>
#<br>
# This is an automounter map and it has the following format<br>
# key [ -mount-options-separated-by-comma ] location<br>
# Details may be found in the autofs(5) manpage<br>
<br>
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom<br>
<br>
# the following entries are samples to pique your imagination<br>
#linux -ro,soft,intr ftp.example.org:/pub/linux<br>
#boot -fstype=ext2 :/dev/hda1<br>
#floppy -fstype=auto :/dev/fd0<br>
#floppy -fstype=ext2 :/dev/fd0<br>
#e2floppy -fstype=ext2 :/dev/fd0<br>
#jaz -fstype=ext2 :/dev/sdc1<br>
#removable -fstype=ext2 :/dev/hdd<br>
<br>
Terabyte -fstype=auto :LABEL=Terabyte<br>
<br>
--<br>
<br>
Now, if I do an "ls /misc/Terabyte" it mounts the drive for me<br>
automatically. After a period of idle time, it unmounts the drive (good<br>
for USB drives which may be heat sensitive). Create symlinks from where<br>
you want to where it is and you should be good to go.<br>
<br>
You can create your own autofs map for other parent mount points if you<br>
wish, you just have to add it to autofs.master and restart autofs if you<br>
do. It's a much better option (IMNSHO) than trying to mount external<br>
drives at boot time and paying the price later.<br>
<br>
> > If anybody has an appropriate clue bat to beat me with, and the energy to<br>
> > weild it - I shore would appreciate it. Meantime, back to coursework and<br>
> > searching...<br>
<br>
> > Thanks to one and all for putting up with me<br>
><br>
> Regards,<br>
> Mike<br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br>
--<br>
Michael H. Warfield (AI4NB) | <a href="tel:%28770%29%20985-6132" value="+17709856132">(770) 985-6132</a> | mhw@WittsEnd.com<br>
/\/\|=mhw=|\/\/ | <a href="tel:%28678%29%20463-0932" value="+16784630932">(678) 463-0932</a> | <a href="http://www.wittsend.com/mhw/" target="_blank">http://www.wittsend.com/mhw/</a><br>
NIC whois: MHW9 | An optimist believes we live in the best of all<br>
PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!<br>
<br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div>