proper newfs options for SSD disk
Matthias Apitz
guru at unixarea.de
Tue May 22 06:17:41 UTC 2012
El día Sunday, May 20, 2012 a las 03:36:01AM +0900, rozhuk.im at 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 at 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 at 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
More information about the freebsd-hackers
mailing list