View previous topic :: View next topic |
Author |
Message |
adramalech707 Apprentice
Joined: 06 Oct 2009 Posts: 236 Location: California, USA
|
Posted: Tue Dec 14, 2010 7:24 am Post subject: dropped laptop need help recovering root file system.. |
|
|
okay so of all the things i have done to my laptop this has to be the worse thing i have done....i dropped my laptop like 2 inches onto a desk at college, it slipped out of my hands....the laptop was on. well anyways i somehow managed to corrupt all my directories so i e2fsck and testdisk the /home /usr /boot and /swap to fix those...but the / filesystem seems to be not wanting to fix....i keep on trying different things like e2fsck, fsck....etc...and it doesn't like it because the partition is read-only...
this really sucks because i just had to replace the hdd in the laptop because the dang thing blew up the last scorpio in here... i really think next laptop i am going with a nice 200gbish ssd to not have these issues anymore....
any help or tips and tricks people have tried to make it work again....i would really like to not have to replace another hdd in less than 3 months! |
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Tue Dec 14, 2010 7:47 am Post subject: Re: dropped laptop need help recovering root file system.. |
|
|
adramalech707 wrote: | ... it doesn't like it because the partition is read-only... |
Why is / partition read only ?
Is it mounted automatically by init ? Do you mount it yourself ? Is it flagged ro in your fstab ? Which fs type is it ? |
|
Back to top |
|
|
DirtyHairy l33t
Joined: 03 Jul 2006 Posts: 608 Location: Würzburg, Deutschland
|
Posted: Tue Dec 14, 2010 9:02 am Post subject: |
|
|
If data got corrupted through the drop, I'd change the disk immediately, no matter how annoying the switch might be - if there is mechanical damage to the disk, it will most likely die beyond recovery quickly. Before doing anything, I'd create a disk dump to an USB or network drive via dd. You can then safely do your recovery work using the dump, without running any risk of corrupting it any more than it already is. If you want to get a hint about the disk's state, you can query the SMART attributes using smartctl, but, to reiterate, even in the unlikely event of it showing now damage, I'd switch the disk. |
|
Back to top |
|
|
adramalech707 Apprentice
Joined: 06 Oct 2009 Posts: 236 Location: California, USA
|
Posted: Tue Dec 14, 2010 5:41 pm Post subject: |
|
|
well i know it is most likely an issue with /etc/fstab/
what is wierd in systemrescuecd i can mount all partitions. i am going to change / to read and write permissions...well i tried chrooting won't let me...
and this is my fstab:
Code: |
/dev/sda1 /boot ext2 defaults,noatime 1 2
/dev/sda2 / ext4 noatime 0 1
/dev/sda3 none ext4 sw 0 0
/dev/sda5 /home ext4 defaults 0 0
/dev/sda6 /usr ext4 defaults 0 0
/dev/cdrom /mnt/cdrom auto noauto,user 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54824 Location: 56N 3W
|
Posted: Tue Dec 14, 2010 7:50 pm Post subject: |
|
|
adramalech707,
fsck can make things worse. Make an image of the drive before you do any more.
With your image safe and sound, boot a CD (or USB stick) and try fsck. You cannot fsck a mounted filesystem. Well, you can if you want but you will only do it once, so I'm at a bit of a loss to understand what is read only.
The filesystem to be checked is not mounted, so it can't be the filesystem and hard drives do not have hardware write protect switches.
Sight of dmeg, or the actual error message would be useful. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Bircoph Retired Dev
Joined: 27 Jun 2008 Posts: 261 Location: Moscow
|
Posted: Wed Dec 15, 2010 1:52 am Post subject: |
|
|
DirtyHairy wrote: | If data got corrupted through the drop, I'd change the disk immediately, no matter how annoying the switch might be - if there is mechanical damage to the disk, it will most likely die beyond recovery quickly. Before doing anything, I'd create a disk dump to an USB or network drive via dd. You can then safely do your recovery work using the dump, without running any risk of corrupting it any more than it already is. If you want to get a hint about the disk's state, you can query the SMART attributes using smartctl, but, to reiterate, even in the unlikely event of it showing now damage, I'd switch the disk. |
I seconded for this, but I recommend to use ddrescue instead of plain dd. This will help to extract damaged sectors if any.
Anyway immediately backup an image of your disk. Hard drive itself may be tested using mhdd and badblocks. If no problems will be found, you may use it further. _________________ Per aspera ad astra! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|