Re: [DNG] grub-install device node not found [solved]

2021-08-04 Thread Haines Brown
On Wed, Aug 04, 2021 at 05:27:48PM +0200, aitor wrote:
> Hi,
> 
> On 4/8/21 16:34, Haines Brown wrote:
> > But I'd prefer to do the fix direclty within sdc chroot. Is there
> > a utility in util-linux to make the node (/dev/sdc1 ?) visible?
> 
> You need to include them in /etc/fstab to suit your needs, i guess.

Thanks for the suggestion. In looking at fstab I found that term was 
no longer accessible. So I inistalled mlterm to look at /etc/fstab. I 
see that it still has the information I had earlier provided for it. 
That is, the UUID number for / etc.

I worried about MBR. It is msdos as I would expect. Then I checked to 
see if it had content with 

  # dd if=/dev/sdc of=mbr.bin bs=512 count=1
  # od -xa mbr.bin

The output of no use to me, but at least there exits an MBR with code.  
Otherwise I'd have to repartiion the disk 

In principle I have a fully operating system on the disk. There is a 
kernel and /boot/grub has its files. The only problem is I have no 
boot manager.

Incidentally when I now try to run # update-grub it ends with 

  device node not found
  Cannot find list of partitions!  (Try mounting /sys.)

So I tried to mount /sys within chroot:

  /# mount -t proc none /proc

This did not oslve the problem. I tried from outide chroot:

  # mount -o bind /sys/ /mnt/devinst/sys

Now # update-grub runs and successfully completes. It finds the linux 
and initrd images, but not those on other disks. I forget whether it
can do so before a reboot. 

I used to do cross installs many years ago and loved it. The process 
today seems simpler than before. 

-- 
Haines Brown  
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] grub-install device node not found

2021-08-04 Thread aitor

Hi Haines,

On 4/8/21 12:31, Haines Brown wrote:

Indeed, fdisk-l returns nothing. There does exist a set of sdc*
interfaces in /dev. What is the fix?


Take a chance with lsblk and blkid, miscelaneous utilities of util-linux.

On the other hand

# udevadm info -a -p  $(udevadm info -q path -n /dev/sdc)

# udevadm info -a -p  $(udevadm info -q path -n /dev/sdcX)

will list the attributes of sdc and sdcX.

Aitor.



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] grub-install device node not found

2021-08-04 Thread Haines Brown
On Tue, Aug 03, 2021 at 10:31:28PM +0200, Arnt Karlsen wrote:
> On Tue, 3 Aug 2021 13:25:19 -0400, Haines wrote in message 
> <20210803172519.gg29...@engels.histomat.net>:
> 
> > I'm doing a cross install of beowulf. BIOS is legacy. All goes well 
> > until the end when I run /#: grub-install /dev/sdc . 
> > 
> > Installing for i386-pc platform.
> > device node not found
> > ...
> > Installation finished. No error reported.
> > 
> > I should mention that when I initially ran the command my terminal 
> > (mlterm) crashed (that sometimes happens). So I had to chroot again
> > to the mount point /mnt/devinst/
> > 
> > It seems that the grub-install cannot see the mbr on /dev/sdc
> 
> ..is there one?  'fdisk -l ' or somesuch should work, even if 
> there are some new fancy /dev names missing symlinks to /dev/sdc, 
> e.g. killed by that mlterm crash. 

Indeed, fdisk-l returns nothing. There does exist a set of sdc* 
interfaces in /dev. What is the fix?

-- 
Haines Brown  
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] grub-install device node not found

2021-08-03 Thread Ralph Ronnquist via Dng
On Wed, 4 Aug 2021 00:59:30 +0200
aitor  wrote:

> Hi,
> 
> On 4/8/21 0:18, aitor wrote:
> >
> > Hi Arnt,
> >
> > On 3/8/21 22:31, Arnt Karlsen wrote:  
> >> ..is there one?  'fdisk -l ' or somesuch should work, even if
> >> there are some new fancy /dev names missing symlinks to /dev/sdc,
> >> e.g. killed by that mlterm crash.  
> >
> > The command for the interactive shell of debian-installer is 
> > "list-devices". Examples:
> >
> > ~ # list-devices usb-partition
> > /dev/sda1
> > /dev/sda2
> >
> > ~# list-devices disk
> > /dev/sda
> > /dev/sdb
> >
> > HTH,
> >
> > Aitor.
> >  
> Forget this, it was a cross-install...
> 
> Aitor.

Yes, it's a matter of ensuring that the device node /dev/sdc is
installed in the "chroot" filesystem; basically doing
   # mknod $target/dev/sdc b 8 32

(see eg linux/Documentation/admin-guide/devices.txt)

If installing on a loopback filesystem you'd need to use the
major:minor of the loopback device while naming it /dev/sdc during this
installation.

.. and don't forget to remove that dev/sdc afterwards

Ralph.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] grub-install device node not found

2021-08-03 Thread aitor

Hi,

On 4/8/21 0:18, aitor wrote:


Hi Arnt,

On 3/8/21 22:31, Arnt Karlsen wrote:

..is there one?  'fdisk -l ' or somesuch should work, even if
there are some new fancy /dev names missing symlinks to /dev/sdc,
e.g. killed by that mlterm crash.


The command for the interactive shell of debian-installer is 
"list-devices". Examples:


~ # list-devices usb-partition
/dev/sda1
/dev/sda2

~# list-devices disk
/dev/sda
/dev/sdb

HTH,

Aitor.


Forget this, it was a cross-install...

Aitor.


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] grub-install device node not found

2021-08-03 Thread Arnt Karlsen
On Tue, 3 Aug 2021 13:25:19 -0400, Haines wrote in message 
<20210803172519.gg29...@engels.histomat.net>:

> I'm doing a cross install of beowulf. BIOS is legacy. All goes well 
> until the end when I run /#: grub-install /dev/sdc . 
> 
> Installing for i386-pc platform.
> device node not found
> ...
> Installation finished. No error reported.
> 
> I should mention that when I initially ran the command my terminal 
> (mlterm) crashed (that sometimes happens). So I had to chroot again
> to the mount point /mnt/devinst/
> 
> It seems that the grub-install cannot see the mbr on /dev/sdc

..is there one?  'fdisk -l ' or somesuch should work, even if 
there are some new fancy /dev names missing symlinks to /dev/sdc, 
e.g. killed by that mlterm crash. 

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] grub-install device node not found

2021-08-03 Thread Haines Brown
I'm doing a cross install of beowulf. BIOS is legacy. All goes well 
until the end when I run /#: grub-install /dev/sdc . 

Installing for i386-pc platform.
device node not found
...
Installation finished. No error reported.

I should mention that when I initially ran the command my terminal 
(mlterm) crashed (that sometimes happens). So I had to chroot again to 
the mount point /mnt/devinst/

It seems that the grub-install cannot see the mbr on /dev/sdc

-- 
Haines Brown  
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng