Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Installer boots up, selected shell
- # dd if=/dev/urandom of=/dev/ada0 bs=512
- 5117460480 bytes transferred
- # dd if/dev/zero of=/dev/ada0 bs=512 count=1
- 1+0 records in
- 1+0 records out
- 512 bytes transferred
- # exit
- -- Installer comes back up, selected Install
- -- Selected keyboard and typed in hostname
- -- Selected option components: doc, lib32, ports
- -- Partitioning: selected shell
- # gpart destroy -F ada0
- gpart: arg0 'ada0': Invalid argument
- # gpart create -s gpt ada0
- ada0 created
- # gpart add -t freebsd-boot -s 64k ada0
- ada0p1 added
- # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
- bootcode written to ada0
- # gpart add -t freebsd-ufs -s 1g -l boot ada0
- ada0p2 added
- # newfs -U gpt/boot
- gpt/boot: 1024.0MB (2097152 sectors)...(more jargon)
- # gpart add -t freebsd-ufs -l enc ada0
- ada0p3 added
- # geli init -bl 256 gpt/enc
- Enter new passphrase:
- Reenter new passphrase:
- Metadata backup can be found in /var/backups/gpt_enc.eli and restored....
- # geli attach gpt/enc
- cryptosoft0: <software crypto> on motherboard
- Enter passphrase:
- GEOM_ELI: Device gpt/enc.eli created
- GEOM_ELI: Encryption: AES-XTS 256
- GEOM_ELI: Crypto: software
- # newfs -U gpt/enc.eli
- lots of comma seperated numbers
- # mount /dev/gpt/enc.eli /mnt
- # mkdir /mnt/boot
- # mount /dev/gpt/boot /mnt/boot
- # export DESTDIR="/mnt"
- # exit
- -- Installer extracts distribution files
- -- Set up network, root password, CMOS clock, daemons
- -- Finish install, drop back to shell
- This shell is operating in a chroot in the new system. When finished making configuration changes, type "exit".
- # vi /boot/loader.conf
- geom_eli_load="YES"
- vfs.root.mountfrom="ufs:/dev/ad0p3.eli"
- # vi /etc/fstab
- /dev/gpt/enc.eli / ufs rw 1 1
- /dev/gpt/boot /boot ufs rw 1 1
- proc /proc procfs rw 0 0
- # ls /boot
- lots of files, including kernel, boot
- # ls /
- bin, usr, var, etc... (no pun intended)
- # df -h
- Filesystem Size Used Avail Capacity Mounted on
- .
- .
- /dev/gpt/enc.eli 1.4T 1.7G 1.2T 0% /mnt
- /dev/gpt/boot 1G 303M 623M 33% /mnt/boot
- # gpart list ada0 |less
- lists the following:
- Geom name: ada0
- scheme: GPT
- 1. Name: ada0p1
- Mediasize: 65536 (64k)
- type: freebsd-boot
- 2. Name: ada0p2
- Mediasize: 1073741824 (1.0G)
- label: boot
- type: freebsd-ufs
- 3. Name: ada0p3
- Mediasize: 1499228061696 (1.4T)
- label: enc
- type: freebsd-ufs
- # echo "PLEASE WORK"
- PLEASE WORK
- # reboot
- .
- .
- .
- loader: not a directory
- gptboot: No /boot/loader on 0:ad(0p2)
- kernel: not a directory
- gptboot: No /boot/kernel/kernel on 0:ad(0p2)
- FreeBSD/x86 boot
- Default: 0:ad(0p2)/boot/kernel/kernel
- boot:
- -- Repeatedly smash face into keyboard, eventually system locks up
Advertisement
Add Comment
Please, Sign In to add comment