LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-01-2011, 06:34 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
m$ recover partition messed up


My HP laptop has 10 partitions, 3 of which are NTFS because I couldn't get a refund on windows as my supplier was bankrupt. I left it 35 Gigs, and left the recovery partitions (17 Gigs) and installed linux.

Device Boot Start End Blocks Id System
/dev/sda1 1 4569 36700461 7 HPFS/NTFS
/dev/sda2 * 18235 19255 8187904 7 HPFS/NTFS
/dev/sda3 19255 19458 1626112 7 HPFS/NTFS
/dev/sda4 4570 18234 109764112+ 5 Extended
/dev/sda5 4570 4595 204800 83 Linux
/dev/sda6 5101 7091 15990784 83 Linux
/dev/sda7 7092 9591 20081216 83 Linux
/dev/sda8 9592 12592 24105500 83 Linux
/dev/sda9 12593 18234 45319332 83 Linux
/dev/sda10 4595 5100 4060394+ 82 Linux swap


Now I notice I can't boot the recovery image. A quick check showed the D: drive (sda2) was labelled as swap, and I sorted that with fdisk. Now it mounts as an ntfs in linux, but won't boot. When I go to testdisk, the results are ambiguous: It has a look at the disk, and asks "Will I back this up?" I nod the head, and I get the green screen, where sda2 is missing.

Has anyone been here and done this before? I don't want to go at it and do the wrong thing. How do you get both partitions bootable in windows world?

Last edited by business_kid; 01-01-2011 at 12:15 PM.
 
Old 01-01-2011, 08:09 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
If it was labelled as swap, is it possible that your Linux install used it as such, and so wrote stuff on it which would mess up the original NTFS filesystem? When you look at it in Linux, are all the file you would expect to be there actually there? And have you tried running repair commands from the Windows recovery console (I *think* it's "chkdsk -f" but you'll want to look that up - I need to go out in -2 minutes so I can't right now :S) Just a couple of thoughts...
 
1 members found this post helpful.
Old 01-01-2011, 10:32 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
/later

Well, I messed it up, and now have it back with all the partitions renumbered :-/. Now I get caught because grub doesn't boot - error 15. But I got far enough to get this update online.

FWIW, I always cockily mention That I always back up mbr & mbr1 with dd. I know I did, but I can't find then for love or money :-/.
 
Old 01-01-2011, 12:19 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Thanks Snark1994

I think the thing has survived reasonably well. The problem deteriorated to getting booted, trying to ressurect caelinux with weird errors, and eventually installing grub in slackware. I hate this boot stuff with a passion, but I think I got it. I'm going anyhow, and hibernating so it will be a while before I find out :-D. What a waste of an afternoon.
 
Old 01-02-2011, 10:04 AM   #5
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Ah, I never count an afternoon spent shouting "WHY DON'T YOU WORK, YOU *******!" at a computer wasted
 
Old 01-03-2011, 03:20 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322

I call that a highly wasted afternoon; computers are deaf and inanimate (sounding like Spock here , and I should have known what to do with it instead of tripping over my shoelaces. I also feel it is an error to get annoyed with an inanimate object - there's no malice.

NOW, I have a hibernation issue (rebuilt kernel to sort that), so I get to see what grub does.
It spits up a page of partitions and boot options which are all crap, and pointed in the wrong direction. I used grubconfig. I select the first one, (windows on sda1) and it throws me back to my own menu.lst which is fairly well ordered. Others just crap out (it's trying to boot off /home) I can't find this first file to fix it :-o

WTF?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidently deleted the linux partition(root partition) how to recover it? sanues Linux - Newbie 7 11-30-2009 01:55 PM
Laptop HDD messed up - can i recover the files somehow? brinstar Linux - Hardware 8 08-21-2007 01:02 AM
Messed up an LVM - is there a way to recover? BrianK Linux - General 3 05-09-2007 06:45 PM
Softraid 5 messed up. Pls help to recover Ossah Linux - Server 5 04-05-2007 10:52 AM
Messed up partition table and Windows' partition boot sector pyromithrandir Linux - General 32 04-08-2006 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:17 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
Open Source Consulting | Domain Registration