Re: SATA error while resume

From: Maciek Rutecki
Date: Sun Aug 19 2007 - 11:17:27 EST


Mark Lord pisze:

>
> Looks like a bad sector in the swap partition.
> You can probably repair it by using this sequence of commands:
>
> swapoff /dev/sdX <--- replace sdX with actual swap partition dev name
> sync
> cat /dev/zero > /dev/sdX
> mkswap /dev/sdX
> swapon /dev/sdX
>
> If it recurs after doing that, then it's time for a new drive.
>
> -ml
> -

rutek:/home/maciek# swapoff /dev/sda6
rutek:/home/maciek# sync
rutek:/home/maciek# cat /dev/zero > /dev/sda6
cat: bÅÄd zapisu: BÅÄd wejÅcia/wyjÅcia (write error, after few minutes,
probably sda6 is full)

rutek:/home/maciek# dd if=/dev/zero of=/dev/sda6
dd: zapis do `/dev/sda6': BÅÄd wejÅcia/wyjÅcia
5992177+0 przeczytanych recordÃw
5992176+0 zapisanych recordÃw
skopiowane 3067994112 bajtÃw (3,1 GB), 298,159 sekund, 10,3 MB/s
rutek:/home/maciek# mkswap /dev/sda6
Setting up swapspace version 1, size = 3067990 kB
no label, UUID=2061df6e-d385-4367-9a4c-c8431e57b73a
rutek:/home/maciek# swapon /dev/sda6


dmesg:
Adding 2996080k swap on /dev/sda6. Priority:-2 extents:1 across:2996080k

Also I try:
dd if==/dev/sda... of=/dev/null for all partitions
Test disk with bios utility and smartctl. Use autotest (bash shared
mapping and disktest). No errors/warnings. Only (sometimes) while system
resume from suspend to disk. Disk 10 months old...

Regards
--
Maciej Rutecki
http://www.unixy.pl


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/