Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

First of all, I am pretty surprised my usb flash device supports trim:

sudo  hdparm -I /dev/sdb | grep 'Model\|TRIM' 

gives me:

Model Number:       SanDisk SSD CZ80 32GB                   
   *    Data Set Management TRIM supported (limit 8 blocks)
   *    Deterministic read data after TRIM

The usb stick is formatted with ext4. So according to hdparm, trim should work. However when I switch to the device and run:

sudo fstrim ./

it gives me:

fstrim: ./: FITRIM ioctl failed: Operation not supported

So what could be the issue here? Does hdparm lie about trim support, or could there be an other issue? Who to ask to debug such issues? (Info: fstrim works very well with my internal ssd).

Full output of hdparm -I /dev/sdb can be found here: http://paste.ubuntu.com/6944144/

share|improve this question
    
only ext4 supports trim so what is the current formatting of the usb disc? –  Rinzwind Feb 16 at 16:48
    
you are wrong: btrfs also supports trim. Apart from that I have stated "The usb stick is formatted with ext4" –  GEO Feb 16 at 16:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.