注意:

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

Difference between revisions of "User:Pnoecker/Undead USB Install"

From Funtoo
Jump to navigation Jump to search
(#cool story bro... initial commit before codification and wikification)
 
(fixing the fstab command)
Line 23: Line 23:
rc-update del swap boot
rc-update del swap boot
passwd
passwd
echo "funtoo / jfs noatime 0 1" >> /etc/fstab
echo "LABEL=funtoo / jfs ro,noatime 0 1" >> /etc/fstab
ping -c 5 google.com && ego sync && emerge jfsutils grub
ping -c 5 google.com && ego sync
emerge jfsutils grub


use old school mbr method of installing grub.
use old school mbr method of installing grub.
grub-install --target=i386-pc --no-floppy /dev/sda && ego boot update
grub-install --target=i386-pc --no-floppy /dev/sda && ego boot update
final install size is 10,176 MB  purging the stage3 tarball will reduce this 3 gb.

Revision as of 12:00, December 10, 2019

This is an install strategy to target a USB flash stick as / instead of a traditional hard drive or internal solid state drive. this isn't a live cd, this is a persistent root funtoo install that changes will keep living on.

In this run i will use a 64gb 100 mb/s sandisk, but you can probably get away with even 16gb. get a fast usb3 drive even if you dont have usb ports as the flash memory on them is much faster than the flash memory on usb2 keys which will improve usability.

using gparted delete the flash key fat32 partition and create a single jfs / partition labeled as funtoo, and mount it to /mnt/funtoo. were using JFS because we want as much raw speed and power from the install possible.

we want our USB to be targeting generic hardware so we can take our root funtoo EVERYWHERE with us all the time. we use the generic 64 subarch. if a systems 32, you probably dont want to be doing much computing on it anyways, but do as you will. we will be using a gnome stage3 tarball.

cd /mnt/funtoo wget https://build.funtoo.org/1.4-release-std/x86-64bit/generic_64/2019-11-26/gnome-stage3-generic_64-1.4-release-std-2019-11-26.tar.xz tar --numeric-owner -xpf *stage3* mount -t proc none proc mount --rbind /sys sys mount --rbind /dev dev

were using googles name server simply because its universal and anyone can access it anywhere.

echo "nameserver 8.8.8.8" > /mnt/funtoo/etc/resolv.conf env -i HOME=/root TERM=$TERM /bin/chroot . bash -l

were disabling swap because we didnt partition for it, many new systems and some old systems have enough ram to never need it, and swap frys flash media rapidly so it should be located on rotating disks anyways.

rc-update del swap boot passwd echo "LABEL=funtoo / jfs ro,noatime 0 1" >> /etc/fstab ping -c 5 google.com && ego sync emerge jfsutils grub

use old school mbr method of installing grub. grub-install --target=i386-pc --no-floppy /dev/sda && ego boot update

final install size is 10,176 MB purging the stage3 tarball will reduce this 3 gb.