jrm@
Developer
The system doesn't boot when I use a gpt partition scheme, so I've tried the code below with different parameter values. However, what I think is proper alignment isn't happening. Please excuse me (and feel free to correct me) if anything I say is nonsense; I've relied on sysinstall over the years to do all the "decision making".
I thought starting at the 64th sector would be a good idea because if the sector size is either 512 or 4k the alignment would still be OK (64*512/4096 = 8).
After the commands above I see:
Why does the partition start on sector 126 and not 64? This a problem because 126*512/4096 = 15.75, right? I get exactly the same result if I use
I've also read different suggestions about aligning with the erase block size as well. Is this important?
For completeness here is the entire install procedure I'm using (thank you @wblock , @vermaden and @aragon for your useful posts).
Anyone finding themselves struggling with a similar problem might find these posts helpful:
http://forums.freebsd.org/showthread.php?t=28526&highlight=align
http://forums.freebsd.org/showthread.php?t=19093&highlight=align
http://forums.freebsd.org/showthread.php?t=12594.
# gpart create -s MBR ada0; gpart add -t freebsd -b 64 ada0
I thought starting at the 64th sector would be a good idea because if the sector size is either 512 or 4k the alignment would still be OK (64*512/4096 = 8).
After the commands above I see:
# gpart show
Code:
=> 63 312581745 ada0 MBR (149G)
63 63 -free - (31k)
126 312581682 1 freebsd (149G).
Why does the partition start on sector 126 and not 64? This a problem because 126*512/4096 = 15.75, right? I get exactly the same result if I use
# gpart add -t freebsd -a 4k ada0.
I've also read different suggestions about aligning with the erase block size as well. Is this important?
For completeness here is the entire install procedure I'm using (thank you @wblock , @vermaden and @aragon for your useful posts).
Code:
gpart create -s MBR ada0
gpart add -t freebsd -b 64 ada0 # ??
gpart create -s BSD ada0s1
gpart add -t freebsd-ufs -a 4k -s 145g ada0s1
gpart add -t freebsd-swap -a 4k -s 4g ada0s1
gpart bootcode -b /boot/mbr ada0
gpart set -a active -i 1 ada0
gpart bootcode -b /boot/boot ada0s1
newfs -Ut /dev/ada0s1a
mount /dev/ada0s1a /mnt
cd /usr/freebsd-dist/
tar --unlink -xvpJf base.txz -C /mnt
tar --unlink -xvpJf doc.txz -C /mnt
tar --unlink -xvpJf games.txz -C /mnt
tar --unlink -xvpJf kernel.txz -C /mnt
tar --unlink -xvpJf lib32.txz -C /mnt
Anyone finding themselves struggling with a similar problem might find these posts helpful:
http://forums.freebsd.org/showthread.php?t=28526&highlight=align
http://forums.freebsd.org/showthread.php?t=19093&highlight=align
http://forums.freebsd.org/showthread.php?t=12594.