Re: btrfs-related kernel oops due to media error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi,
>
> One of my disks, partitioned into a single btrfs partition, is showing
> media errors. The problem is that these errors lead to kernel panic from
> btrfs - that make the filesystem unusable until reboot - and therefore
> it is very hard for me to do a full backup of the data prior to changing
> the disk.
> My current kernel is 3.2.0-8-generic from Ubuntu/precise (based on linux
> 3.2-final) but I quickly tested and get the same error with an older 3.1
> kernel (and I can probably reproduce it with a vanilla kernel if
> necessary).
> I assume that the filesystem should not panic even in case of a media
> error... Is there any procedure I can follow / patch I could apply to
> salvage my data while ignoring media errors ?

I don't know about btrfs, but writing the sector with hdparm
--write-sector will usually cause it to be remapped. You can use dd or
another tool to read the entire disk to find out if there are more bad
sectors.

Niels


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


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux