Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So for various reasons I decided I needed I windows install on my linux box. The computer is running mandrake 10, installed on the primary hard drive.
Knowing that windows likes to eat previously installed OS's, I disconnected the linux HD and hooked up another HD in its place to install windows on.
Now I have two hard drives, and I can get either OS to boot by changing boot order in the BIOS. Not ideal.
The problem is this: while I can see the partition on the windows drive (hdb) using fdisk, the partition (hdb1) is not present in /dev (/dev/hdb1 does not exist). I can't mount the windows drive, and I can't add the windows partition to LILO.
Originally posted by crabboy If you have no hdb1 you'll have to create it:
[code]
mknod /dev/hdb1 b 3 65
[code]
You may want to add b2, b3, b4 etc... b2 will be minor 66, and so on.
Cool! I only have 1 partition, so that should do it? I'm going to try now.
Edit: Didn't work. hdb1 shows up now, but when doing an 'ls' in /dev it looks different then, for example, hda1. It's yellow and doesn't have an @ symbol at the end of it.
Now when I try to mount the drive, it says
mount: /dev/hdb1 is not a valid block device
and also when you are trying to mount the /dev/hdb1 make sure you are passing the right filesystem type as argument [-t vfstype] to the mount command.. read the manual for more info [#man mount]. And see if your kernel supports the file system you are trying to mount.
and also when you are trying to mount the /dev/hdb1 make sure you are passing the right filesystem type as argument [-t vfstype] to the mount command.. read the manual for more info [#man mount]. And see if your kernel supports the file system you are trying to mount.
Thanks for the reply.
If I swap the master/slave configuration of the drives, windows will boot first. My problem isn't that I can't get into my windows drive--I can if I do that or change the boot order in my bios.
The filesystem type is FAT32, since I know NTFS support is sketchy at best.
I'll try using ntloader.
Edit: I went to that link, but it assumes linux is being installed. My situation is a little different--linux is already independently running off its own harddrive. GRUB is installed on the MBR on that drive.
So what exactly would I need to do? Somehow install GRUB to a new partition on the windows drive?
*Now all you need to to is connect your Linux hard drive as master(hda) and connect your Windows Drive as Slave (hdb).
*Don't change anything in the BIOS..
*edit your /boot/grub/grub.conf file and **remove** all the lines (if) you have for windows and paste the following line's below the linux related lines..
title Red Hat Linux 9 [ KERNEL - 2.6.6-1.435 ]
root (hd0,6)
kernel /vmlinuz-2.6.6-1.435 ro root=LABEL=/ hdd=ide-cd apm=off
initrd /initrd-2.6.6-1.435.img
Perhaps you are using lilo. This does the same thing. It should be in the windows stanza.
map-drive=0x80
to=0x81
map-drive=0x81da
to=0x80
Or look for the 'menu.lst' file in the /boot/grub directory.
If you decide to make the windows drive the master, then be sure to edit the /etc/fstab file and the lilo.conf or grub.conf or menu.lst files. Then reinstall the mbr. For lilo you run /sbin/lilo as root.
Originally posted by jschiwal Perhaps you are using lilo. This does the same thing. It should be in the windows stanza.
map-drive=0x80
to=0x81
map-drive=0x81da
to=0x80
Or look for the 'menu.lst' file in the /boot/grub directory.
If you decide to make the windows drive the master, then be sure to edit the /etc/fstab file and the lilo.conf or grub.conf or menu.lst files. Then reinstall the mbr. For lilo you run /sbin/lilo as root.
For grub: grub-install (hd0)
Good Luck!
Ok, couldn't get lilo to like that. So I switched to grub. I'm editting the menu.lst file, and have added the grub related "Windoze" code. Now I'm trying to use grub-install, but its not liking it. Is that the exact syntax above?
Thanks for the continued help!
Edit: Just wanted to say that after fiddling with it, it looks like everything is just fine and dandy with grub. I can boot into windows.
Can I change the order of the bootloader so that windows is below linux? There are a few other things there that were installed by default.
Next question: How do you think I should go about mounting my windows drive in linux? /dev/hdb1 doesn't show up. Any ideas?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.