On Sat, Jan 24, 2026 at 04:09:12PM +0500, Alexander V. Makartsev wrote: > On 1/23/26 20:29, D. R. Evans wrote: > > ... > > So, given all the above, I intend to proceed with: > > > > cp -r /dev/ /tmp/RFS/dev/ > > chroot /tmp/RFS /usr/bin/bash > > grub-install /dev/sda > > sync > > exit > > reboot > > > > after I've given people a bit of time to shout at me not to do that if > > something in what I've written above looks bad. > "cp -r /dev/ /tmp/RFS/dev/" is wrong! Don't do that. > Think about it, "cp" command will copy block devices such as /dev/sda like > files into /tmp/RFS, basically into itself until it runs out of free space.
No it will not. It will copy the block/character devices as files of type b & c, this will result in /tmp/RFS/dev/ being 100k or so. Doing a 'mount --bind' is, however, better than my suggestion of copying. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 https://www.phcomp.co.uk/ Parliament Hill Computers. Registration Information: https://www.phcomp.co.uk/Contact.html #include <std_disclaimer.h>

