Im following this guide, "FreeBSD Install Without Sysinstall"
(cant post the url - new member)
However, I have come up against a couple of problems. The reason Im not using sysinstall is becuase ive configured my paritions manually to align to boundarys that are more SSD friendly.
Create a slice apanning all the disk after the 63 sectors required by the MBR paritioning scheme:
Code:
# gpart show ad4
63 78165297 ad4 MBR (37G)
63 78165297 1 freebsd [active] (37G)
Worked out parition sizing:
Code:
Label Start(ST) End(ST) Size(ST) (MB)
/ Root ___s1a 16* 1161215 1161200 566MB
swap Swap ___s1b 1161216 18966527 17805312 8694MB
/var Var ___s1d 18966528 21030911 2064384 1008MB
/tmp Temp ___s1e 21030912 23095295 2064384 1008MB
/usr User ___s1f 23095296 54577151 31481856 15372MB
/??? 54577152 78156225 23579073 11513MB
* +63 Sectors is reserved for MBR slice.
Create the BSD parition scheme....
Code:
# gpart create -s bsd ad4s1
/
# gpart add -i 1 -b 16 -s 1161200 -t freebsd-ufs ad4s1
swap
# gpart add -i 2 -b 1161216 -s 17805312 -t freebsd-swap ad4s1
/var
# gpart add -i 4 -b 18966528 -s 2064384 -t freebsd-ufs ad4s1
/tmp
# gpart add -i 5 -b 21030912 -s 2064384 -t freebsd-ufs ad4s1
/usr
# gpart add -i 6 -b 23095296 -s 31481856 -t freebsd-ufs ad4s1
Create file system 4K sectors aligned (ssd friendly), 8:1 optimal ratio so block size is 32K:
Code:
# newfs -E -s 4096 -b 32768 -U -p f /dev/ad4s1a
# newfs -E -s 4096 -b 32768 -U -p f /dev/ad4s1d
# newfs -E -s 4096 -b 32768 -U -p f /dev/ad4s1e
# newfs -E -s 4096 -b 32768 -U -p f /dev/ad4s1f
gpart show reveals ->
Code:
=> 0 78165297 ad4s1 BSD (37G)
0 16 - free - (8.0K)
16 1161200 1 freebsd-ufs (567M)
1161216 17805312 2 freebsd-swap (8.5GB)
18966528 2064384 4 freebsd-ufs (1.0G)
21030912 2064384 5 freebsd-ufs (1.0G)
23095296 31481856 6 freebsd-ufs (15G)
54577152 23588145 - free - (11G)
If I use
'mfsbsd' then when I try and run the install.sh, I get 'Sorry, this must be done as root' becuase the id doesnt exist.
I did try and do what the script does direct from the console but cant get the pipe to work on the keyboard (???) so cant:
Code:
# cat base.?? | tar --unlink -xpzf - -C /mnt/install
If I use the
FreeBSD livecd (8.0 RELEASE) for fixit and a USB stick with the install on it. I get a little further on...
When I try and run install.sh to copy the contents across, I get seek failed.
...becuase my root fs shows Capacity @ 107% and Avail @ -120
df
/dev/ad4s1a 1756 1736 -120 107% /mnt/install
/dev/ad4s1d 1756 308 1308 19% /mnt/install/var
/dev/ad4s1e 1756 8 1308 0% /mnt/install/tmp
/dev/ad4s1f 1756 164 1452 10% /mnt/install/usr
(thanks)