You are not logged in.

#1 2014-01-12 13:11:40

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

[SOLVED] Samsung SSD refusing discart mount option:

I have a SAMSUNG MMCRE64G5MXP-0VB in my Intel Atom 330 based system. In the fstab I supplied the option discard to all partition in this device. In dmesg I find that discard is not supported. Is discard not enabled for this SSD ?

[Sun Jan  5 18:22:30 2014] sd 7:0:0:0: [sde] 125045424 512-byte logical blocks: (64.0 GB/59.6 GiB)
[Sun Jan  5 18:22:30 2014] sd 7:0:0:0: [sde] Write Protect is off
[Sun Jan  5 18:22:30 2014] sd 7:0:0:0: [sde] Mode Sense: 00 3a 00 00
[Sun Jan  5 18:22:30 2014] sd 7:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[Sun Jan  5 18:22:30 2014]  sde: sde1 sde2 sde3 sde4
[Sun Jan  5 18:22:30 2014] sd 7:0:0:0: [sde] Attached SCSI disk
[Sun Jan  5 18:22:34 2014] EXT4-fs (sde3): mounted filesystem with ordered data mode. Opts: (null)
[Sun Jan  5 18:22:35 2014] EXT4-fs (sde3): re-mounted. Opts: discard
[Sun Jan  5 18:22:35 2014] Adding 265068k swap on /dev/sde2.  Priority:-1 extents:1 across:265068k SSFS
[Sun Jan  5 18:22:36 2014] EXT4-fs (sde1): mounting with "discard" option, but the device does not support discard
[Sun Jan  5 18:22:36 2014] EXT4-fs (sde1): mounted filesystem with ordered data mode. Opts: discard
[Sun Jan  5 18:22:36 2014] EXT4-fs (sde4): mounting with "discard" option, but the device does not support discard
[Sun Jan  5 18:22:36 2014] EXT4-fs (sde4): mounted filesystem with ordered data mode. Opts: discard

output from hdparm -I

/dev/sde:

ATA device, with non-removable media
        Model Number:       SAMSUNG MMCRE64G5MXP-0VB
        Serial Number:      YC1F93G940SY940C0086
        Firmware Revision:  VBM1801Q
Standards:
        Used: ATA/ATAPI-7 T13 1532D revision 1
        Supported: 7 6 5 4
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  125045424
        LBA48  user addressable sectors:  125045424
        Logical/Physical Sector size:           512 bytes
        device size with M = 1024*1024:       61057 MBytes
        device size with M = 1000*1000:       64023 MBytes (64 GB)
        cache/buffer size  = unknown
        Nominal Media Rotation Rate: Solid State Device
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 128, current value: 0
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
                Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    64-bit World wide name
           *    WRITE_UNCORRECTABLE_EXT command
           *    Segmented DOWNLOAD_MICROCODE
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Host-initiated interface power management
           *    Phy event counters
                DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
                frozen
        not     expired: security count
                supported: enhanced erase
        6min for SECURITY ERASE UNIT. 6min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50000f0056424431
        NAA             : 5
        IEEE OUI        : 0000f0
        Unique ID       : 056424431
Checksum: correct

Last edited by theking2 (2015-01-03 13:05:21)


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#2 2014-01-12 13:27:26

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: [SOLVED] Samsung SSD refusing discart mount option:

Unfortunately the samsung site is a gigantic mess; but it seems a firmware-upgrade might be available

What is the output of smartctl -i /dev/sde ?

Offline

#3 2014-03-20 20:00:41

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] Samsung SSD refusing discart mount option:

=== START OF INFORMATION SECTION ===
Device Model:     SAMSUNG MMCRE64G5MXP-0VB
Serial Number:    YC1F93G940SY940C0086
LU WWN Device Id: 5 0000f0 056424431
Firmware Version: VBM1801Q
User Capacity:    64,023,257,088 bytes [64.0 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA/ATAPI-7 T13/1532D revision 1
Local Time is:    Thu Mar 20 21:00:01 2014 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#4 2014-03-20 20:21:04

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Samsung SSD refusing discart mount option:

Try:

# hdparm -I /dev/sda | grep TRIM

if it returns:

*	Data Set Management TRIM supported (limit 1 block)

then your drive should support a "discard" option in the fstab.
See the wiki page on SSDs:
https://wiki.archlinux.org/index.php/SSD#TRIM

Last edited by Head_on_a_Stick (2014-03-20 20:26:28)


Jin, Jîyan, Azadî

Offline

#5 2015-01-03 13:05:01

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: [SOLVED] Samsung SSD refusing discart mount option:

Head_on_a_Stick wrote:

Try:

# hdparm -I /dev/sda | grep TRIM

if it returns:

*	Data Set Management TRIM supported (limit 1 block)

then your drive should support a "discard" option in the fstab.
See the wiki page on SSDs:
https://wiki.archlinux.org/index.php/SSD#TRIM

It doesn't so I believe the Samsung SSD does not support trim.


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

Board footer

Powered by FluxBB