Page 1 of 1

eep. windows took over....

Posted: Thu Dec 06, 2007 2:58 pm
by Acid_1
I had my copy of Daryna installed, and I made it my whole partition. So, later I decided to put windows back on, just for iTunes and a couple of games I had. So I popped in the live cd, and made a new partition off of my Daryna partition, and that was all dainty. So, I installed windows ont he 20GiB partition that I gave it, and I figured this would happen, but oh well, it took over my bootloader, and doesn't give me the option to boot into Daryna. Now here's the funny thing. I can't get on the internet to find the drivers I need so I can get my net to work. So that's a bit of a circle there. And I figured I'd boot into Daryna to download them, but I can't, and I'd rather not re-install Daryna. Though I do have everything backed up if need be. So, how do I get grub and the Daryna interface to boot rather than ntloader??? Also, does anyone know of a rather generic Ethernet, Modem, and Wireless driver for windows? It's a dell inspiron 2200, and it came with no drivers. :'(

Re: eep. windows took over....

Posted: Thu Dec 06, 2007 3:37 pm
by 67GTA
Go to the Dell website and find the drivers for your PC once you get back to Mint and move them to Windows. Look under Support and Downloads, and find your model.

Directions for restoring grub with Linux live cd:

http://ubuntuforums.org/showthread.php?t=224351

Re: eep. windows took over....

Posted: Thu Dec 06, 2007 3:58 pm
by Acid_1
thank you very much. this is a life saver.... erm, computer saver... lol

Re: eep. windows took over....

Posted: Thu Dec 06, 2007 5:31 pm
by Acid_1
Okay, I have grub working correctly again. Now, when I got grub to work, it only recognizes my Linux partition, and the Windows partition in now missing. How do I edit grub to recognize my windows partition?

Windows XP Pro - Media Center Edition. Thanks.

Re: eep. windows took over....

Posted: Thu Dec 06, 2007 5:48 pm
by 67GTA
Copy and paste the output of "sudo fdisk -l" from a terminal.

Re: eep. windows took over....

Posted: Thu Dec 06, 2007 5:59 pm
by Acid_1
Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
...

That's the output. However, I did not use 'sudo fdisk -|'
that would just return it with >
so i did 'sudo fdisk'

Re: eep. windows took over....

Posted: Thu Dec 06, 2007 6:13 pm
by 67GTA
You used a capitol i. It has to be a lower case L.

sudo fdisk -l

NOT

sudo fdisk -I

Re: eep. windows took over....

Posted: Thu Dec 06, 2007 6:21 pm
by Acid_1
Actually, I used the little straight thing (don't know it's name), the one that's above the enter button, when you hold shift. Anyhow....

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd0f4738c

Device Boot Start End Blocks Id System
/dev/sda1 1 4384 35214448+ 83 Linux
/dev/sda2 * 4385 7234 22892625 7 HPFS/NTFS
/dev/sda3 7235 7296 498015 82 Linux swap / Solaris

Re: eep. windows took over....

Posted: Thu Dec 06, 2007 6:31 pm
by 67GTA
Windows is installed on sda2. Grub starts counting partitions at zero, so sda1 would be hd0,0...sda2=hd0,1 sda3=hd0,2 and so on. In a terminal run "sudo gedit /boot/grub/menu.lst". Copy and paste this at the end of the file and save. If you want Mint to mount it at boot, you will have to edit /etc/fstab.

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Microsoft Windows
root (hd0,1)
savedefault
makeactive
chainloader +1

Re: eep. windows took over....

Posted: Thu Dec 06, 2007 6:43 pm
by Acid_1
just before or after this: (or maybe in it?)

## ## End Default Options ##

title Linux Mint, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda1 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
boot

title Linux Mint, kernel 2.6.22-14-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.22-14-generic
boot

title Linux Mint, kernel memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

Re: eep. windows took over....

Posted: Thu Dec 06, 2007 6:45 pm
by 67GTA
Just after ### END DEBIAN AUTOMAGIC KERNELS LIST