[ale] Mount extra partition under the /media subdirectory at boot
JD
jdp at algoloma.com
Fri Aug 3 12:32:40 EDT 2012
I'm not an RPM-distro user, but these steps should work for anyone.
Steps:
* determine the device name ... something like /dev/sde - I'll assume that going
forward; often that can be easily found for USB attached devices at the bottom
of a "dmesg" output.
* determine the partitions used on that new disk - fdisk -l /dev/sde
* you can directly edit the /etc/fstab with the partition devices /dev/sde1,
/dev/sde2, etc.... or you can look in the /dev/disk/by-uuid/ for which UUIDs map
to which partitions and use those in the fstab.
To learn more about the fstab fields (the options), use "man -s 5 fstab".
Basically, just follow the other examples, but be certain you get the correct
file system type specified.
After you get the /etc/fstab, using "sudo mount -a" will mount any unmounted
partitions.
I was under the impression that file systems mounted under /media were
temporary. Is that an Ubuntu-only thing? I use a /D as a mount directory for
non-internal drives myself - mostly for eSATA and USB connected partitions, but
NFS mounts go there too. Potato - tomato?
Of course, if your setup has RAID or other strangeness, some of the answers will
be different.
/dev/sde will probably **not** be your HDD device. That is dependent mainly on
the number of HDDs attached and the order that the kernel discovers each.
Good luck. Ask if something wasn't clear or if I've completely missed the point
of your question.
On 08/03/2012 11:40 AM, Tom Freeman wrote:
>
> With appologies to one and all. This is documented somewhere in my old
> notes which are somewhere in a big home cleanup initiated by adult
> children who think their old man needs more than all the help he can get.
> Well, the children are probably right. But the main machine for the house
> died dead, and I need it working with the old files.
>
> Of course, if there is a better way to do this...
>
> Essentially, in the past I have used a dirt standard install (Fedora in
> the past, Centos this time), with the children's accounts created on
> /home, which is it's own partition. Since I also host several GB of family
> pictures and such, for use by said children and myself, I created a large
> partition which mounted under the /media directory at boot time. As I
> recall, (personal notes are missing), I assign ownership to
> nobody:nobody, with permissive permissions to each of the files, and dump
> all those shared family files into a hierarchy /media/media.
>
> Almost certainly not the canoniacal (sp?) way to approach the problem, but
> it has worked for several years. Except that I'm needing to rebuild
> hardware at the same time getting ready for teaching a new class at
> school. (Time for fixing stuff is in short supply at the moment.)
>
> Memory claims there is some approach using a "label" command, and
> something else to get this partition to automount at boot. I'm just not
> finding the documentable details at the moment...
>
> If anybody has an appropriate clue bat to beat me with, and the energy to
> weild it - I shore would appreciate it. Meantime, back to coursework and
> searching...
>
> Thanks to one and all for putting up with me
More information about the Ale
mailing list