fstab question

Ken D'Ambrosio ken at jots.org
Fri Aug 7 00:06:50 UTC 2020


On 2020-08-06 19:53, Phil wrote:

> # <file system> <mount point>   <type> <options>       <dump>  <pass>
> # / was on /dev/sda5 during installation
> UUID=b51f0844-4826-4643-b34b-f324a67739e4 /               ext4
> errors=remount-ro 0
>     1
> /swapfile                                 none            swap 
> sw              0
>   0
> 
> Shouldn't this read something like this:
> 
> /dev/sda5     /    ext4    defaults    0    0

*GENERALLY*, no.  You want to use the volume UUID, because there's no 
chance that will change during a reboot.

BUT.

Unless I"m mistaken, the volume UUID absolutely *WILL* change during a 
clone.  I kinda-sorta thought Clonezilla might be smart enough to deal 
with that, but it's perhaps worth a shot trying the /dev/sda5 approach 
and see what happens.

BUT (part II)

I'll also point out one thing that's potentially salient: by the time 
you're reading fstab, you've already mounted your root filesystem.  I'm 
truly not sure if fstab really does anything for the root FS.  What I 
might check, however, is your /boot/grub/grub.cfg file.  It will likely 
have the same UUID in there, and that probably *does* need to change.  
Check your UUID with the "blkid" command.

Good luck!

-Ken




More information about the ubuntu-users mailing list