[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tests on new 2019-04-09 image on PPC64



On 4/10/19 2:36 PM, aggaz wrote:
> You are right! My fstab was:
> 
> # /etc/fstab: static file system information.
> #
> # Use 'blkid' to print the universally unique identifier for a
> # device; this may be used with UUID= as a more robust way to name devices
> # that works even if disks are added and removed. See fstab(5).
> #
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> # / was on /dev/sdc3 during installation
> UUID=8d05def0-133c-44a2-adf2-8d2e7b2be4a7 /               ext4
> errors=remount-ro 0       1
> # swap was on /dev/sdc4 during installation
> UUID=aa1708a4-1d44-4f3f-bf67-49314d3bbba1 none            swap    sw
>           0       0
> /dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
> 
> /dev/sdc2 /boot/grub hfs defaults 0 1

Okay, this should be switched to use UUIDs instead of device names as
device names are unreliable. Most likely, this is also a change that
needs to be made in grub-installer.

> The problem is that I have 2 hard drives and I installed Debian by using
> a USB stick. The installer counted 3 hard drives and used sdc as name
> for the drive I installed debian on. Now that the USB stick is not used
> anymore it count 2 hard drives only. So, changing the last line for
> "sdb2" solved the issue and now the system starts and everything seems
> to work!

Yep. That's why device names are really bad despite the Unix traditionalist
insisting that any changes in this regard are bad.

> Thank you all for porting GRUB, it is nice to see it on PPC!
> 
> As requested, here follows my grub.cfg:
> (...)
> 		echo	'Loading Linux 4.19.0-4-powerpc64 ...'
> 		linux	/boot/vmlinux-4.19.0-4-powerpc64
> root=UUID=8d05def0-133c-44a2-adf2-8d2e7b2be4a7 ro  quiet
> 		echo	'Loading initial ramdisk ...'
> 		initrd	/boot/initrd.img-4.19.0-4-powerpc64
> 	}

Alright. So GRUB is correctly configured to use UUIDs, it's just the fstab
that has got the wrong entry that we need to deal with.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: