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

Bug#604839: [installation-guide] Planned overhaul of chapter 4.3 "Preparing Files for USB Memory Stick Booting"



Hi,

David <bouncingcats@gmail.com> wrote (Sat, 9 Oct 2021 21:56:24 +1100):
> I see that the suggestion to use 'cat' comes
> from #604839.
> 
> Yes, 'cat' will "work", however I feel there is no
> good reason to use 'cat' there.
> 
> Because the purpose of 'cat' is for concatenating
> multiple files, and it also requires a shell redirection
> from stdout. Both are unnecessary here.
> 
> I suggest this command should be used:
> # cp /usr/lib/syslinux/mbr.bin /dev/sdX

The documentation in the syslinux package also has

	A simple MBR, roughly on par with the one installed by DOS (but
	unencumbered), is included in the SYSLINUX distribution.  To install
	it under Linux, simply type:
	
	cat mbr.bin > /dev/XXX

	... where /dev/XXX is the device you wish to install it on.

so I guess there is some good reason to do it this way.

Holger


-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076


Reply to: