can't boot Mint or XP, fdisk-l below

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

can't boot Mint or XP, fdisk-l below

Postby alanmzifa on Wed Jun 11, 2008 1:11 pm

Hi, installed Mint 5. Previously had Mint 4 dual boot with XP off separate drives. Ran into problems when upgraded.

Can't boot directly into either now. Error, 17 or error 13.
Set up is Mint on an IDE drive, XP on a SATA drive. I had this set up so that if Mint drive failed all I'd have to do was unplug it and work using the XP drive.

fdisk-l reports....

mint@mint ~ $ sudo fdisk -l

Disk /dev/sda: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00bd00bd

Device Boot Start End Blocks Id System
/dev/sda1 * 1 7165 57552831 83 Linux
/dev/sda2 7166 7476 2498107+ 5 Extended
/dev/sda5 7166 7476 2498076 82 Linux swap / Solaris

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x65a5c086

Device Boot Start End Blocks Id System
/dev/sdb1 1 38913 312568641 7 HPFS/NTFS

I've tried fixmbr with the windows XP disc to see if that could salvage the XP install and I'd really not like to have to build that up again even though most backed up. Fixmbr didn't work. Mint was a fresh install so no problem over writing that if necessary.

Can someone translate fdisk above and suggest some steps? Thanks.
alanmzifa
Level 1
Level 1
 
Posts: 15
Joined: Sat Jan 19, 2008 5:37 am
Location: Belfast, Northern Ireland

Linux Mint is funded by ads and donations.
 

Re: can't boot Mint or XP, fdisk-l below

Postby 67GTA on Wed Jun 11, 2008 2:33 pm

I would try reinstalling grub. Boot a live CD. Open a terminal and run
Code: Select all
sudo grub
This will drop you into a grub prompt. Run these two commands one at a time.
Code: Select all
root (hd0,0)
Code: Select all
setup (hd0)
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
User avatar
67GTA
Level 6
Level 6
 
Posts: 1301
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: can't boot Mint or XP, fdisk-l below

Postby alanmzifa on Wed Jun 11, 2008 3:05 pm

Thanks for the reply!

While I was waiting for someone to offer advice I downloaded supergrubdisk and fiddled.

Here's where I am now.

When my IDE drive (Mint) is unplugged I get error 21 and can't boot. The disks were set up to boot IDE (Mint) then SATA (XP).
The bios said "veryfying DMI pool data" and halted.

When I replugged the IDE (Mint) and selected SATA drive (XP) to boot first GRUB loaded and gave me the Mint and XP options, either of which I can boot into.

Does this mean (and apologies for any stupidity from here on) that GRUB is on the SATA drive and had overwritten XP's MBR ?

I'd like each drive to boot without the other connected (as was the case originally) but also to boot when both are plugged in.
Does this make sense and can you understand from the above (and let me know) where GRUB and MBR are?

thanks

Do you need fdisk -l again or menu.lst?

I don't want to try what you suggested until someone has reviewed what I've posted above.

thanks
alanmzifa
Level 1
Level 1
 
Posts: 15
Joined: Sat Jan 19, 2008 5:37 am
Location: Belfast, Northern Ireland

Re: can't boot Mint or XP, fdisk-l below

Postby blues-guy on Sun Jun 15, 2008 12:33 am

Its good to know that I'm not the only one with these problems, not that knowledge helps :roll:

( see my post "Mint 5 and mix of IDE and SATA HDs" viewtopic.php?f=46&t=13472)

I see that there is now an entry in the WIKI re UUIDs

http://www.linuxmint.com/wiki/index.php ... _a_problem

though it doesnt mention problems re having a mix of IDE and SATA hds

A possible alternative is to try installing Lilo instead of Grub I believe, though I havent managed that yet.

At present I'm installing DSL 4.2 ( rather than download the latest version) as it doesnt have these problems ( at least so far).with Grub and installing lilo is an option.
blues-guy
Level 2
Level 2
 
Posts: 58
Joined: Sun Dec 30, 2007 11:52 pm

Re: can't boot Mint or XP, fdisk-l below

Postby Nessa on Sun Jun 15, 2008 9:33 pm

It looks like GRUB is in your SATA drive. I too have chosen to keep everything that's microsoft in a separate hard drive that is able to boot by itself. Given the situtation, I'd remove the IDE drive and make sure that the XP drive works properly. In the XP Recovery console, use "FIXMBR" and "FIXBOOT". Get XP working first. Once that's done, connect IDE drive and run "root (hd0,0)" and "setup (hd0)" in the Grub prompt.
I want a balance between tweaking my OS and actually being able to use it.
Nessa
Level 1
Level 1
 
Posts: 29
Joined: Wed Jun 11, 2008 3:45 pm
Location: Philippines

Re: can't boot Mint or XP, fdisk-l below

Postby alanmzifa on Mon Jun 16, 2008 4:29 am

Nessa, thanks for the reply.

I got it sorted out yesterday and think I stumbled upon a solution along the lines of what you'd suggested.

I'm dual booting but from 2 separate drives, Mint 5 on the IDE and XP on the SATA.

I was getting errors for both Oses and it wouldn't boot to either. Fixmbr from XP's recovery console wouldn't fix the MBR. Oh, irony!
I found a piece of software online that would from http://www.dtidata.com. It correctly identified the SATA drive as a bootable drive so I unflagged and reflagged it as I suspected that's where one error was. SATA then booted XP but ignored the IDE drive so I knew MBR was fixed.
I re-installed Mint on the IDE but manually set sda rather than any specific partition of the IDE drive for placement of GRUB through the advanced settings button. sda is the IDe drive and was set to boot before the SATA, sdb.

So far, so good. No initrms error etc. Even got Photoshop CS2 installed via Wine this afternoon. if only I could do the same for the Palm Desktop software....
alanmzifa
Level 1
Level 1
 
Posts: 15
Joined: Sat Jan 19, 2008 5:37 am
Location: Belfast, Northern Ireland

Re: can't boot Mint or XP, fdisk-l below

Postby blues-guy on Tue Jun 17, 2008 9:06 pm

Gave up and installed Mandriva Powerpack 2008 - no problems. Sees drives as /hdxx and /sdxx instead of all as /sdxx. Problen no longer exists.
blues-guy
Level 2
Level 2
 
Posts: 58
Joined: Sun Dec 30, 2007 11:52 pm

Re: can't boot Mint or XP, fdisk-l below

Postby jhouse59 on Wed Jun 18, 2008 6:49 pm

67GTA wrote:I would try reinstalling grub. Boot a live CD. Open a terminal and run
Code: Select all
sudo grub
This will drop you into a grub prompt. Run these two commands one at a time.
Code: Select all
root (hd0,0)
Code: Select all
setup (hd0)

I'm having a problem getting Elyssa to boot. I can get Windows to boot.I tried what 67GTA suggested.But, I get this:
grub> root (hd0,0)
Filesystem type unknown, partition type 0x7

grub> setup (hd0)

Error 17: Cannot mount selected partition

I hope someone can tell me what to do.
User avatar
jhouse59
Level 3
Level 3
 
Posts: 186
Joined: Wed Aug 15, 2007 7:27 pm
Location: Eastern Tennessee,USA

Re: can't boot Mint or XP, fdisk-l below

Postby rbanavara on Wed Jun 25, 2008 6:12 am

jhouse59, (hd0,0) stands for first partition on the first HDD. and from the o/p (0x7, which is NTFS) its your windows drive. First you have to find the partition on which you have linux installed. Assuming you have it on first HDD 2nd partition (/dev/sda2), the the commmand would be

root (hd0,1)
setup (hd0)

If you can paste the o/p of fdisk -l from your system, it would help to frame the exact command.
Don't fix it if it ain't broken, don't break it if you can't fix it -Husse
User avatar
rbanavara
Level 4
Level 4
 
Posts: 233
Joined: Mon Jun 02, 2008 9:07 am

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: Google [Bot], lostfarmer and 14 guests