How do I Automount an Hard dRive in my Computer in Ubuntu?

Oliver Grawert ogra at ubuntu.com
Sun Nov 29 18:39:07 UTC 2015


hi,
Am Sonntag, den 29.11.2015, 10:19 -0800 schrieb Kevin O'Gorman:
> On Sun, Nov 29, 2015 at 9:02 AM, Oliver Grawert <ogra at ubuntu.com>
> wrote:
> > hi,
> > Am Sonntag, den 29.11.2015, 17:25 +0100 schrieb Ralf Mardorf:
> > 
> ... [snippage] ...
>  
> > > You didn't say a word, about my objection regarding mtab.
> > Somebody
> > > mentioned that copying a mtab entry of a manually mounted device
> > to
> > > fstab would be ok.
> > 
> > no i ldidnt, since i wouldnt advise a normal enduser to tinker with
> > either of them from the start ... very simple ... nowadays mtab is
> > (or
> > should be, i dont know if update-manager already switches it over
> > on
> > upgrades yet for all releases) a link to /proc/mounts (until it
> > hopefully goes away within the next year or two), it is indeed not
> > suited for using the lines unmodified, but it will give you all
> > info
> > you need for an fstab entry, it is just a matter of putting it into
> > the
> > right order ...
> Not quite right, either of you.  The mtab entries use /dev/* names to
> identify the physical partition.  On some motherboards these can be
> different each time the machine reboots, and very likely to change if
> there's any other change to the attached devices including one of
> them going bad.  It's best to change these entries to use UUIDs, and
> this requires some care and expertise.  Not recommended for the newb.

editing files is nothing to recommend to the "newb" anyway ;)

and indeed one should not use any /dev device names at all in fstab...

since early 3.x kernels the device naming depends on the controller and
how the kernel initializes hardware ... it can well happen that the
slow USB rotary disk with your rootfs is /dev/sdb on a cold boot (while
sda is the USB key you have plugged in) because it took a while to spin
up ... 
and on a reboot where it doesn't start delayed (it spins already this
time) it magically becomes /dev/sda now ... all ubuntu installers have
taken this into account since 2008 or so btw ... so as long as you used
a supported install method your fstab should correctly only have UUIDs
(which hopefully acts well enough as example for people editing that
file to add something manually) 

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20151129/1c007107/attachment.sig>


More information about the ubuntu-users mailing list