LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2013, 11:22 PM   #1
Tridibesh
LQ Newbie
 
Registered: Jan 2010
Location: India
Distribution: Opensuse 13.2 x86_64
Posts: 27

Rep: Reputation: 1
Unable to install OS on hard disk after failed to format linux partition from Windows


Hi,
I am using lenovo B560 laptop with 500GB HDD. I have two OS(Opensuse 12.3 & Windows7) installed in the hard disk. Suddenly my linux became slow and started blocking me to see the login screen and login via GUI. So I thought of reformatting the linux root "/" partition from windows and reinstall it. So I open the disk partitions from the windows disk manager and tried to delete one of the linux partition. But it did not delete and hanged. So I cancelled the process and came out of the disk manager. But after that when I rebooted the system, I got a grub rescue shell saying unknown file system error. It is not allowing me to boot windows also. I have tried to reinstall linux(opensuse 12.3) or boot from live CD. But both are not loading saying like " Killing process" and IO error. If I try to boot from Windows 8 DVD, it is hanging to the welcome screen and there is no progress if I keep it like that for 1 hour also. I did not try with Win7 as I don't have that as of now.
If I remove the HDD and try to boot from live CD it is booting.
I tried to connect the HDD putting into external HDD case to the live linux session. But when ever I am connecting the same, it is getting hanged. If I connect the HDD to some other windows machine putting inside the eternal HDD case, the driver is not installing properly and it is not getting detected. All my important data is residing inside a windows NTFS partition of 400GB and I want to restore that from that HDD.
Please note: The linux partitions were formatted with BTRFS and it was LVM partition except the /boot.
Partition table was as below:-


swap
windows system partition of 200 MB
/boot - ext4 - non LVM
/ - btrfs - LVM -- tried to format this partition only
/home - btrfs - lvm
/var- btrfs - lvm
/tmp - btrfs - lvm
/windows/windows_C -ntfs
/windows/windows_D - ntfs :-- All data is stored here and it was untouched.

Please help me how to restore the data from D-drive.
Thanks in advance.
 
Old 09-15-2013, 06:11 AM   #2
qrange
Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable, amd64
Posts: 809

Rep: Reputation: 32
sounds like a hardware problem. first check SMART status of that hdd from LiveCD or another computer. you can use gnome-disk-utility or a bunch of other free programs. then, I'd try to rescue with (free) 'photorec'. (if you're using windows, then zeroassumptionrecovery or getdataback are good too)
 
1 members found this post helpful.
Old 09-20-2013, 09:05 AM   #3
Tridibesh
LQ Newbie
 
Registered: Jan 2010
Location: India
Distribution: Opensuse 13.2 x86_64
Posts: 27

Original Poster
Rep: Reputation: 1
Hi Grange thanks for your suggestion.
I have already tried to boot from live cd. But if I keep the HDD connected to the laptop, live cds are not booting. For linux I am getting IO Error type of warning and kernel panic at last. Can you refer me any other live CD. By the way I tried with Opensuse 12.3 and Gparted live CD.
 
Old 09-21-2013, 08:00 AM   #4
qrange
Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable, amd64
Posts: 809

Rep: Reputation: 32
I'd try to find replacement 'electronics' (PCB) from identical drive. better yet, get a professional to salvage data (might be expensive, though). check the connectors and cables again, if you're lucky the problem is there.

its a very bad idea to keep important data on laptop, without backup. hdds are fragile, sensitive (to movement, esp. while spinning).
 
Old 09-21-2013, 08:33 AM   #5
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia 3, Debian Wheezy, Maemo, Linux Mint 14.
Posts: 200

Rep: Reputation: Disabled
Quote:
Originally Posted by qrange View Post
I'd try to find replacement 'electronics' (PCB) from identical drive. better yet, get a professional to salvage data (might be expensive, though). check the connectors and cables again, if you're lucky the problem is there.

its a very bad idea to keep important data on laptop, without backup. hdds are fragile, sensitive (to movement, esp. while spinning).
testdisk in GNU/Linux is a fine tool for this purpose for "do it yourself" people..
 
Old 09-21-2013, 01:16 PM   #6
qrange
Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable, amd64
Posts: 809

Rep: Reputation: 32
well, photorec is part of testdisk, but it can't help in drastic cases. he needs to somehow fix hardware first, if its faulty.
 
Old 09-21-2013, 04:01 PM   #7
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia 3, Debian Wheezy, Maemo, Linux Mint 14.
Posts: 200

