Yesterday I started again a second try to put FreeBSD on my laptop.
I searched around on the net to find who to install FreeBSD on my ssd.
I found this: http://www.wonkity.com/~wblock/docs/html/ssd.html
So my setup was:
-Put installation dvd.
-Choose shell option.
-I write
-I press exit and return back.
-I press Install. When I come to partition section, I choose modify to ada0p2 / ada0p3 / ada0p4 and set the mountpoints (/ , /var , /usr)
I finish the setup and I go to single user mode, mount the filesystem to rw and I run:
and I add this lines to /etc/ fstab
Now my question. I made them all right?
I ask because ssd is not the classic hdd. Wrong setup could reduce his lifetime.
My tunefs return this:
and my /dev/gpt
and my /dev
Am I ok?
I searched around on the net to find who to install FreeBSD on my ssd.
I found this: http://www.wonkity.com/~wblock/docs/html/ssd.html
So my setup was:
-Put installation dvd.
-Choose shell option.
-I write
Code:
# gpart destroy ada0
# gpart create -s gpt ada0
# gpart add -t freebsd-boot -s 512k -a4k -l ssdboot ada0
# gpart bootcode -b /boot/pmbr -p /boot/gptboot -i1 ada0
# gpart add -t freebsd-ufs -l ssdrootfs -b 1m -s 2g ada0
# gpart add -t freebsd-ufs -l ssdvarfs -a 1m -s 2g ada0
# gpart add -t freebsd-ufs -l ssdusrfs -a 1m ada0
# newfs -U -t /dev/gpt/ssdrootfs
# newfs -U -t /dev/gpt/ssdvarfs
# newfs -U -t /dev/gpt/ssdusrfs
-I press exit and return back.
-I press Install. When I come to partition section, I choose modify to ada0p2 / ada0p3 / ada0p4 and set the mountpoints (/ , /var , /usr)
I finish the setup and I go to single user mode, mount the filesystem to rw and I run:
Code:
# mkdir /usr/swap
# dd if=/dev/zero of=/usr/swap/swap bs=128k count=32768
and I add this lines to /etc/ fstab
Code:
/dev/gpt/ssdrootfs / ufs rw 1 1
/dev/gpt/ssdvarfs /var ufs rw 2 2
tmpfs /tmp tmpfs rw,mode=01777 0 0
/dev/gpt/ssdusrfs /usr ufs rw 2 2
md99 none swap sw,file=/usr/swap/swap 0 0
Now my question. I made them all right?
I ask because ssd is not the classic hdd. Wrong setup could reduce his lifetime.
My tunefs return this:
Code:
$ sudo tunefs -p /dev/ada0
tunefs: /dev/ada0: could not read superblock to fill out disk
$ sudo tunefs -p /dev/ada0p1
tunefs: /dev/ada0p1: could not read superblock to fill out disk
$ sudo tunefs -p /dev/ada0p2
tunefs: POSIX.1e ACLs: (-a) disabled
tunefs: NFSv4 ACLs: (-N) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) enabled
tunefs: soft update journaling: (-j) disabled
tunefs: gjournal: (-J) disabled
tunefs: trim: (-t) enabled
tunefs: maximum blocks per file in a cylinder group: (-e) 4096
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: space to hold for metadata blocks: (-k) 5240
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L)
$ sudo tunefs -p /dev/ada0p3
tunefs: POSIX.1e ACLs: (-a) disabled
tunefs: NFSv4 ACLs: (-N) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) enabled
tunefs: soft update journaling: (-j) disabled
tunefs: gjournal: (-J) disabled
tunefs: trim: (-t) enabled
tunefs: maximum blocks per file in a cylinder group: (-e) 4096
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: space to hold for metadata blocks: (-k) 5240
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L)
$ sudo tunefs -p /dev/ada0p4
tunefs: POSIX.1e ACLs: (-a) disabled
tunefs: NFSv4 ACLs: (-N) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) enabled
tunefs: soft update journaling: (-j) disabled
tunefs: gjournal: (-J) disabled
tunefs: trim: (-t) enabled
tunefs: maximum blocks per file in a cylinder group: (-e) 4096
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: space to hold for metadata blocks: (-k) 6408
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L)
and my /dev/gpt
Code:
/dev/gpt/ssdboot /dev/gpt/ssdrootfs /dev/gpt/ssdusrfs /dev/gpt/ssdvarfs
and my /dev
Code:
ada0
ada0p1
ada0p2
ada0p3
ada0p4
Am I ok?