LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 09-16-2005, 06:08 AM   #1
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Linux saved my butt again.


After installing Windows XP sp2 on my laptop It no longer would hibernate when I closed the lid. Yes I did check the Power Options in Control Panel, it just would not work as before sp2. Also it would often sit there for hours without the fan ever coming on, and eventually would just shutdown (I suspect from thermal warning or something.) So I decided to remove sp2, arrrgh! Needless to say I then had a Windows XP installation which would not boot. OK thats no problem for myself but my wife is taking some online college courses and she doesn't believe me when I tell her that OO.org will create the document formats she needs. "The instructor said I have to use Microsoft Office, they even gave me these cd's at the book store", she hands me her Office/XP/Powerpoint CD's (educational license.) So I'm not going to argue with her, she obviously knows what she is talking about

So I prepare to do the old system restore. Of course the manufactures rescue process uses Norton ghost which quite unintelligently wipes the FAT/Partition table. But I also know that it doesn't format the drive and therefore my Linux partitions will still be there. So I boot into Linux and do a quick:
fdisk -l /dev/hda >hda.txt
I burn (I thought) this file and a backup of my home directory and the wifes, to CD so I can later restore everything (she'll kill me if I lose her homework!) I do the system restore, (it worked on the third try) boot into windows, all is good. I stick the cd into the drive and double click the icon and stare at a blank folder, why didn't I verify the cd was good?!

So now I have no way to restore my partitions. I didn't write down the information because I thought I had it burned on a cd. If I don't repartition the drive exactly as it was before I'll only end up with so much garbage, and I'll be spending the next week in the dog house.

Luckly the file hda.txt was still on the hard drive, I just needed to find it somehow. The answer turned out to be quite simple. I booted a Mepis cd and did this:
cat /dev/hda|grep --binary-files=text "\/dev\/hda"
Searching a 40G drive can take a while, but eventually I spotted some familiar text scrolling up the screen.

Sure enough, when I repartition and check, there are my wifes data! Woot! Yes another satisfied Linux customer.
 
Old 09-22-2005, 06:26 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Original Poster
Rep: Reputation: 47
I just noticed there is a program gpart, guess what it does. Gpart will scan an entire drive and try to guess the partitioning of the drive based on plugin modules. It recognizes most Linux partitions, as well as DOS, VFAT, NTFS and more.

So if you ever have to do a system restore and lose your partitioning information gpart may help get your Linux partitions back.
 
Old 10-01-2005, 12:20 AM   #3
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
That's the main (false) argument against OpenOffice: It won't support windows formats. WRONG.

Nice story btw, thanks for sharing

-A
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Scripting Issue Kicking my Butt !!! steve_f60 Linux - General 1 04-29-2005 04:00 PM
Linux saved my download Boffy LinuxQuestions.org Member Success Stories 1 02-28-2005 07:16 PM
Where is my file being saved, linux IO sopiaz57 Linux - Security 2 01-20-2005 09:55 AM
Building a Linux Terminal Server Saved Me! RobertP LinuxQuestions.org Member Success Stories 2 02-15-2004 04:14 PM
Why is Linux with 64Mb RAM so butt slow? Noerr Linux - Distributions 60 07-11-2002 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 11:28 PM.

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
Open Source Consulting | Domain Registration