Mailinglist Archive: opensuse-kernel (87 mails)

< Previous Next >
Re: [opensuse-kernel] SSD / filesystem / TRIM
  • From: Greg Freemyer <greg.freemyer@xxxxxxxxx>
  • Date: Mon, 30 Aug 2010 15:14:29 -0400
  • Message-id: <AANLkTinNt83RYu+ssRHzLT=E+Nk5kTk4Q+sfxQk5SP4+@xxxxxxxxxxxxxx>
(Putting Mark Lord and linux-ide in cc:)


Thomas has tried to use / hdparm v9.28 to trim a SSD and it
failed. See below:

This is with the openSUSE 2.6.34 kernel.

On Sun, Aug 29, 2010 at 5:32 AM, Thomas Hertweck <Thomas.Hertweck@xxxxxx> wrote:

I have now installed openSUSE 11.3 on a OCZ Vertex 2E SSD. I used a
standard ext4 filesystem, the mount options at the moment are
"rw,noatime,acl,user_xattr". Unfortunately, doesn't work at all.

$> --verbose --commit /dev/sdb1 Linux SATA SSD TRIM utility, version 2.6, by Mark Lord. This tool is DANGEROUS! Please read and understand /usr/share/doc/packages/hdparm/README.wiper before going any further.
fsmode2: fsmode=read-write
/: fstype=ext4
freesize = 45338732 KB, reserved = 453387 KB
Preparing for online TRIM of free space on /dev/sdb1 (ext4 mounted
read-write at /).
This operation could silently destroy your data.  Are you sure (y/N)? y
Creating temporary file (44885345 KB)..
Syncing disks..
Beginning TRIM operations..
get_trimlist=/sbin/hdparm --fibmap WIPER_TMPFILE.13467
trimming 89770696 sectors from 1493 ranges
FAILED: Input/output error
Removing temporary file..
Syncing disks..

No joy, obviously. So what can I do?

The motherboard, by the
way, is an Asus P6X58D-E, the SSD is attached to one of the 3GB/s SATA
ports (Intel chip). There's also a 6GB/s SATA port (Marvell chip) on the
board, but I couldn't find Linux support for that (that's why I haven't
used this port).

Well,... See above.


Mark, any thoughts why it didn't work. Have you added anything
relevant to hdparm since v.9.28 that would help?

To unsubscribe, e-mail: opensuse-kernel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kernel+help@xxxxxxxxxxxx

< Previous Next >