Cant format 1TB USB drive ?
JD
jd1008 at gmail.com
Sun Oct 3 18:49:51 UTC 2010
On 10/03/2010 08:17 AM, Linuxguy123 wrote:
> On Sun, 2010-10-03 at 10:23 -0400, Sam Varshavchik wrote:
>> Linuxguy123 writes:
>>
>>> ext2fs_mkdir: Attempt to read block from filesystem resulted in short
>>> read while creating root dir
>> Two possibilities:
>>
>> 1) The drive's partition table is fibbing slightly about the drive's size.
>> Check /var/log/messages when attaching the drive, to see what they say. Try
>> creating a partition one cylinder shorter in size.
>>
>> 2) The drive is a brick.
> I kinda doubt its a brick.
>
> I re partitioned it with one less cylinder as follows.
>
> ===========================================================================
> # fdisk /dev/sdc
>
> WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
> switch off the mode (command 'c') and change display units to
> sectors (command 'u').
>
> Command (m for help): p
>
> Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
> 255 heads, 63 sectors/track, 121601 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: 0x609682be
>
> Device Boot Start End Blocks Id System
> /dev/sdc1 1 121601 976760001 83 Linux
>
> Command (m for help): d
> Selected partition 1
>
> Command (m for help): p
>
> Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
> 255 heads, 63 sectors/track, 121601 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: 0x609682be
>
> Device Boot Start End Blocks Id System
>
> Command (m for help): w
> The partition table has been altered!
>
> Calling ioctl() to re-read partition table.
> Syncing disks.
>
> # fdisk /dev/sdc
>
> WARNING: DOS-compatible mode is deprecated. It's strongly recommended
> to
> switch off the mode (command 'c') and change display units to
> sectors (command 'u').
>
> Command (m for help): n
> Command action
> e extended
> p primary partition (1-4)
> p
> Partition number (1-4): 1
> First cylinder (1-121601, default 1):
> Using default value 1
> Last cylinder, +cylinders or +size{K,M,G} (1-121601, default 121601):
> 121600
>
> Command (m for help): p
>
> Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
> 255 heads, 63 sectors/track, 121601 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: 0x609682be
>
> Device Boot Start End Blocks Id System
> /dev/sdc1 1 121600 976751968+ 83 Linux
>
> Command (m for help): w
> The partition table has been altered!
>
> Calling ioctl() to re-read partition table.
> Syncing disks.
>
> ================================================================================
>
> Then I tried formatting it.
>
> # mkfs -text4 /dev/sdc1
> mke2fs 1.41.10 (10-Feb-2009)
> Filesystem label=
> OS type: Linux
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> Stride=0 blocks, Stripe width=0 blocks
> 61054976 inodes, 244187992 blocks
> 12209399 blocks (5.00%) reserved for the super user
> First data block=0
> Maximum filesystem blocks=0
> 7453 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, 7962624, 11239424, 20480000, 23887872, 71663616,
> 78675968,
> 102400000, 214990848
>
> Writing inode tables: done
> ext2fs_mkdir: Attempt to read block from filesystem resulted in short
> read while creating root dir
>
> ==============================================================================
>
> This operation threw a kernel error:
>
> Package: kernel
> Latest Crash: Sun 03 Oct 2010 09:13:56 AM
> Command: not_applicable
> Reason: WARNING: at fs/fs-writeback.c:581 writeback_inodes_wb
> +0x1ad/0x35b()
> Comment: None
> Bug Reports:
>
> $ uname -a
> Linux localhost.localdomain 2.6.34.7-56.fc13.i686.PAE #1 SMP Wed Sep 15
> 03:27:15 UTC 2010 i686 i686 i386 GNU/Linux
>
> What now ?
>
>
>
Sounds like the drive has some bad blocks???
Can you look in /var/log/messages to see if there are
some kernel messages about some I/O errors on the drive?
More information about the users
mailing list