LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ext2fs_mkdir: Attempt to read block from filesystem resulted in short read while creating root dir (http://www.linuxquestions.org/questions/linux-newbie-8/ext2fs_mkdir-attempt-to-read-block-from-filesystem-resulted-in-short-read-while-creating-root-dir-921021/)

TheIndependentAquarius 12-29-2011 04:43 AM

ext2fs_mkdir: Attempt to read block from filesystem resulted in short read while creating root dir
 
Code:

linux-dopx:/home/anisha # fdisk -l
...
...
Disk /dev/sdb: 31.6 GB, 31625052160 bytes
64 heads, 32 sectors/track, 30160 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3e03a5b1

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1      30160    30883824  83  Linux
linux-dopx:/home/anisha #

Code:

linux-dopx:/home/anisha # mount -t ext3 /dev/sdb1 /mnt/tempo/
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

linux-dopx:/home/anisha # mount /dev/sdb1 /mnt/tempo/
mount: you must specify the filesystem type

linux-dopx:/home/anisha # mount /dev/sdb /mnt/tempo/
mount: you must specify the filesystem type
linux-dopx:/home/anisha #

Please guide.

Code:

linux-dopx:/home/anisha # uname -a && cat /etc/issue
Linux linux-dopx 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200 x86_64 x86_64 x86_64 GNU/Linux
Welcome to openSUSE 11.3 "Teal" - Kernel \r (\l).


linuxlover.chaitanya 12-29-2011 04:46 AM

I dont want to underestimate your knowledge, just want to ask if you used mke2fs to create the partition and format it?

TheIndependentAquarius 12-29-2011 04:47 AM

I used this: mkfs.ext3 /dev/sdb and then fdisk -a to add the partition table.

TheIndependentAquarius 12-29-2011 05:01 AM

Scroll and see the RED code below:
Code:

linux-dopx:/home/anisha # mkfs.ext3 /dev/sdb1
mke2fs 1.41.11 (14-Mar-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1933312 inodes, 7720956 blocks
386047 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
236 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Writing inode tables: done                           
ext2fs_mkdir: Attempt to read block from filesystem resulted in short read while creating root dir

Code:

linux-dopx:/home/anisha # fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x12bb12ba

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        523    4192256  82  Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2  *        523        8355    62917632  83  Linux
/dev/sda4            8356      30401  177084495    f  W95 Ext'd (LBA)
/dev/sda5            8356      10966    20972826  83  Linux
/dev/sda6          10967      30401  156111606  83  Linux

Disk /dev/sdb: 31.6 GB, 31625052160 bytes
64 heads, 32 sectors/track, 30160 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3e03a5b1

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1      30160    30883824  83  Linux

linux-dopx:/home/anisha # mount /dev/sdb1 /mnt/tempo/
mount: you must specify the filesystem type

linux-dopx:/home/anisha # mount -t ext3 /dev/sdb1 /mnt/tempo/
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

linux-dopx:/home/anisha #


Cedrik 12-29-2011 05:13 AM

Format to ext3 failed, maybe see if there are hw errors with :
smartctl -a /dev/sdb

TheIndependentAquarius 12-29-2011 05:16 AM

---------------------EDIT

Got it.
Code:

linux-dopx:/home/anisha/Desktop/makeFiles # smartctl -a /dev/sdb -d scsi
smartctl 5.39.1 2010-01-28 r3054 [x86_64-unknown-linux-gnu] (openSUSE RPM)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

Device: JetFlash Transcend 32GB  Version: 1.00
Device type: disk
Local Time is: Thu Dec 29 16:58:52 2011 IST
Device does not support SMART

Error Counter logging not supported
Device does not support Self Test logging

linux-dopx:/home/anisha/Desktop/makeFiles #


TheIndependentAquarius 12-29-2011 05:20 AM

edited the above post.

segmentation_fault 12-29-2011 05:30 AM

Looks like a hw error to me. Have you tried to create some other filesystem, or do it on another computer/card reader?

TheIndependentAquarius 12-29-2011 05:34 AM

No, but just looked up this thread: http://ubuntuforums.org/showthread.php?t=837867
They too are saying that this is a hardware error.

Well, we've sent it for a replacement now. :(

linuxlover.chaitanya 12-29-2011 06:52 AM

Did this drive work with windows as well? What kind of errors did you see on windows? I know windows is bad at error reporting when it is actually needed, but still. Asking just for information as finding out hardware fault is with such devices is not very easy and sometimes you can never be sure if the hardware has failed.

TheIndependentAquarius 12-29-2011 07:11 AM

Sorry, can't post any errors now, have already sent it for replacement.


All times are GMT -5. The time now is 01:15 PM.