LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-14-2004, 03:01 AM   #1
quarter_ethan
LQ Newbie
 
Registered: Jul 2004
Distribution: SuSE personal 9.1
Posts: 4

Rep: Reputation: 0
dual boot problem -- partition tables bad?


let me start by saying I'm a total newbie, to get that out of the way. without any further ado, let me begin. I tend to go on, so I'll try and have a summary at the end if you wanna skip the story part.

//BEGIN STORY SEGMENT

I was (am?) interested in linux. my friend recommended SuSE, and the website advertised that their installation would put in the partitions that linux needed without erasing data. as shady as this proposition sounded, I went ahead. now, my windows will not boot.

I had two partitions _before_ installing it: one with the windows functionality and all my installed programs, the other full of music, images, movie files, etc. I split up the latter partition to install linux. not being of a very patient bent, I shuddered in the face of the daunting task of backing up so many gigs of data. since I had much of it on cd anyway (I had reformatted a couple months earlier), I entrusted the fate of my files to the makers of SuSE.

a mistake? time will tell.

I'm still getting used to working in linux, and after overcoming all kinds of problems (including my keyboard somehow being recognized as a german variant and spewing all manner of nonsense when I tried to type) I kinda know my way around it. my next priority before perfecting things, though, is getting my files and my windows back.

by the way, I know charging into this was a foolish move. spare me your admonitions. I was eager to get started.

//END STORY SEGMENT

to recap: I had two partitions, one with windows, one with files. I installed suse linux, splitting up the file partition, and now my windows won't boot.

mounting the windows partition is easy, and I can see that my old C: (windows + installed programs) is intact. mounting my old D: (music, imagery, etc.) is problematic. but, from what I've read, ntfs is tough, and I'm holding out hope my data is recoverable.

my suspicion is this partition is screwed up. I know nothing of partitions, but I gather that the partition table is invalid and I must fix it.

when I try to boot windows, it goes nowhere fast and tells me this:

Code:
root (hd0,0)
 Filesystem type unknown, partition type 0x7
