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

Re: In cross install, cannot mount fstab



On Mon, Apr 21, 2025 at 09:30:39PM -0500, David Wright wrote:
> On Mon 21 Apr 2025 at 15:38:45 (-0400), Haines Brown wrote:
> > I am doing a cross install from my current Debian daedalus systm to a target disk /dev/nvme1n1.
> > 
> > I enter chroot, and create /etc/festab on the target. I use the UUIDs repored by # blkid for
> > the target disk,
> > 
> > Then I attemt to mount these partitions
> > 
> > 	/:# mount -a 
> > 
> > Mount cann't find the UIIDs. For eample:
> > 
> >   mount: /tmp: can't find UUID="0753d3bf-15eb-40a3-bdbd-bea054fc4f60".
> > 
> > What am I doint wrong?
> 
> Have you considered using LABELs? You can make them short and easy
> to type. I give each disk a four-letter name, written on the case¹
> in marker ink (eg kirk), and I PARTLABEL the partitions with names
> like Kirk-……, and LABEL the filesystems kirk…….
> 
> The prefixes avoid name collisions, particularly if you want to use
> meaningful names, like Kirk-swap and Kirk-home.
> 
> You then write PARTLABEL=whatever or LABEL=whatever in your fstab
> file, instead of error-prone UUIDs.
> 
> ¹ Not easy, I realise, when there's no case.

While labels a possibllity, the UUIDs are copied and pasted from # blkid  and 
so should be without error. 

I did the chroot command again (while in chroot) nd it reported an error:

	# LANG=C.UTF-8 chroot /mnt/debinst /bin/bash
	chroot: cannot change root directory to '/mnt/debinst': No 
	such file or directory

	$ ls /mnt | grep debinst
	debinst


Reply to: