Can partition/format drive but not mount it !

  • Please provide some information about the hard- and software used.


    Box type: DM7025S-160
    GUI (enigma1/enigma2): enigma 2
    Firmware version:200606231443


    your question
    I just received two boxes. One has a Seagate drive (ST3160xx) that could be initialized from the GUI. No problem.


    The other, has a strange unknown drive, cannot find what brand it is (without opening the box), but I tried by all means to get it working with no results. In a short, I can fdisk or sfdisk it, mkfs.ext3 it, no complaints whatsoever, but when I try to mount it it is not recognized. I can even read from it with dd by the way.


    A few logs below for those speaking linux at my level or better. Any help appreciated, thanks.


    ====================================


    root@dm7025:~# hdparm -I /dev/ide/host0/bus0/target0/lun0/disc


    /dev/ide/host0/bus0/target0/lun0/disc:


    ATA device, with non-removable media
    Model Number: RT2160022ABE
    Serial Number: 4JR9BCF3
    Firmware Revision: 8.01
    Standards:
    Used: ATA/ATAPI-6 T13 1410D revision 2
    Supported: 6 5 4 3
    Configuration:
    Logical max current
    cylinders 16127 65279
    heads 16 1
    sectors/track 63 63
    --
    CHS current addressable sectors: 4128449
    LBA user addressable sectors: 251657983
    LBA48 user addressable sectors: 312581808
    device size with M = 1024*1024: 152627 MBytes
    device size with M = 1000*1000: 160041 MBytes (160 GB)
    ... etc...


    =========================================


    After deleting all partitions with fdisk, I start from clean state :


    root@dm7025:~# sfdisk -l /dev/ide/host0/bus0/target0/lun0/disc


    Disk /dev/ide/host0/bus0/target0/lun0/disc: 19457 cylinders, 255 heads, 63 sectors/track
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0


    Device Boot Start End #cyls #blocks Id System
    /dev/ide/host0/bus0/target0/lun0/part1 0 - 0 0 0 Empty
    /dev/ide/host0/bus0/target0/lun0/part2 0 - 0 0 0 Empty
    /dev/ide/host0/bus0/target0/lun0/part3 0 - 0 0 0 Empty
    /dev/ide/host0/bus0/target0/lun0/part4 0 - 0 0 0 Empty


    =========================================


    Then I partition it, no hassle, just one partition, no swap :


    root@dm7025:~# sfdisk /dev/ide/host0/bus0/target0/lun0/disc
    Checking that no-one is using this disk right now ...
    OK


    Disk /dev/ide/host0/bus0/target0/lun0/disc: 19457 cylinders, 255 heads, 63 sectors/track


    sfdisk: ERROR: sector 0 does not have an msdos signature
    /dev/ide/host0/bus0/target0/lun0/disc: unrecognized partition table type
    Old situation:
    No partitions found
    Input in the following format; absent fields get a default value.
    <start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s>
    Usually you only need to specify <start> and <size> (and perhaps <type>).


    /dev/ide/host0/bus0/target0/lun0/part1 :
    /dev/ide/host0/bus0/target0/lun0/part1 0+ 19456- 19457- 156288352 83 Linux
    /dev/ide/host0/bus0/target0/lun0/part2 :
    /dev/ide/host0/bus0/target0/lun0/part2 0 - 0 0 0 Empty
    /dev/ide/host0/bus0/target0/lun0/part3 :
    /dev/ide/host0/bus0/target0/lun0/part3 0 - 0 0 0 Empty
    /dev/ide/host0/bus0/target0/lun0/part4 :
    /dev/ide/host0/bus0/target0/lun0/part4 0 - 0 0 0 Empty


    ==========================================


    Then I make the FS, using ext3 :


    root@dm7025:~# mkfs.ext3 -v -T largefile /dev/ide/host0/bus0/target0/lun0/part1
    mke2fs 1.38 (30-Jun-2005)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    152704 inodes, 39072088 blocks
    1953604 blocks (5.00%) reserved for the super user
    First data block=0
    1193 block groups
    32768 blocks per group, 32768 fragments per group
    128 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872


    Writing inode tables: done
    Creating journal (32768 blocks): done
    Writing superblocks and filesystem accounting information: done


    This filesystem will be automatically checked every 32 mounts or
    180 days, whichever comes first. Use tune2fs -c or -i to override.


    ===========================================


    All seems well right ? but can't mount it at all :


    root@dm7025:~# mount -t ext3 /dev/ide/host0/bus0/target0/lun0/disc /media/hdd/
    mount: Mounting /dev/ide/host0/bus0/target0/lun0/disc on /media/hdd failed: Invalid argument


    root@dm7025:~# logread
    Jun 27 15:27:27 dm7025 user.err kernel: VFS: Can't find ext3 filesystem on dev hda.


    DOH ! what's going on here :frowning_face:


    Cheers
    Clipper

  • Doh, sorry I probably messed up my copy/paste or something. Of course I tried to mount the partition, not the disc :smiling_face:


    root@dm7025:~# mount -t ext3 /dev/ide/host0/bus0/target0/lun0/part1 /media/hdd
    mount: Mounting /dev/ide/host0/bus0/target0/lun0/part1 on /media/hdd failed: Invalid argument
    root@dm7025:~# logread
    Jun 27 15:57:30 dm7025 auth.info login[1590]: root login on `pts/1'
    Jun 27 15:58:07 dm7025 user.err kernel: VFS: Can't find ext3 filesystem on dev hda1.

  • Hmm, dunno what's going wrong there.


    Did you give "smartctl -a /dev/ide/host0/bus0/target0/lun0/" a chance already?


    The "Model Number: RT2160022ABE" seems somewhat odd to me. Maybe the disc's electronics (or the box) is faulty.

  • Zitat

    Originally posted by DieMade
    Hmm, dunno what's going wrong there.


    Did you give "smartctl -a /dev/ide/host0/bus0/target0/lun0/" a chance already?


    Mmh, I don't have the smartmontools... can I install them somehow ?


    root@dm7025:~# smartctl
    -sh: smartctl: not found
    root@dm7025:~# /bin/busybox smartctl
    smartctl: applet not found
    root@dm7025:~# find / -name smartctl
    root@dm7025:~#


    Zitat


    The "Model Number: RT2160022ABE" seems somewhat odd to me. Maybe the disc's electronics (or the box) is faulty.


    Well, hdparms gives no error and seems ok with the hardware. In addition, the part numbers of Seagate are like ST3160, so RT2160 is quite close. Maybe a chinese counterfeit ? :smiling_face:

  • "ipkg install smartmontools" should do the trick if you dreambox can reach the outer world.


    But it depends on the image you are using. The default images have the correct entries in /etc/ipkg/official-feed.conf to reach our feed server.

  • Thanks for the info. I tried to fix this disk using latest Enigma, and finally I have installed latest Gem*, that's why I was missing smartmontools install. Anyway i got it installed now. Here is the result. Doesn't talk much to me, but I see it doesn't have that strange drive model in its database either... I have sent an email to the reseller to ask what's that strange brand...


    root@dm7025:/etc/ipkg# smartctl -a /dev/ide/host0/bus0/target0/lun0/disc
    smartctl version 5.33 [mipsel-unknown-linux-gnu] Copyright (C) 2002-4 Bruce Allen
    Home page is http://smartmontools.sourceforge.net/


    Warning! Drive Identity Structure error: invalid SMART checksum.
    === START OF INFORMATION SECTION ===
    Device Model: RT2160022ABE
    Serial Number: 4JR9BCF3
    Firmware Version: 8.01
    User Capacity: 160,041,885,696 bytes
    Device is: Not in smartctl database [for details use: -P showall]
    ATA Version is: 6
    ATA Standard is: ATA/ATAPI-6 T13 1410D revision 2
    Local Time is: Tue Jun 27 20:19:39 2006 UTC
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled


    Warning! SMART Attribute Data Structure error: invalid SMART checksum.
    Warning! SMART Attribute Thresholds Structure error: invalid SMART checksum.
    === START OF READ SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED


    General SMART Values:
    Offline data collection status: (0x82) Offline data collection activity
    was completed without error.
    Auto Offline Data Collection: Enabled.
    Self-test execution status: ( 0) The previous self-test routine completed
    without error or no self-test has ever
    been run.
    Total time to complete Offline
    data collection: (15556) seconds.
    Offline data collection
    capabilities: (0x5a) No SMART execute Offline immediate.
    Auto Offline data collection on/off support.
    Suspend Offline collection upon new
    command.
    Offline surface scan supported.
    Self-test supported.
    No Conveyance Self-test supported.
    Selective Self-test supported.
    SMART capabilities: (0x0003) Saves SMART data before entering
    power-saving mode.
    Supports SMART auto save timer.
    Error logging capability: (0x01) Error logging supported.
    General Purpose Logging supported.
    Short self-test routine
    recommended polling time: ( 1) minutes.
    Extended self-test routine
    recommended polling time: ( 110) minutes.


    SMART Attributes Data Structure revision number: 10
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x000e 072 072 006 Old_age Always - 43527556
    3 Spin_Up_Time 0x0002 096 096 000 Old_age Always - 0
    4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 18
    5 Reallocated_Sector_Ct 0x0032 100 100 036 Old_age Always - 0
    7 Seek_Error_Rate 0x000e 100 253 030 Old_age Always - 8198
    9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 16
    10 Spin_Retry_Count 0x0012 100 100 096 Old_age Always - 0
    12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 24
    194 Temperature_Celsius 0x0022 056 064 000 Old_age Always - 56
    195 Hardware_ECC_Recovered 0x001a 072 072 000 Old_age Always - 43527556
    197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
    200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
    202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0


    Warning! SMART ATA Error Log Structure error: invalid SMART checksum.
    SMART Error Log Version: 1
    No Errors Logged


    Warning! SMART Self-Test Log Structure error: invalid SMART checksum.
    SMART Self-test log structure revision number 1
    No self-tests have been logged. [To run self-tests, use: smartctl -t]



    Warning! SMART Selective Self-Test Log Structure error: invalid SMART checksum.
    SMART Selective self-test log data structure revision number 1
    SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
    Selective self-test flags (0x0):
    After scanning selected spans, do NOT read-scan remainder of disk.
    If Selective self-test is pending on power-up, resume after 0 minute delay.

  • Well... ok but why does hdparm seem to just like this drive then ?


    Anyway, I'll wait for the reseller's answer. I think he has put some cheap disk in there.


    Thanks for your precious help in working out more precisely what the issue was !


    root@dm7025:/var# hdparm -I /dev/ide/host0/bus0/target0/lun0/disc


    /dev/ide/host0/bus0/target0/lun0/disc:


    ATA device, with non-removable media
    Model Number: RT2160022ABE
    Serial Number: 4JR9BCF3
    Firmware Revision: 8.01
    Standards:
    Used: ATA/ATAPI-6 T13 1410D revision 2
    Supported: 6 5 4 3
    Configuration:
    Logical max current
    cylinders 16127 65279
    heads 16 1
    sectors/track 63 63
    --
    CHS current addressable sectors: 4128449
    LBA user addressable sectors: 251657983
    LBA48 user addressable sectors: 312581808
    device size with M = 1024*1024: 152627 MBytes
    device size with M = 1000*1000: 160041 MBytes (160 GB)
    Capabilities:
    LBA, IORDY(can be disabled)
    bytes avail on r/w long: 4 Queue depth: 1
    Standby timer values: spec'd by Standard
    R/W multiple sector transfer: Max = 16 Current = ?
    Recommended acoustic management value: 128, current value: 0
    DMA: not supported
    PIO: pio0 pio1 pio2 pio3 pio4
    Cycle time: no flow control=240ns IORDY flow control=120ns
    Commands/features:
    Enabled Supported:
    * READ BUFFER cmd
    * WRITE BUFFER cmd
    * Host Protected Area feature set
    * Look-ahead
    * Write cache
    * Power Management feature set
    Security Mode feature set
    * SMART feature set
    * FLUSH CACHE EXT command
    * Mandatory FLUSH CACHE command
    * Device Configuration Overlay feature set
    * 48-bit Address feature set
    * DOWNLOAD MICROCODE cmd
    * General Purpose Logging feature set
    * SMART self-test
    * SMART error logging
    Security:
    Master password revision code = 65278
    supported
    not enabled
    not locked
    not frozen
    not expired: security count
    not supported: enhanced erase
    HW reset results:
    CBLID- above Vih
    Device num = 0 determined by the jumper
    Checksum: correct

  • And even an 18 hours long self test did work :-/ really strange


    root@dm7025:~# smartctl -l selftest /dev/ide/host0/bus0/target0/lun0/disc
    smartctl version 5.33 [mipsel-unknown-linux-gnu] Copyright (C) 2002-4 Bruce Allen
    Home page is http://smartmontools.sourceforge.net/


    Warning! Drive Identity Structure error: invalid SMART checksum.
    Warning! SMART Attribute Data Structure error: invalid SMART checksum.
    Warning! SMART Attribute Thresholds Structure error: invalid SMART checksum.
    === START OF READ SMART DATA SECTION ===
    SMART Self-test log structure revision number 1
    Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
    # 1 Extended offline Completed without error 00% 18 -

  • I'd suggest you'll wait for the reseller's answer.


    Guessing around won't lead to anything - at least the "invalid SMART checksum" does not sound sooo good to me :winking_face:

  • Reply from the reseller :


    Zitat

    Thanks for your mail. We only build the 7025 with seagate drives, so if you open the box you should see a seagate drive. I think the drive is faulty, do you want to send me the drive and then I can exchange it for you ? --Alekos


    Isn't that great when it's so simple ? :face_with_tongue: I love my reseller.