chainloader +1
when I used ntfsresize to figure it out, it told me /dev/hda5 doesn't have a valid ntfs. according to the NTFS Resize FAQ's (can't link to it on account of the 5 post rule) this also suggests partition trouble.

I did fdisk -l /dev/hda5, like that FAQ told me to, and got this output:

Code:
Disk /dev/hda5: 24.1 GB, 24184774656 bytes
16 heads, 63 sectors/track, 46861 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk /dev/hda5 doesn't contain a valid partition table
this language of partition tables is new and frightening to me. I implore you, oh venerable linux community, lend aid to your newest convert! help me recover my files, if possible, and get my windows up and running without the pain of tracking down my xp cd and reformatting.

I'll burden you with one more output. I used cfdisk to analyze the partition table, and this is what I got.

Code:
Partition Table for /dev/hda
         ---Starting---      ----Ending----    Start     Number of
 # Flags Head Sect Cyl   ID  Head Sect Cyl     Sector    Sectors
-- ----- ---- ---- ---- ---- ---- ---- ---- ----------- -----------
 1  0x80    1    1    0 0x07   15   63 1023          63    20482812
 2  0x00   15   63 1023 0x0F   15   63 1023    20482875    57657285
 3  0x00    0    0    0 0x00    0    0    0           0           0
 4  0x00    0    0    0 0x00    0    0    0           0           0
 5  0x00   15   63 1023 0x07   15   63 1023         693    47235888
 6  0x00   15   63 1023 0x82   15   63 1023           1     1552257
 7  0x00   15   63 1023 0x83   15   63 1023           1     8868321

although this whole console thing is still foreign to me, I'm ready and willing to venture into it 20 more times if there's more information I should collect. I realize that I could be way off here, so any advice is appreciated. thanks to anyone who even considers helping me.
 
Old 07-14-2004, 05:00 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
That 'fdisk' command wasn't completely correct, /dev/hda5 is a partition not a disk.
#fdisk -l /dev/hda
But cfdisk is ok too, although it doesn't give you correct info about everything - I do wonder if it reads the disk correctly?
You have one primary partition, one extended which holds 3 logical volumes - 1 NTFS 2 Linux
So far, so good.

Now I need to know your boot-configuration.
Start Linux, I think SuSe has some GUI-tool for checking boot config.
I want to know what bootloader you use (grub, right?) and what /boot/grub/menu.lst looks like (if it is grub)
 
Old 07-14-2004, 09:01 AM   #3
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Rep: Reputation: 15
I am having the same exact problem. using GRUB. I haven't tried fdisk, but I am getting the same error message when trying to boot my Windows partition. I had windows only installed on the disk, ran SuSE 9.1 Pro install, chose default options except for changing the partition size for SuSE and now XP won't boot. I used the XP CD to create an 8GB partition for itself, left the rest blank for the SuSE install.

I thought surely if I deleted everything and started over it would fix it. I booted with SytemrescueCD and ran QTparted, deleted all the partitions on the disk. Next I reinstalled XP. XP booted and ran fine by itself. Installed SuSE again, and now I have the same problem as before. This time GRUB has 2 windows sections (Windows1 and Windows2) even though there is only 1 Windows partition. Why does it have 2? Wouldn't XP have overwritten the boot sector during its install? Could it be that GRUB picked up my second hard drive (NTFS partition) and thinks it is bootable? During the first XP install windows decided to change the drive letters around on it's own and make what was the C: drive the E: drive and vice versa. For the second XP install I unhooked the second drive, but had it hooked up when I installed SuSE.

Last edited by Oxyacetylene; 07-14-2004 at 09:10 AM.
 
Old 07-14-2004, 08:08 PM   #4
quarter_ethan
LQ Newbie
 
Registered: Jul 2004
Distribution: SuSE personal 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
I'm proud to say that I'm posting this from windows, and my problem is (somewhat) solved. I posted this problem on a couple other forums, and one of them came up with a link. I guess I never found it because SuSE's search tool is so lousy.

http://portal.suse.com/sdb/en/2004/0...booting91.html

My Windows now boots up no problem. Sadly, it doesn't recognize the partition with all my files, so I'm gonna try a couple things to salvage it before I format the thing. Still have to tread lightly so I don't wipe my whole linux in the process (though I'm starting to think that wouldn't be a bad thing). Anyway, that's not an issue for you since I take it you already reformatted anyway. Good luck.
 
Old 07-15-2004, 01:29 AM   #5
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
I must say I'm amazed of all the problems SuSe creates!
I have used several distro's, SuSe is really weird. It's very much "Microsoft in Linux".
I know people have different likes, but my advice is to put any distro but SuSe on your computer be it a laptop or not. If you really want something like Suse - use the original, it's called "Windows".
 
Old 07-15-2004, 08:15 AM   #6
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Rep: Reputation: 15
Awesome link! I am trying that tonight if I get a chance! SuSE might have some weird stuff about it, but I still like it. What other linux distro offers such a complete package for Windows/Linux domain integration or migration? Novell directory services running on Linux, Ximian Evolution email client that now has the connector for free to connect to MS Exchange server, SuSE OpenExchange server which can have MS Outlook clients connect to it. WINErack if they release a new version....
 
Old 07-16-2004, 06:35 AM   #7
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
If you like SuSe, good for you!
I just got fedup with it completely, not only because of what I wrote above. It is also so extremely bad at detecting hardware - it is the only distro that can't use my modem (besides Debian, of course, but this is a "feature" not a bug..), says nic is installed and working when it isn't, won't install my soundcard properly & I can only change it with their GUI-tool removing and reinstalling. Also lots of programs on the menu that doesn't work...
Running SuSe, I felt like being taken back to that Windows I fled from some 3-4 years ago!

But I choose my way, you choose yours. That's what Linux is about!
 
Old 07-16-2004, 08:28 AM   #8
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Rep: Reputation: 15
The link posted above fixed my boot problem! SuSE is one of the few distros that have worked with my Cisco 350 card out of the box. I'm still pretty new so I'm not familiar with compiling drivers for whatever I need. Installing software from the disto CD's is easy, but installing stuff not already packaged for it can be a hassle. I hope it isn't that bad for other distros. I eventually want to learn Debian, but for now this gives me a starting point.
 
Old 07-16-2004, 05:03 PM   #9
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Gentlemen,
For you to boot a windows partition from grub, you need to set in the "/boot/grub/grub.conf" the following
Code:
title =<My windows partition>
       rootnoverify (hd0,0)
       chainloader +1
       makeactive
The partition specification is "rootnoverify" because grub doesn't know it and doesn't need to know it.

Good luck!
 
Old 07-16-2004, 08:51 PM   #10
Oxyacetylene
Member
 
Registered: Apr 2004
Location: Greensboro, NC, USA
Distribution: Debian
Posts: 134

Rep: Reputation: 15
I had tried modifying mine like the example you give after reading previous threads on the topic, but it was the driver update that fixed it along with the fixpart=1 option it describes. I'm up and running again!
 
Old 07-17-2004, 05:22 AM   #11
ece30675
LQ Newbie
 
Registered: Jul 2004
Posts: 23

Rep: Reputation: 15
I've editted the grub.conf before, but I can't remember how?? I can view the file in the Root Midnight Commander, but how do I edit it?

I was pointed to this thread by osvaldomarques. But my problem isn't quite the same. Any suggestions are greatfully welcomed.

http://www.linuxquestions.org/questi...hreadid=205954

Thanks everyone
 
Old 07-17-2004, 02:20 PM   #12
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi ece30675,

To born is hard but is worth. I never flamed about editors, but when I first introduced myself into the *nix things, in 1989, I felt myself lost. In dos world, I had the "sidekick" editor which was an wonderful tool and it was an extension of my fingers. So, first, I thought to write a version of it for the xenix I was starting to use. But, after some thinking, I came to a conclusion which I couldn't bring my editor to all *nix someday I would touch in my life. So, I started to learn "vi". I know today there are several wonderful editors which many people love and hate but, in all their machines there is a copy of "vi" lost and forgotten in their directories. And, if there is "vi" there, I'm home! Today, 15 years after starting with it, I don't know yet all the commands, I'm not an expert in it, but I can do anything very fast with little repetition of commands.
So, I suggest you start with it. I did google for "vi tutorial" and it returned me 3,310,000 results so it's too easy to learn it. If you need assistance you can count on me.
 
  


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
problem with Microsoft updates after dual boot partition maparus Linux - Newbie 4 11-22-2005 09:50 PM
dual boot partition problem blizunt7 Fedora 6 09-20-2005 12:42 AM
dual boot xp/gentoo (selecting boot for each partition) saif__r Linux - Newbie 8 08-13-2005 10:23 AM
Win2000 trying to see ext3 partition as FAT32-- dual-boot problem guybrush3322 Debian 3 03-16-2005 02:34 PM
the good the bad and the ugly on dual boot oracsol Linux - Newbie 4 12-10-2003 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:05 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