LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-25-2005, 10:12 AM   #1
Vlad_Einhorn
LQ Newbie
 
Registered: May 2005
Location: Salmiya, Kuwait
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 0
Unhappy dual boot


I have linux ubuntu installed and i have windows XP installed. Each one is on it's own hard disk. unfortunately now i cant boot windows xp. i opened menu.lst and didn't find the windows line there so i added it myself this is what i wrote:
Code:
## ## END Default Options ##

##this is what i wrote

title               Windows XP proffesional
root              (hd0,1)
makeactive
chainloader   +1
##that's all that i wrote.

title                Ubuntu, kernel 2.6.10-5-386
root               (hd0,0)
kernel            /boot/vmlinuz-2.6.10-5-386 root=/dev/hda1 to
quiet splash
initrd              /boot/initrd.img-2.6.10-5-386
boot
##etc...
but now when it starts up and i press esc and choose win XP it tells me this:
Code:
Booting 'Windows XP Professional'

root (hd0,1)
Filesystem type unknown, partition type 0x5
makeactive

Error 12: Invalid device required

Press any key to continue
all this is because i didn't install linux in the MBR. i don't think it asked me for it...i tried playing around with the root (hd0,1) changing it to hd0,2 or 3 etc.. different types of error messages each time. i can't get to windows. windows is on the slave harddisk linux is on the master harddisk. sory for writing so much.
oh yeah and when i open the console and write fdisk -l nothing comes up!
 
Old 05-25-2005, 10:21 AM   #2
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
As Windows is on the second disk, you probably need hd(1,0)

The first parameter is the disk number, and the second is the partition number (both starting from 0).
 
Old 05-25-2005, 10:24 AM   #3
kesara
Member
 
Registered: Dec 2004
Location: Colombo, Sri Lanka
Distribution: Arch Linux, Gentoo Linux, Ubuntu, Debian
Posts: 116

Rep: Reputation: 15
If windows is on the slave, you should use root (hd1,<partion no>)

EDIT: Sorry about repeating same thing, I guess me & trevelluk post this at the same time:-)

Last edited by kesara; 05-25-2005 at 10:26 AM.
 
Old 05-25-2005, 10:25 AM   #4
Vlad_Einhorn
LQ Newbie
 
Registered: May 2005
Location: Salmiya, Kuwait
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
i just tried that
this is what it said
Code:
Booting 'Windows XP Professional'

root (hd1,0)
Filesystem type unknown, partition type 0xf
makeactive

Error 12: Invalid device requested

Press any key to continue...
The windows harddrive is completely unpartitioned so (hd1,0) should work shouldn't it.

Last edited by Vlad_Einhorn; 05-25-2005 at 10:28 AM.
 
Old 05-25-2005, 10:29 AM   #5
kesara
Member
 
Registered: Dec 2004
Location: Colombo, Sri Lanka
Distribution: Arch Linux, Gentoo Linux, Ubuntu, Debian
Posts: 116

Rep: Reputation: 15
Try rootnoverify (hd1,0) instead of root (hd1,0)
 
Old 05-25-2005, 10:34 AM   #6
Vlad_Einhorn
LQ Newbie
 
Registered: May 2005
Location: Salmiya, Kuwait
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
this is what it says now:
Code:
Booting 'Windows XP Professional'

rootnoverify (hd1,0)
makeactive

Error 12: Invalid device requested

Press any key to continue...
EDIT: i removed the makeactive code and now it no longer gives me an error it just gives me a flashing underscore and that's it. been like that for a while now...

Last edited by Vlad_Einhorn; 05-25-2005 at 10:39 AM.
 
Old 05-25-2005, 10:45 AM   #7
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
Are you sure your Windows files are still intact. Can you mount and browse the partition in Ubuntu?
 
Old 05-25-2005, 10:46 AM   #8
kesara
Member
 
Registered: Dec 2004
Location: Colombo, Sri Lanka
Distribution: Arch Linux, Gentoo Linux, Ubuntu, Debian
Posts: 116

Rep: Reputation: 15
Try this
Code:
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,1)
Maybe rootnoverify (hd1,0), I'm not sure:-)
 
Old 05-25-2005, 10:54 AM   #9
Vlad_Einhorn
LQ Newbie
 
