View previous topic :: View next topic |
Author |
Message |
bobalot n00b
Joined: 23 Feb 2006 Posts: 28
|
Posted: Tue Jun 13, 2006 10:57 am Post subject: Grub won't boot windows (probably a good thing) |
|
|
i used to have gentoo installed with withdows and grub booted them both perfectly, but then my windows went arse-up and i had to reinstall it, re-writing the MBR. now after using grub-install i cant boot back into windows (which i need since my rt2570 wireless is failry unstabl under linux). grub did uesd to complain about not knowing the filesystem of the windows partition, but then i used the grub command to manually install grub, and now it says grub stage 2 when i try to boot windows, before returning to the menu
/etc/fstab
Quote: |
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb2 none swap sw 0 0
/dev/hdb1 / ext3 noatime 0 1
/dev/hda5 /mnt/data vfat umask=000 0 0
/dev/hda1 /mnt/windows ntfs nls=utf8,umask=0222 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
/boot/grub/grub.conf
Quote: |
default 0
timeout 30
title=Gentoo
root (hd1,0)
kernel /boot/bzImage root=/dev/hdb1
title=Windows
rootnoverify (hd0,0)
makeactive
chainloader +1
|
gentoo is on /dev/hda1, swap on /dev/hda2
win is on /dev/hda1 and data, a fat32, where win and lin can write to is on /dev/hda5
fdisk /dev/hda, is this normal?
Quote: |
The number of cylinders for this disk is set to 10011.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help):
|
any help would be greatly appreciated |
|
Back to top |
|
|
shtumpa Tux's lil' helper
Joined: 19 Feb 2005 Posts: 136 Location: Australia
|
Posted: Tue Jun 13, 2006 12:37 pm Post subject: |
|
|
Code: |
title=Winblows-Xp
rootnoverify (hd3,0)
makeactive
chainloader +1
map (hd0) (hd3)
map (hd3) (hd0)
+++++]Also works with +++++
title=Winblows-Xp
rootnoverify (hd3,0)
makeactive
chainloader (hd3,0)+1
map (hd0) (hd3)
map (hd3) (hd0)
|
works for me but reboots at the splash screen |
|
Back to top |
|
|
bobalot n00b
Joined: 23 Feb 2006 Posts: 28
|
Posted: Tue Jun 13, 2006 6:26 pm Post subject: |
|
|
but i dont need to map my partitions, since windows is on the 1st primary partition of the master drive. |
|
Back to top |
|
|
shtumpa Tux's lil' helper
Joined: 19 Feb 2005 Posts: 136 Location: Australia
|
Posted: Wed Jun 14, 2006 4:53 am Post subject: |
|
|
Ah i see .. |
|
Back to top |
|
|
bobalot n00b
Joined: 23 Feb 2006 Posts: 28
|
Posted: Wed Jun 14, 2006 1:39 pm Post subject: |
|
|
anyone? |
|
Back to top |
|
|
guduri Apprentice
Joined: 04 Apr 2005 Posts: 230 Location: Ann Arbor, Michigan
|
Posted: Wed Jun 14, 2006 2:48 pm Post subject: |
|
|
My guess would be something got screwed up when you did the grub-install. Could you give it one more shot and do the grub-install again and see if it works. _________________ Power is about what you can control. Freedom is about what you can unleash. |
|
Back to top |
|
|
syscrash Guru
Joined: 14 Apr 2003 Posts: 541
|
Posted: Wed Jun 14, 2006 9:24 pm Post subject: |
|
|
Try
Code: | chainloader (hd0,0)+1 |
root or any other commands are unnecessary. _________________ Play ET? Come by #gentoo.et on freenode!
http://syscrash.ca |
|
Back to top |
|
|
bobalot n00b
Joined: 23 Feb 2006 Posts: 28
|
Posted: Thu Jun 15, 2006 12:24 pm Post subject: |
|
|
syscrash wrote: | Try
Code: | chainloader (hd0,0)+1 |
root or any other commands are unnecessary. |
that doesnt work either, but can i ask if anyone has a ntfs stage file in their /boot/grub dir? i only have
Code: |
bob@localhost /boot/grub $ dir
default grub.conf minix_stage1_5 stage2.old
device.map grub.conf.sample reiserfs_stage1_5 stage2_eltorito
e2fs_stage1_5 iso9660_stage1_5 splash.xpm.gz ufs2_stage1_5
fat_stage1_5 jfs_stage1_5 stage1 vstafs_stage1_5
ffs_stage1_5 menu.lst stage2 xfs_stage1_5
bob@localhost /boot/grub $
|
grub compalins about /dev/hda1 being an unknown filesystem when i use grub to manually configure, i dont understand how anyfile could have been missed when i have emergeed and re-emerged and done grub-install and the manual install multiple times? |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Thu Jun 15, 2006 12:38 pm Post subject: |
|
|
can you provide the output from fdisk -l _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
bobalot n00b
Joined: 23 Feb 2006 Posts: 28
|
Posted: Thu Jun 15, 2006 12:56 pm Post subject: |
|
|
fdisk -l
Code: | Disk /dev/hda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1523 12233466 7 HPFS/NTFS
/dev/hda2 1524 10011 68179860 f W95 Ext'd (LBA)
/dev/hda5 1524 10011 68179828+ b W95 FAT32
Disk /dev/hdb: 20.4 GB, 20491075584 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 2395 19237806 83 Linux
/dev/hdb2 2396 2491 771120 82 Linux swap / Solaris
|
and i have just realised that i cannot mount my ntfs partition,
Quote: |
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
or too many mounted file systems
|
i have re-installed windows after re-wiping the disk, then re-installed grub but im still getting that error |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Thu Jun 15, 2006 2:48 pm Post subject: |
|
|
for mounting the windows NTFS partition, you will need to have ntfs support compiled, either in the kernel, or as a module
Code: | ~ # cd /usr/src/linux
/usr/src/linux # make menuconfig |
Code: | File systems --->
DOS/FAT/NT Filesystems --->
<M> NTFS file system support |
(enable the vfat support if you would like access to FAT partitions)..
can you try the following for your grub.conf
Code: | default 0
timeout 30
title Gentoo
root (hd1,0)
kernel /boot/bzImage root=/dev/hdb1
title Windows
rootnoverify (hd0,0)
makeactive
chainloader (hd0,0)+1 |
_________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
bobalot n00b
Joined: 23 Feb 2006 Posts: 28
|
Posted: Thu Jun 15, 2006 6:30 pm Post subject: |
|
|
fixed i reinstalled windows and used
Quote: |
title Windows
chainloader (hd0,0)+1
|
to boot, the only difference i did was i formatted the ntfs partition with ntfs , rather than ntfs (quick). is this a bug with grub?
anyhow i already had ntfs in my kernel, but now it mounts and umounts perfectly |
|
Back to top |
|
|
|