Marking bad sectors

Brian ad44 at cityscape.co.uk
Sat Mar 6 15:24:05 UTC 2010


On Sat 06 Mar 2010 at 08:16:11 -0600, Jim Byrnes wrote:

> That result is:
> 
> ubuntu at ubuntu:~$ sudo fdisk -l /dev/sda
> 
> Disk /dev/sda: 64.6 GB, 64558448640 bytes
> 255 heads, 63 sectors/track, 7848 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x00041f28
> 
>     Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               1         131     1052226   83  Linux
> /dev/sda2             132        7587    59890320   83  Linux
> /dev/sda3            7588        7848     2096482+   5  Extended
> /dev/sda5            7588        7848     2096451   82  Linux swap / Solaris

Looks ok. You indicated the first 1 GB is free space so you could try
making an ext2 filesystem again on /dev/sda1:

mke2fs /dev/sda1

or

mke2fs -c /dev/sda1

to check for badblocks before the filesystem is created.  Add the -j
option if you want an ext3 journal.

Then try e2fsck and e2fsck -c.




More information about the ubuntu-users mailing list