On Sat, Jan 24, 2026 at 11:18:39AM +0000, alain williams wrote: > 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.
Not special files, that's right, but it will "unfold" symlinks, attributes migt be wrong, etc. etc. Better use "cp -a", or at least "cp -pr" but... > Doing a 'mount --bind' is, however, better than my suggestion of copying. absolutely this. Cheers -- t
signature.asc
Description: PGP signature

