brent s. <bts@square-r00t.net> 于2019年11月6日周三 上午9:57写道:
On 11/5/19 8:41 PM, Eli Schwartz via arch-general wrote:
Hi,
I try to use a specific partition of usb to install archlinux, the following is the step:
Suppose the /dev/sdc is my usb:
$ sudo ddrescue -f archlinux-2019.11.01-x86_64.iso /dev/sdc2 The ISO contains multiple partitions, so probably not. Why are you
On 11/5/19 8:35 PM, Hongyi Zhao via arch-general wrote: trying to do this, precisely? Maybe you want to install archlinux following the install guide, but installing to the USB partition instead of an HDD. For example,
https://wiki.archlinux.org/index.php/Installing_Arch_Linux_on_a_USB_key
Alternatively, you can use grub to boot an ISO *file* as a loopback device. Some people do this to create multiboot USBs.
As usual, Eli beat me to the punch. :) Really need to tell my MUA to fetch more frequently.
As shown in my other reply, the .iso image has a partition table on it. Attempting to image this onto a partition leaves you with a partition table on a partition which is... *technically* possible, but parted/fdisk will complain about it (as they should, because we're talking about something that's "you goofed something hard or you have a REALLY technical, and probably very silly, reason to need nested partition tables").
Eli has a great suggestion about using Grub's loopback capabilities. I do this on my machines and it's saved my tuchas more than once, and highly recommend it even if you don't need it for install reasons. You can find instructions/information on it on the Arch wiki:
https://wiki.archlinux.org/index.php/Multiboot_USB_drive#Using_GRUB_and_loop...
and I *very* recently even wrote briefly directly about this (using SystemRescueCD instead of the Arch ISO, but I mention it):
Thanks a lot for your job. I also have tried to do the same thing with Debian's install iso, but failed to figure out the params used for ``linux'' command in grub. Just as you told on your website above, the most difficult thing using this method is to figure out the correct linux ... and initrd ... lines. While with the dd-based method, the chainloader method may be used which doesn't need to figure out the linux ... and initrd ... lines due to the chainloaded bootloader will tack over and do the corresponding things.
-- brent saner https://square-r00t.net/ GPG info: https://square-r00t.net/gpg-info
-- Hongsheng Zhao <hongyi.zhao@gmail.com> Institute of Semiconductors, Chinese Academy of Sciences GnuPG DSA: 0xD108493