On Sun 27 Aug 2023 at 14:27:09 (-0500), Tom Browder wrote:
> On Sun, Aug 27, 2023 at 13:27 Greg Wooledge <g...@wooledge.org> wrote:
> 
> > On Sun, Aug 27, 2023 at 08:19:35PM +0200, Hans wrote:
> > > When I boot the system, then the drives are not mounted as set in
> > /etc/fstab.
> > > For example, the SDD should mounted to /space, and the unencrypted HDD
> 
> ...
> 
> > Use UUIDs or Labels instead.  These won't change, while the device names
> > *will* change.
> 
> 
> Please remind me of when they might change.

As and when the kernel discovers them, ie at boot for those fitted,
and when you plug them is for any others.

> I'm pretty sure on my latest
> host the debian installer used /dev/sda (and partions 1 and 2) instead of a
> label or UUID.

It might be possible to mistakenly read /etc/fstab as showing that,
because of the comment line above the active line:

  # <file system> <mount point>   <type>  <options>       <dump>  <pass>
  # / was on /dev/sda4 during installation
  UUID=a1b2c3d4-e5f6-1234-dcba-a1b2c3d4e5f6 /               ext4    
errors=remount-ro 0       1
  /dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

BTW I've not seen the d-i use LABELs, I presume because it can't be
certain that they're always going to be unique.

> Of course I do want to add drives eventually, so maybe I do need to change
> to do that safely.

Some computers can give the user a rude awakening when the kernel
unexpectedly discovers a plugged-in device before the internal drive.

Cheers,
David.

Reply via email to