Guest User

Untitled

a guest
Aug 23rd, 2012
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.74 KB | None | 0 0
  1. -- Installer boots up, selected shell
  2.  
  3. # dd if=/dev/urandom of=/dev/ada0 bs=512
  4. 5117460480 bytes transferred
  5.  
  6. # dd if/dev/zero of=/dev/ada0 bs=512 count=1
  7. 1+0 records in
  8. 1+0 records out
  9. 512 bytes transferred
  10.  
  11. # exit
  12.  
  13. -- Installer comes back up, selected Install
  14. -- Selected keyboard and typed in hostname
  15. -- Selected option components: doc, lib32, ports
  16. -- Partitioning: selected shell
  17.  
  18. # gpart destroy -F ada0
  19. gpart: arg0 'ada0': Invalid argument
  20.  
  21. # gpart create -s gpt ada0
  22. ada0 created
  23.  
  24. # gpart add -t freebsd-boot -s 64k ada0
  25. ada0p1 added
  26.  
  27. # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
  28. bootcode written to ada0
  29.  
  30. # gpart add -t freebsd-ufs -s 1g -l boot ada0
  31. ada0p2 added
  32.  
  33. # newfs -U gpt/boot
  34. gpt/boot: 1024.0MB (2097152 sectors)...(more jargon)
  35.  
  36. # gpart add -t freebsd-ufs -l enc ada0
  37. ada0p3 added
  38.  
  39. # geli init -bl 256 gpt/enc
  40. Enter new passphrase:
  41. Reenter new passphrase:
  42.  
  43. Metadata backup can be found in /var/backups/gpt_enc.eli and restored....
  44.  
  45. # geli attach gpt/enc
  46. cryptosoft0: <software crypto> on motherboard
  47. Enter passphrase:
  48. GEOM_ELI: Device gpt/enc.eli created
  49. GEOM_ELI: Encryption: AES-XTS 256
  50. GEOM_ELI: Crypto: software
  51.  
  52. # newfs -U gpt/enc.eli
  53. lots of comma seperated numbers
  54.  
  55. # mount /dev/gpt/enc.eli /mnt
  56. # mkdir /mnt/boot
  57. # mount /dev/gpt/boot /mnt/boot
  58. # export DESTDIR="/mnt"
  59. # exit
  60.  
  61. -- Installer extracts distribution files
  62. -- Set up network, root password, CMOS clock, daemons
  63. -- Finish install, drop back to shell
  64.  
  65. This shell is operating in a chroot in the new system. When finished making configuration changes, type "exit".
  66.  
  67. # vi /boot/loader.conf
  68. geom_eli_load="YES"
  69. vfs.root.mountfrom="ufs:/dev/ad0p3.eli"
  70.  
  71. # vi /etc/fstab
  72. /dev/gpt/enc.eli / ufs rw 1 1
  73. /dev/gpt/boot /boot ufs rw 1 1
  74. proc /proc procfs rw 0 0
  75.  
  76. # ls /boot
  77. lots of files, including kernel, boot
  78.  
  79. # ls /
  80. bin, usr, var, etc... (no pun intended)
  81.  
  82. # df -h
  83. Filesystem       Size  Used  Avail  Capacity  Mounted on
  84. .
  85. .
  86. /dev/gpt/enc.eli 1.4T  1.7G  1.2T   0%        /mnt
  87. /dev/gpt/boot    1G    303M  623M   33%       /mnt/boot
  88.  
  89. # gpart list ada0 |less
  90. lists the following:
  91. Geom name: ada0
  92. scheme: GPT
  93. 1. Name: ada0p1
  94.         Mediasize: 65536 (64k)
  95.         type: freebsd-boot
  96. 2. Name: ada0p2
  97.         Mediasize: 1073741824 (1.0G)
  98.         label: boot
  99.         type: freebsd-ufs
  100. 3. Name: ada0p3
  101.         Mediasize: 1499228061696 (1.4T)
  102.         label: enc
  103.         type: freebsd-ufs
  104.  
  105. # echo "PLEASE WORK"
  106. PLEASE WORK
  107.  
  108. # reboot
  109.  
  110. .
  111. .
  112. .
  113.  
  114. loader: not a directory
  115. gptboot: No /boot/loader on 0:ad(0p2)
  116. kernel: not a directory
  117. gptboot: No /boot/kernel/kernel on 0:ad(0p2)
  118.  
  119. FreeBSD/x86 boot
  120. Default: 0:ad(0p2)/boot/kernel/kernel
  121. boot:
  122.  
  123. -- Repeatedly smash face into keyboard, eventually system locks up
Advertisement
Add Comment
Please, Sign In to add comment