LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-21-2007, 07:39 PM   #1
stevesutt89
LQ Newbie
 
Registered: Nov 2007
Distribution: Archlinux 2007.11, Debian Etch, Ubuntu 6.06, 7.04, 7.10
Posts: 8

Rep: Reputation: 0
Grub won't boot windows after it has been moved


Yesterday I decided to physically move my windows partition to a different part of the drive. To do this i had to image that partition, then delete it, recreate it in a different spot and then restore the data to the partition.

The clever bit (i thought) was that the partition was in a physically different spot, but it was still called the same thing as it was before--> /dev/sda1. However now when i try to boot into windows from grub i get the error message:

root (hd0,0)
filesystem type unknown, partition type 0x7


Here is the output of cat /proc/partitions

major minor #blocks name

8 0 58605120 sda
8 1 16755795 sda1
8 2 1 sda2
8 3 27607702 sda3
8 5 6658942 sda5
8 6 6658911 sda6
8 7 923643 sda7

and the grub entry for windows:

title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

any ideas why i might be getting this error message in grub???

Last edited by stevesutt89; 11-21-2007 at 07:43 PM.
 
Old 11-21-2007, 08:18 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Post the output of 'fdisk -l' (without quotes) and the content of /etc/fstab. Someone here should be able to tell you what edit to make in your /boot/grub/menu.lst.
 
Old 11-21-2007, 10:17 PM   #3
stevesutt89
LQ Newbie
 
Registered: Nov 2007
Distribution: Archlinux 2007.11, Debian Etch, Ubuntu 6.06, 7.04, 7.10
Posts: 8

Original Poster
Rep: Reputation: 0
fdisk -l gives

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

Device Boot Start End Blocks Id System
/dev/sda1 * 1774 3859 16755795 7 HPFS/NTFS
/dev/sda2 1 1773 14241591 5 Extended
/dev/sda3 3860 7296 27607702+ b W95 FAT32
/dev/sda5 116 944 6658942+ 83 Linux
/dev/sda6 945 1773 6658911 83 Linux
/dev/sda7 1 115 923643 82 Linux swap / Solaris

Partition table entries are not in disk order

and my /etc/fstab is


# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0

/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/sda7 swap swap defaults 0 0
/dev/sda5 / ext3 defaults 0 0
/dev/sda3 /media/sda3 vfat user,uid=1000,gid=1000,defaults 0 0
/dev/sda6 /media/sda7 ext3 user,defaults 0 0
/dev/sda1 /media/sda1 ntfs-3g user,uid=1000,gid=1000,defaults,locale=en_AU.utf8 0 0
 
Old 11-21-2007, 10:21 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Try "rootnoverify (hd0,0)" instead of "root (hd0,0)".
 
Old 11-21-2007, 10:47 PM   #5
stevesutt89
LQ Newbie
 
Registered: Nov 2007
Distribution: Archlinux 2007.11, Debian Etch, Ubuntu 6.06, 7.04, 7.10
Posts: 8

Original Poster
Rep: Reputation: 0
well using rootnoverify (hd0,0) did get rid of the error message described earlier, however now when i try to boot windows grub just stops after printing:

Booting 'Microsoft Windows XP Professional'...

roonoverify (hd0,0)
savedefault
makeactive
chainloader +1

on the screen

to me this says that grub is working fine, rather it is when grub passes the control over to the windows bootloader that things start breaking

so this thread has fast become a 'windows question thread' but i shall ask my question anyway: is there a way to restore the windows bootloader from out side of windows....???
 
Old 11-21-2007, 11:26 PM   #6
stevesutt89
LQ Newbie
 
Registered: Nov 2007
Distribution: Archlinux 2007.11, Debian Etch, Ubuntu 6.06, 7.04, 7.10
Posts: 8

Original Poster
Rep: Reputation: 0
no worries, I think i have worked it out. All i need to do boot up using the windows xp cd and go to the recovery console or something and tyoe fixmbr. This will either do one of two things..

either it will install the windows boot loader at the beginning of the windows partition, in which case the chainloader +1 line in the grub menu.lst file should pass control to this and it should work straight up

or

less desirably is that it completely wipes my mbr of my drive and (erasing grub) and shoves the windows boot loader there, in which case i shall have to reinstall grub from a live cd....no worries.....but i'm not sure if this will fix the lack of bootloader at the beginning of the /dev/sda1 (windows) partition

anyways either way it shall have to wait as i'm going on holidays for a week without my computer

thanks for the help!!
 
Old 11-21-2007, 11:32 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Try fixboot first - he's the guy to fix up (partition) boot sector records. If that doesn't help, then try fixmbr.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no windows option in grub.tried mounting TOPIC MOVED timberwolf90 Linux - General 3 11-12-2007 04:57 PM
dual boot - Grub won't boot Windows on /windows/D partition biosol SUSE / openSUSE 9 04-09-2006 08:14 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 05:26 AM
Grub setup for Linux moved to 2nd HDD? emendelson Linux - General 2 03-05-2005 10:57 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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