Rep: Reputation: Disabled
Quote:
Originally Posted by qrange View Post
well, photorec is part of testdisk, but it can't help in drastic cases. he needs to somehow fix hardware first, if its faulty.
Thats not exactly easy. Then he would need to get the spin disk out of the hard drive enclosed metal case and read it with another case or equipment.

Most faults with hard drives are with the readhead, yeah?

Last edited by zeebra; 09-22-2013 at 12:25 PM.
 
Old 09-22-2013, 11:30 AM   #8
qrange
Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable, amd64
Posts: 809

Rep: Reputation: 32
probably, on laptops an external drives, mechanical impact can cause heads to crash on platters. but I doubt it would have described symptoms. most you can do ,without special equipment, is replace PCB.

some have opened discs, and claim it worked afterwards even without cleanroom conditions. I wouldn't advise that. perhaps they live on Arctic or something.
 
Old 09-22-2013, 11:41 AM   #9
hilyard
Member
 
Registered: Jan 2010
Location: Inland PNW
Distribution: Lite | siduction
Posts: 291

Rep: Reputation: 66
Suggestion One: stay away from LVM and btrfs as a Newbie.
Suggestion Two: buy an enclosure for your hard drive and only connect it to your laptop as a USB device.
Suggestion Three: Use gparted to delete all partitions except your three Win7 partitions.

I sincerely hope you have a Win7 Boot Disk made and are able to boot Win7 once the above is done.
 
Old 09-22-2013, 11:51 PM   #10
Tridibesh
LQ Newbie
 
Registered: Jan 2010
Location: India
Distribution: Opensuse 13.2 x86_64
Posts: 27

Original Poster
Rep: Reputation: 1
I have downloaded the testdisk and also bought an external HDD case. But problem is that if I connect the HDD it is detecting in the BIOS but it is not detecting in the windows though it is installing the drivers successfully in windows. The disk is not showing in windows Disk management. One more thing if I connect the disk with laptop the disk is rotating and the red light in external cover is glowing.
@Hilyard: I have already tried the gparted. But it is not booting if I keep the disk connected. If I connect the disk after booting from gparted, my laptop is freezing and it is not responding.
 
Old 09-23-2013, 12:01 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
1. Boot from a Live-CD with the faulty disk disconnected.
2. Connect the disk and see if it gets detected (run dmesg to see what happens after you connected the disk).
3. If the disk is detected use ddrescue to make an image of the partition with your data. Do not make any other rescue attempts durectly on the faulty disk, it is likely that this will decrease your chances to recover your data.
4. Make further rescue attempts on the image you created in step 3.
5. If this really is important data consider to let professionals do their job.
 
Old 09-23-2013, 12:16 AM   #12
Tridibesh
LQ Newbie
 
Registered: Jan 2010
Location: India
Distribution: Opensuse 13.2 x86_64
Posts: 27

Original Poster
Rep: Reputation: 1
I tried to boot from Live CD and then connect the HDD to the machine. But when ever I am connecting the disk, the machine is getting slow or become hanged.
 
Old 09-23-2013, 12:24 AM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
In that case, if it is not possible with your system to connect the machine without having problems I would recommend to contact a professional data recovery institute.
 
Old 09-24-2013, 02:15 AM   #14
qrange
Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable, amd64
Posts: 809

Rep: Reputation: 32
can you hear/feel it spinning?
does it make unusual noise? if so, you're SOL.
 
Old 09-25-2013, 12:40 AM   #15
Tridibesh
LQ Newbie
 
Registered: Jan 2010
Location: India
Distribution: Opensuse 13.2 x86_64
Posts: 27

Original Poster
Rep: Reputation: 1
Yes I can feel it is spinning as it is vibrating. There is no unusual sound or noise also.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install OS on hard disk after failed to format linux partition from Windows Tridibesh LQ Job Marketplace [Archive] 3 09-15-2013 01:49 AM
How to format and partition exsiting hard disk vlsi Linux - Enterprise 1 04-02-2008 10:44 PM
Installing linux from windows hard disk partition ? capricorn80 Linux - General 1 01-16-2007 12:44 PM
how to format hard disk partition using it's superblock using C program sharathksin Programming 9 04-30-2006 04:22 AM
Install Linux on Windows and Partition Hard Disk sgaum Linux - Laptop and Netbook 1 03-02-2005 10:59 PM


All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration