[bglug] formattare correttamente ssd ...

Giovanni manzoni@hardelettrosoft.com
Dom 4 Mar 2012 15:15:09 CET


Ciao, ho tentato invado di formattare il mio ssd da 120gb per 
raggiungere i dati dichiarati dal costruttore.

Corsair dichiara 500mb/s circa in lettura e scrittura, io ho fatto i 
tentativi sotto riportati ma niente da fare, al max sono arrivato a 360 
mb/s in lettura. come posso fare ?

il disco è un Corsair force series 3 120Gb , collegato a duna skeda 
madre con controller sata6 , intel i7 970

ecco le mie prove


GPARTED BASED

xfs 120gb
----------------------
2 mib free
111.79gib
3.46mib

-----------

sudo hdparm -t /dev/sdh

/dev/sdh:
  Timing buffered disk reads: 930 MB in 3.01 seconds = 309.42 MB/sec
server@server-System-Product-Name:/media/155d3571-ecd4-46fe-bd94-3277a112081a/cf$ 
sudo hdparm -t /dev/sdh

/dev/sdh:
  Timing buffered disk reads: 922 MB in 3.00 seconds = 306.99 MB/sec
server@server-System-Product-Name:/media/155d3571-ecd4-46fe-bd94-3277a112081a/cf$ 
sudo hdparm -t /dev/sdh

/dev/sdh:
  Timing buffered disk reads: 874 MB in 3.00 seconds = 291.03 MB/sec

---------

sudo fdisk -lu cylinder /dev/sdh

Disk /dev/sdh: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00038722

    Device Boot Start End Blocks Id System
/dev/sdh1 4096 234434559 117215232 83 Linux
server@server-System-Product-Name:/$

-------------------

PRIMA PROVA
--------------------
Link: 
http://www.ocztechnologyforum.com/forum/showthread.php?77769-A-Simple-How-To-on-Partitioning-and-Alignment-on-GNU-Linux-using-fdisk 
[^ 
<http://www.ocztechnologyforum.com/forum/showthread.php?77769-A-Simple-How-To-on-Partitioning-and-Alignment-on-GNU-Linux-using-fdisk>]


sudo fdisk -H 32 -S 32 /dev/sdh
p
n
p
1
2048
+232783871
w

sudo hdparm -t /dev/sdh

/dev/sdh:
  Timing buffered disk reads: 1090 MB in 3.00 seconds = 362.93 MB/sec
server@server-System-Product-Name:/$ sudo hdparm -t /dev/sdh

----------------

SECONDA PROVA
--------------------

sudo fdisk -H 32 -S 32 /dev/sdd
p
n
p
1
4096
+232783871
w

sudo hdparm -t /dev/sdd

/dev/sdd:
  Timing buffered disk reads: 890 MB in 3.01 seconds = 296.15 MB/sec
server@server-System-Product-Name:~$ sudo hdparm -t /dev/sdd

--------------

TERZA PROVA
----------------

sudo dd if=/dev/zero of=/dev/sdd count=1 bs=1k
sudo fdisk -H 224 -S 56 /dev/sdd
p
n
p
1
2048
+232783871
w

sudo hdparm -t /dev/sdd

/dev/sdd:
  Timing buffered disk reads: 860 MB in 3.00 seconds = 286.43 MB/sec

info dal disko
---------------------
sudo hdparm -i /dev/sdd

/dev/sdd:

  Model=Corsair Force 3 SSD, FwRev=1.3.3, SerialNo=12026504000008953860
  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
  RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
  BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=16
  CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234441648
  IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
  PIO modes: pio0 pio1 pio2 pio3 pio4
  DMA modes: mdma0 mdma1 mdma2
  UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
  AdvancedPM=yes: unknown setting WriteCache=enabled
  Drive conforms to: unknown: ATA/ATAPI-2,3,4,5,6,7

  * signifies the current active mode
-----------

QUARTA PROVA
-----------------------

hdparm -i /dev/sdd
sudo gparted -> delete all partition
sudo apt-get install lvm2 dmsetup mdadm
sudo pvcreate --dataalignmentoffset 7s /dev/sdd
sudo pvcreate --dataalignmentoffset 7s /dev/sdd
sudo vgcreate wd2tsata /dev/sdd
sudo lvcreate --name vm_storage --size 111G wd2tsata


LINK: http://linux.die.net/man/8/mkfs.xfs [^ 
<http://linux.die.net/man/8/mkfs.xfs>]

sudo mkfs.xfs -b size=4096 -s size=4096 -N /dev/wd2tsata/vm_storage
meta-data=/dev/wd2tsata/vm_storage isize=256 agcount=4, agsize=7274496 blks
          = sectsz=4096 attr=2, projid32bit=0
data = bsize=4096 blocks=29097984, imaxpct=25
          = sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=14208, version=2
          = sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0


sudo hdparm -t /dev/sdd
dev/sdd:
  Timing buffered disk reads: 896 MB in 3.01 seconds = 298.13 MB/sec
server@server-System-Product-Name:~$ sudo hdparm -t /dev/sdd


sudo hdparm -t /dev/dm-0
/dev/dm-0:
  Timing buffered disk reads: 842 MB in 3.01 seconds = 280.16 MB/sec

QUINTA PROVA
--------------------

tip:delete partition table
sudo dd if=/dev/zero of=/dev/sdd count=1 bs=1k

tip:create partition table
Link: https://wiki.archlinux.org/index.php/Solid_State_Drives [^ 
<https://wiki.archlinux.org/index.php/Solid_State_Drives>]
sudo fdisk /dev/sdd
o
n
p
1
2048
+232783871


tip: after creating the partition, I realigned it.
link: 
http://www.osnews.com/story/22872/Linux_Not_Fully_Prepared_for_4096-Byte_Sector_Hard_Drives 
[^ 
<http://www.osnews.com/story/22872/Linux_Not_Fully_Prepared_for_4096-Byte_Sector_Hard_Drives>]
b
64
w

sudo hdparm -t /dev/sdd -> 300/315 mb/s


---------------

sudo dd if=/dev/zero of=/dev/sdd count=1 bs=1k
sudo fdisk -H 224 -S 56 /dev/sdd
o
n -> new
p -> primary
1 -> partition 1
2048
+232783871
w

sudo fdisk -lu cylinder /dev/sdd

Disk /dev/sdd: 120.0 GB, 120034123776 bytes
124 heads, 24 sectors/track, 78777 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9c205ded

    Device Boot Start End Blocks Id System
/dev/sdd1 2048 232785919 116391936 83 Linux

sudo hdparm -t /dev/sdd
/dev/sdd:
  Timing buffered disk reads: 910 MB in 3.00 seconds = 303.09 MB/sec

sudo mkfs.xfs -N /dev/sdd -> non riesce a formattare , resource busy -> 
riavvio
sudo mkfs.xfs -N /dev/sdd -> ok

sudo gparted -> riporta allineamento al settore 0 !!!

-----------

sudo dd if=/dev/zero of=/dev/sdd count=1 bs=1k
sudo fdisk -H 224 -S 56 /dev/sdd
o
n -> new
p -> primary
1 -> partition 1
2048
+232783871
w

sudo gparted -> xfs -> riporta allineamento al settore 2048

sudo gedit /etc/fstab

UUID=3d14f25c-cbcb-43ac-8076-f83873e5a3c0 /media/ssd xfs 
defaults,noatime,discard 0 3

reboot

sudo hdparm -t /dev/sdd
/dev/sdd:
  Timing buffered disk reads: 1090 MB in 3.00 seconds = 362.81 MB/sec

-- 
HARDELETTROSOFT di Manzoni Giovanni
VAT. IT03473560161 http://www.hardelettrosoft.com
Viale Dei Caduti 2/bis, Almenno San Salvatore 24031 (BG) ITALY
Mobile: 334 5638256 Tel. : 035 644074

-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.linux.it/pipermail/bglug/attachments/20120304/137be212/attachment.htm>


Maggiori informazioni sulla lista bglug