LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   dual boot (https://www.linuxquestions.org/questions/debian-26/dual-boot-326977/)

Vlad_Einhorn 05-25-2005 10:12 AM

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!
:newbie:

trevelluk 05-25-2005 10:21 AM

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).

kesara 05-25-2005 10:24 AM

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:-)

Vlad_Einhorn 05-25-2005 10:25 AM

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.

kesara 05-25-2005 10:29 AM

Try rootnoverify (hd1,0) instead of root (hd1,0)

Vlad_Einhorn 05-25-2005 10:34 AM

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...

trevelluk 05-25-2005 10:45 AM

Are you sure your Windows files are still intact. Can you mount and browse the partition in Ubuntu?

kesara 05-25-2005 10:46 AM

Try this
Code:

map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,1)

Maybe rootnoverify (hd1,0), I'm not sure:-)

Vlad_Einhorn 05-25-2005 10:54 AM

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

Vlad_Einhorn 05-25-2005 11:03 AM

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

trevelluk 05-25-2005 11:18 AM

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.

Vlad_Einhorn 05-25-2005 11:31 AM

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.

trevelluk 05-25-2005 11:35 AM

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.

Vlad_Einhorn 05-25-2005 11:38 AM

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

Vlad_Einhorn 05-25-2005 12:32 PM

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



All times are GMT -5. The time now is 11:18 AM.