You are not logged in.
Hello everybody,
i disassambly my computer to solve a heat problem, and when i assembly again and try to boot the system i get an error in my /home partition, i am from two day searching in forum and asking in irc, but i can found a way to repair it
/dev/sda5 it's my root partition if i want i can mount it from a live cd
/dev/sda6 it's my home partition, i cant mount it, see the logs
the first partition ntfs i can mount, and if i start windows from grub it's run okey
- fdisk -l /dev/sda
- mount -t ext4 /dev/sda6 /mnt2/
- dmesg
> http://pastebin.com/ix3PbriM
- sfdisk -d /dev/sda
> http://pastebin.com/8YHA0FCp
- testdrive
> http://pastebin.com/TZv3QY5C
- smartctl -a /dev/sda
> http://pastebin.com/4dpXzQBu
i think that i will finish re-partitioning my logical space that it's where the linux system is, but i would like can mount my /home directory first to do a backup :1 , because in all the forum that i found people have this error on the system instalation them they re-create the partition to solve it
any idea? or suggestion?
Thanks you so much
Last edited by xava (2013-07-16 19:11:59)
Offline
What, exactly, is the error/problem?
Moving to Newbie Corner.
Offline
i can mount my /home partition,
per example if i want do it from a live cd:
mint@mint ~ $ sudo mount /dev/sda6 /mnt2
mount: wrong fs type, bad option, bad superblock on /dev/sda6,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or soand in consequence can't boot my system
Offline
Have you tried fsck'ing the bad partitions?
Also, is this an Arch or Mint install?
Offline
my system it's arch, but to try to solve it i boot with a mint live cd
i think that almost solved it, not all.. but now i can enter with testdisk and see my files and copy them to backup,
if i can't restore the logical partition table i will backup (now that i can) and re-install the system
people of ##hardware in freenode help me with this:
smartctl -t short /dev/sdathis run a test, later with
smartctl -a /dev/sdai see in the report that was sector with read access problem, then for this sector i run
hdparm --yes-i-know-what-i-am-doing --write-sector XXXXXXXXXXX /dev/sdawhere XXXXXXXX was the sector with problem,
later to do it like in 20 sectors, i ran testdisk again and now i can have access to the files but still i can't mount the /home partition
i lieave it for some future reference
Offline
You are getting hardware read errors -- you can see these at the end of your dmesg output. These could be caused by a failing hard disk, by a loose cable, by a bad cable, by a failing disk controller, by a driver bug, or perhaps by other causes. The most likely causes are cabling and a failing hard disk, though, and your smartctl output does show a hint of a start of a problem (note the positive, albeit small, Raw_Read_Error_Rate value). In theory, SMART is supposed to catch problems before they manifest in the sorts of problems you're seeing. In practice, that sometimes doesn't work as it should; I've had drives produce flaky behavior while SMART utilities still say they're OK. Thus, you might want to consider replacing the hard disk. At the very least, you should keep your eye on it and replace it if things start getting worse.
As to your more immediate problem, IMHO the best solution is to first do a byte-level copy from your current disk to another one. That way, you can work on one disk and be able to restore data to the current state if you make things worse. With the backup in place, use fsck to try to fix the filesystem. If that doesn't work, you could try deleting the partition with fdisk and then use TestDisk to try to recover it. (This course of action is based on the assumption that the partition table is damaged but the filesystem is OK.) If that fails, you'll need to use PhotoRec or some other tool to extract your files, then re-create the filesystem and copy the files back.
Offline
yes, the strange was that my system was working perfect, but later of the disassembly the partition get broke :S
Doing that i post before, and later rebooting, arch start in rescue mode told me that the partition checksum it's not correct,
then i run manually
fsck -fy /dev/sda6reboot and worked,
i believe that the damage sector was part of the partition table
Thanks you
Offline
An fsck command doesn't touch the partition table. To get to /dev/sda6 requires reading just three sectors on the hard disk, and if any of them were completely unreadable, /dev/sda6 wouldn't appear as a valid partition at all. Of course, it's conceivable that one of these sectors was damaged in a way that made the read unreliable but not impossible, but overall it looks to me like you had a bad sector in a critical filesystem data structure.
In any event, I strongly recommend keeping a careful watch on that disk by running smartctl periodically and looking for increasing numbers of read errors or remapped sectors. If those numbers start going up, replace the drive immediately. Disk failure often involve a cascading series of worsening failures, and they can degrade rapidly and suddenly.
Offline