From: Maciek Rutecki <maciej.rutecki@gmail.com>
To: Mark Lord <liml@rtr.ca>
Cc: Linux-kernel <linux-kernel@vger.kernel.org>,
htejun@gmail.com, linux-ide@vger.kernel.org,
linux-acpi@vger.kernel.org, rjw@sisk.pl
Subject: Re: SATA error while resume
Date: Sun, 19 Aug 2007 17:16:40 +0200 [thread overview]
Message-ID: <46C85ED8.5080801@gmail.com> (raw)
In-Reply-To: <46C852DE.8040701@rtr.ca>
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
next prev parent reply other threads:[~2007-08-19 15:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-19 9:12 SATA error while resume Maciek Rutecki
2007-08-19 10:45 ` Tejun Heo
2007-08-19 14:25 ` Mark Lord
2007-08-19 15:16 ` Maciek Rutecki [this message]
2007-08-19 15:49 ` Tejun Heo
2007-08-19 16:25 ` Maciek Rutecki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46C85ED8.5080801@gmail.com \
--to=maciej.rutecki@gmail.com \
--cc=htejun@gmail.com \
--cc=liml@rtr.ca \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@sisk.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).