Registered: May 2005
Location: Salmiya, Kuwait
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
nope still giving me a flashing underscore
EDIT: i tried it both with and without the makeactive line.

Last edited by Vlad_Einhorn; 05-25-2005 at 11:01 AM.
 
Old 05-25-2005, 11:03 AM   #10
Vlad_Einhorn
LQ Newbie
 
Registered: May 2005
Location: Salmiya, Kuwait
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
how do i mount and browse the partition in ubuntu. sorry mate i just installed ubuntu and it's my first distro im a complete newb
 
Old 05-25-2005, 11:18 AM   #11
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
OK, first of all, it may have been automatically detected and mounted for you. To find out, have a look at the file /etc/fstab
If this contains a line mentioning /dev/hdb1 (assuming you're using IDE disks - you probably are), then the Windows partition is already mounted, and the contents should be found in the directory specified on that line.

Otherwise, you'll need to do the following, as root:

1. Create a directory where you want to mount the partition (mkdir /mnt/windows).
2. Run the mount command, as follows: mount -t ntfs /dev/hdb1 /mnt/windows

If this doesn't give you any errors, then the partitions mounted.

To browse it, just use the file browser of your choice to navigate to the directory specified in /etc/fstab (or that you created).
Alternatively, to use the command line, type cd /path/to/directory (obviously, inserting the real path), and then type ls to view the contents.
 
Old 05-25-2005, 11:31 AM   #12
Vlad_Einhorn
LQ Newbie
 
Registered: May 2005
Location: Salmiya, Kuwait
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
this is what it says in fstab:

Code:
#/etc/fstab:static file system information
#
#<file system>  <mount point> <type> <options> <dump> <pass>

proc           /proc              proc      defaults
0         0
/dev/hda1                                    ext3
defaults,errors=remount-ro 0
/dev/hda5                    none      swap     sw
0         0
/dev/hdd           /media/cdrom0     auto            udf,iso9660 ro,user,noauto
0        0 
/dev/fdo      /media/floppy0           auto            rw,user,noauto 
0        0
/dev/sda     /media/usb0             auto              rw,user,noauto
00
when i tried to make the directore using the console it said permission deniedd.

Last edited by Vlad_Einhorn; 05-25-2005 at 11:35 AM.
 
Old 05-25-2005, 11:35 AM   #13
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
It's not in there yet then. You'll need to follow the steps I outlined in my earlier post.

I've got to go for the evening now, so I won't be able to give you any more advice until the morning. I'm sure kesara or someone else will be able to carry on helping though.

(edit)
Sorry, I missed the last line of your post the first time around. Were you root when you tried to create the directory? Type su and when prompted, your root password to get the necessary access.

Last edited by trevelluk; 05-25-2005 at 11:37 AM.
 
Old 05-25-2005, 11:38 AM   #14
Vlad_Einhorn
LQ Newbie
 
Registered: May 2005
Location: Salmiya, Kuwait
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
ok. thanks man. i 'll try the mounting now.
EDIT: what on earth is the root password. i tried my normal login pass. nope. not my windows pass or my bios pass either! sorry you guys.
soz not su in ubuntu supposed to write sudo

Last edited by Vlad_Einhorn; 05-25-2005 at 11:50 AM.
 
Old 05-25-2005, 12:32 PM   #15
Vlad_Einhorn
LQ Newbie
 
Registered: May 2005
Location: Salmiya, Kuwait
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
i got fdisk -l to work and now this is what it says:
Code:
Device        Boot          Start                 End           Blocks                     ID          System
/dev/hda1    *              1                     2386         19165513+           83             Linux
/dev/hda2                   2387                2491         843412+               5               Extended
/dev/hda3                   2387                2491         843381                  82          Linux swap / solaris


#some crap here

/dev/hdb1                  2                       4998    40138402+                f             W95 Ext'd (LBA)
/dev/hdb5                  2                       4997    40130338+                7             HPFS/NTFS
 
  


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
Problems With Dual Boot / Dual Drive Setup Norab Linux - Hardware 1 08-07-2005 09:15 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai SUSE / openSUSE 1 12-14-2004 05:04 PM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 10:11 AM
Newbie needs Mandrake/Win98 dual-HD, dual boot system design help... buddha Linux - Newbie 20 09-04-2003 08:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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