The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Talk:Undead USB Install"
m (patchy patch.... fix grub to make egoless boot configs.... ego doesn't understand no / fstab either....) |
|||
Line 1: | Line 1: | ||
== | ==Backwards Compatible Partition Table== | ||
List the device to be partitioned, mine is on /dev/sdc | |||
{{console|body= | |||
###i## lsblk -o name,size,label,partlabel | |||
}} | |||
{{console|body= | |||
###i## cgdisk /dev/sdc}} | |||
{{console|body= | |||
Command: ##i##o ↵ | |||
This option deletes all partitions and creates a new protective MBR. | |||
Proceed? (Y/N): ##i##y ↵ | |||
}} | |||
{{console|body= | |||
Command: ##i##n ↵ | |||
Partition Number: ##i##1 ↵ | |||
First sector: ##i##↵ | |||
Last sector: ##i##+1M ↵ | |||
Hex Code: ##i##EF02 ↵ | |||
Command: ##i##c ↵ | |||
Partition number: ##i##1 | |||
Enter name: ##i##BIOS Boot | |||
}} | |||
{{console|body= | |||
Command: ##i##n ↵ | |||
Partition Number: ##i##2 ↵ | |||
First sector: ##i##↵ | |||
Last sector: ##i##+128M ↵ | |||
Hex Code: ##i##EF00 ↵ | |||
Command: ##i##c ↵ | |||
Partition number: ##i##2 | |||
Enter name: ##i##BOOT | |||
}} | |||
{{console|body= | |||
Command: ##i##n ↵ | |||
Partition Number: ##i##3 ↵ | |||
First sector: ##i##↵ | |||
Last sector: ##i##↵ | |||
Hex Code: ##i## ↵ | |||
Command: ##i##c ↵ | |||
Partition number: ##i##3 | |||
Enter name: ##i##FUNTOO | |||
}} | |||
{{console|body= | |||
Command: ##i##w ↵ | |||
Do you want to proceed? (Y/N): ##i##Y ↵ | |||
}} | |||
{{console|body= | {{console|body= | ||
###i## mkfs.vfat -F 32 /dev/sdc2 | ###i## mkfs.vfat -F 32 /dev/sdc2 | ||
###i## fatlabel /dev/sdc2 "BOOT" | ###i## fatlabel /dev/sdc2 "BOOT" | ||
}} | }} | ||
Line 28: | Line 73: | ||
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. | ||
==experimental garbage== | |||
{{console|body= | {{console|body= | ||
###i## grub-install --target=x86_64-efi --bootloader-id="FUNTOO" /boot/efi | ###i## grub-install --target=x86_64-efi --bootloader-id="FUNTOO" /boot/efi | ||
###i## grub-install --target=i386-efi /boot/efi | ###i## grub-install --target=i386-efi /boot/efi | ||
}} | }} | ||
==gparted== | ==gparted== | ||
gparted isn't granular enough to make bios boot partitions to load legacy mode in GPT. | gparted isn't granular enough to make bios boot partitions to load legacy mode in GPT. if theres a easy way to do this i didn't see it. cgdisk it is.... | ||
Device > create partition table > GPT | Device > create partition table > GPT | ||
Line 57: | Line 88: | ||
/dev/sdc3 name: "funtoo" file system: jfs label: ROOT size: 14.9GiB | /dev/sdc3 name: "funtoo" file system: jfs label: ROOT size: 14.9GiB | ||
Revision as of 10:30, November 8, 2020
Backwards Compatible Partition Table
List the device to be partitioned, mine is on /dev/sdc
root # lsblk -o name,size,label,partlabel
root # cgdisk /dev/sdc
Command: o ↵ This option deletes all partitions and creates a new protective MBR. Proceed? (Y/N): y ↵
Command: n ↵ Partition Number: 1 ↵ First sector: ↵ Last sector: +1M ↵ Hex Code: EF02 ↵ Command: c ↵ Partition number: 1 Enter name: BIOS Boot
Command: n ↵ Partition Number: 2 ↵ First sector: ↵ Last sector: +128M ↵ Hex Code: EF00 ↵ Command: c ↵ Partition number: 2 Enter name: BOOT
Command: n ↵ Partition Number: 3 ↵ First sector: ↵ Last sector: ↵ Hex Code: ↵ Command: c ↵ Partition number: 3 Enter name: FUNTOO
Command: w ↵ Do you want to proceed? (Y/N): Y ↵
root # mkfs.vfat -F 32 /dev/sdc2 root # fatlabel /dev/sdc2 "BOOT"
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.
experimental garbage
root # grub-install --target=x86_64-efi --bootloader-id="FUNTOO" /boot/efi root # grub-install --target=i386-efi /boot/efi
gparted
gparted isn't granular enough to make bios boot partitions to load legacy mode in GPT. if theres a easy way to do this i didn't see it. cgdisk it is.... 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
egoless grub config generation
edit /etc/grub.d/10_linux to make it pickup the initrd....
"initramfs-debian-sources-${version}" \ "initramfs-debian-sources-lts-${version}" \
grub-mkconfig -o /boot/grub/grub.cfg