DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th March 2010
embeddedbob embeddedbob is offline
New User
 
Join Date: Mar 2010
Posts: 2
Thanked 0 Times in 0 Posts
Default Manual install of FreeBSD 8.0 RELEASE after gpart

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)
Reply With Quote
  #2   (View Single Post)  
Old 27th March 2010
embeddedbob embeddedbob is offline
New User
 
Join Date: Mar 2010
Posts: 2
Thanked 0 Times in 0 Posts
Default

Ignore me... Was a later night. I was just putting the wrong switch to newfs
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free BSD Release 8.0 not recognizing CD/DVD and usb install media dheerajsuthar FreeBSD Installation and Upgrading 8 26th February 2010 03:35 PM
FreeBSD 7.2-RELEASE vermaden FreeBSD General 6 12th May 2009 08:33 PM
Manual install of Mediawiki? cwhitmore FreeBSD Ports and Packages 4 3rd October 2008 06:47 PM
Disable manual fsck on startup Malakim FreeBSD General 4 2nd September 2008 05:28 PM
FreeBSD 6.2-RELEASE > 7.0-RELEASE Upgrade Marci FreeBSD Installation and Upgrading 2 23rd July 2008 02:10 PM


All times are GMT. The time now is 09:06 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick