Date: Tue, 22 May 2012 08:17:35 +0200 From: Matthias Apitz <guru@unixarea.de> To: rozhuk.im@gmail.com Cc: 'User Wojtek' <wojtek@wojtek.tensor.gdynia.pl>, freebsd-hackers@freebsd.org Subject: Re: proper newfs options for SSD disk Message-ID: <20120522061734.GA1210@tiny> In-Reply-To: <4fb7e819.6968700a.7a7f.ffff9153@mx.google.com> References: <alpine.BSF.2.00.1205182209010.9350@wojtek.tensor.gdynia.pl> <4fb7dfd6.736a980a.186d.ffff902f@mx.google.com> <20120519180901.GA1264@tiny> <4fb7e819.6968700a.7a7f.ffff9153@mx.google.com>
index | next in thread | previous in thread | raw e-mail
El día Sunday, May 20, 2012 a las 03:36:01AM +0900, rozhuk.im@gmail.com escribió:
> > My EeePC netbook shows for the two SSD:
> >
> > $ uname -a
> > FreeBSD tiny 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r226986: Tue Nov 1
> > 14:27:40 CET 2011 guru@caracas:/usr/obj/usr/src/sys/GENERIC i386
> > $ gpart show
> > => 63 7880481 ada0 MBR (3.8G)
> > 63 7880481 1 freebsd [active] (3.8G)
> >
> > => 63 31522113 ada1 MBR (15G)
> > 63 31522113 1 freebsd [active] (15G)
> >
> > => 0 7880481 ada0s1 BSD (3.8G)
> > 0 16 - free - (8.0k)
> > 16 7880465 1 freebsd-ufs (3.8G)
> >
> > => 0 31522113 ada1s1 BSD (15G)
> > 0 16 - free - (8.0k)
> > 16 31522097 1 freebsd-ufs (15G)
> >
>
> Do not use MBR (or manually do all to align).
> 63 - not 4k aligned.
Hi,
To create the above shown partition layout I have not used gpart(8); I
just said:
# fdisk -I /dev/ada0
# fdisk -B /dev/ada0
# bsdlabel -w ada0s1 auto
# bsdlabel -B ada0s1
changed partition "a" from "unused" to "4.2BSD" as partition type:
# setenv EDITOR /usr/bin/vi
# bsdlabel -e ada0s1
created the future root-filesystem on it
# newfs -m 0 -o space /dev/ada0s1a
The 2nd SSD was formated like this:
# dd if=/dev/zero of=/dev/ada1 count=2
# fdisk -I /dev/ada1
# newfs -m 0 -o space /dev/ada1s1a
# echo "/dev/ada1s1a /usr/local ufs rw,noatime 1 1" >> /etc/fstab
# mount /usr/local
What is wrong with this procedure?
Thanks
matthias
--
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120522061734.GA1210>
