注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Talk:Undead USB Install"

From Funtoo
Jump to navigation Jump to search
m
m (clean up the shit storm)
Line 28: Line 28:
STOP HERE!!!  go back to [[Undead_USB_Install]] now and start from the top code block.
STOP HERE!!!  go back to [[Undead_USB_Install]] now and start from the top code block.


(minimal tarball to speed up reinstalls to build documentation)
Come back at DONE! to have the legacy chicken lay the uEFI egg.
{{console|body=
###i## cd /mnt/funtoo
###i## wget https://build.funtoo.org/1.4-release-std/x86-64bit/generic_64/stage3-latest.tar.xz
###i## tar --numeric-owner -xpf *stage* && rm -f *stage*}}
 
 
Show partition labels.
{{console|body=
###i## lsblk -o name,label
}}
 
stab 2 at getting uefi going from legacy machine.


{{console|body=
{{console|body=
###i## mkdir /boot/efi
###i## mkdir /boot/efi
###i## mount /dev/sdc2 /boot/efi
###i## mount /dev/sdc2 /boot/efi
###i## grub-install --target=x86_64-efi /boot/efi}}
###i## grub-install --target=x86_64-efi /boot/efi
 
###i## grub-install --target=i386-efi /boot/efi
/boot/efi/efi/gentoo/grubx64.efi is generated.  doesn't load probably secure boot unsigned image or something like that.
}}
 
stab 3
gpt partitioning via official install method gdisk.
testing legacy grub + gpt to verify that MBR can be deprecated.
 
legacy loaded grub this time from a gpt partition.  i think i didn't delete the fstab defaults, it wasn't mounting root correctly but very close to running.
 


https://superuser.com/questions/801515/is-a-hybrid-linux-usb-stick-for-uefi-legacy-bios-possible
i386-efi is untested but legacy mode + 64 uefi from legacy are working at this point of the install.


==gparted==
==gparted==
CAN'T DO IT!!!!
gparted isn't granular enough to make bios boot partitions to load legacy mode in GPT.
Device > create partition table > GPT
Device > create partition table > GPT



Revision as of 19:29, October 14, 2020

undead really targets USB, SSD, and NVME. Swapping is best handled in a file or turned off.

https://www.funtoo.org/Talk:Install/GPT_Partitioning <--correct partitioning to load legacy mode, and uefi mode.

/etc/fstab reads filesystem labels and ignores partition names. file browsers read partition labels, so were using FUNTOO for the root drive so our branding is correct in file browsers.

root # mkfs.vfat -F 32 /dev/sdc2
root # fatlabel /dev/sdc2 "BOOT"
OR
root # mlabel -i /dev/sdc2 ::"BOOT"
   Tip

jfs is amazingly fast, use it!

https://www.phoronix.com/scan.php?page=article&item=9way_linux317_fs&num=2

root # mkfs.jfs /dev/sdc3
root # jfs_tune -L "FUNTOO" /dev/sdc3
root # mount /dev/sdc3 /mnt/funtoo
root # mkdir /mnt/funtoo/boot
root # mount /dev/sdc2 /mnt/funtoo/boot

STOP HERE!!! go back to Undead_USB_Install now and start from the top code block.

Come back at DONE! to have the legacy chicken lay the uEFI egg.

root # mkdir /boot/efi
root # mount /dev/sdc2 /boot/efi
root # grub-install --target=x86_64-efi /boot/efi
root # grub-install --target=i386-efi /boot/efi

i386-efi is untested but legacy mode + 64 uefi from legacy are working at this point of the install.

gparted

gparted isn't granular enough to make bios boot partitions to load legacy mode in GPT. Device > create partition table > GPT

/dev/sdc1 name: "BOOT Bios" size: 1MiB flags: bios_grub

/dev/sdc2 name: "BOOT" file system: fat32 label: BOOT size: 128MiB flags: boot, esp

/dev/sdc3 name: "funtoo" file system: jfs label: ROOT size: 14.9GiB

/etc/fstab label grabs the file system label, not the drive name. you should be able to name the root drive funtoo, and have it show up as that in other operating systems when the usb is inserted.

talk to me here