LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-11-2008, 12:10 PM   #1
krisheyrman
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
Thumbs down Grub cannot boot XP partition that was created/modified by ntfs-3g


Hello

I have a composite problem that I really do not know where else to turn to.

My system -- a Dell D820 Latitude -- runs Fedora FC6 99% of the time.
I reduced the original Windows XP partition in size and kept it on
my partition /dev/sda2; I could mount it with ntfs-3g and occasionally
booted it with grub. I backed it up, together with my Linux partitions,
with rdiff-backup. Whenever I booted XP, it started to install funny
things from the Internet. (I know preciously little about Windows.)
One day the XP did not start up cleanly, and I decided to restore the
XP partition to a date that I knew it was working properly. That did
not help, so I did in Linux:

mkntfs /dev/sda2
mount -t ntfs-3g -o defaults,umask=0000 /dev/sda2 /media/xp
rdiff-backup --restore-as-of DATE RDIFF-DIR /media/xp
umount /dev/sda2

I noticed, checking the XP file system with

ntfsinfo -m /dev/sda2

something different about the MFT Zone Start, which used to be 806866 and was now 0.
Was there something hidden on the NTFS partition that I did not know about?
After the operation, XP would not boot any more. The grub configuration is

default=0
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.22.14-72.fc6)
root (hd0,4)
kernel /vmlinuz-2.6.22.14-72.fc6 ro root=LABEL=/ rhgb quiet combined_mode=libata
initrd /initrd-2.6.22.14-72.fc6.img timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.22.14-72.fc6)
root (hd0,4)
kernel /vmlinuz-2.6.22.14-72.fc6 ro root=LABEL=/ rhgb quiet combined_mode=libata
initrd /initrd-2.6.22.14-72.fc6.img
title xp
rootnoverify (hd0,1)
chainloader +1

Grub just says

rootnoverify (hd0,1)
chainloader +1

and shows a black screen. Obviously something is wrong with the XP
partition. Can anybody give a hint to what it could be? In Linux, it
lists like this (omitting non-essential files)

4fdf775e9560397835cc76e834b054cb ntldr
AUTOEXEC.BAT hiberfil.sys pagefile.sys
Bootfont.bin home
boot.ini i386 Program Files
INFCACHE.1
CONFIG.SYS IO.SYS RECYCLER
dell MSDOS.SYS System Volume Information
dell.sdr MSOCache tmp
Documents and Settings WINDOWS
drivers NTDETECT.COM

Even though this is not a Linux problem, I hope somebody on this list can help me.
 
Old 12-11-2008, 01:15 PM   #2
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
System Rescue.

Have you tried to rescue the windows install with the windows disk, will have to re-install grub afterwards.
 
Old 12-11-2008, 01:39 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
The ntfsprogs folks used to warn about backup/restore and moving (bootable partition particularly) of NTFS. Being a M$oft proprietary f/s it's a can of worms - they provide tools to assist, but they are of the clone variety.
Personally I would never rely on an rsync style backup of a non-POSIX f/s.

I don't like your chances of making this work - but I've never even thought of testing this.
 
Old 12-11-2008, 03:18 PM   #4
igu
Member
 
Registered: Jan 2003
Distribution: Fedora, Gentoo, SUSE, Mandriva
Posts: 127

Rep: Reputation: 15
rdiff-backup can't do system, only file level backup. You should have used ntfsclone to save the entire Windows partition. That creates a completely exact volume copy. I never had problem with it in the last five years and I use it quite actively.

Linux Testdisk and/or Windows BOOTFIX may help you which can reinstall the bootsector which you didn't save.

Last edited by igu; 12-11-2008 at 03:20 PM.
 
Old 12-13-2008, 05:33 AM   #5
krisheyrman
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Status

I tried testdisk. It found the partition boot sector OK and 'fixed' the MBT, but it did not help. I now found a Hiren bootcd with many windows repair utilities, but I am threading wearily, not wanting to damage my linux partitions. Suggestions are still welcome.
 
Old 12-13-2008, 06:16 AM   #6
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by krisheyrman View Post
and I decided to restore the
XP partition to a date that I knew it was working properly.
How exactly did you restore it? AFAIK the only correct way to save/restore ntfs partition is with ntfsclone. I've been using this for quite some time and never had a problem. For example, if you saved files from partition instead of image of partition, I think you won't be able to easily restore windows system (I can honestly say that this means you are pretty screwed). You should try recovering system with recovery mode from windows CD.

Also, if this is true:
Quote:
Originally Posted by igu View Post
rdiff-backup can't do system, only file level backup.
This means:
1) Your windows partiton has no boot loader. You won't be able to boot it at all. Try windows recovery mode, or the steps "igu" recommended.
2) All file permissions on ntfs partition are gone (ntfs-3g doesn't support windows permissions). You might get a lot of trouble even if you'll be able to restore system. For example, your windows system might become even more vulnerable than it were by default (because everything will be readable/writeable by everyone). In this situation I'd seriously consider installing windows from scratch.

Last edited by ErV; 12-13-2008 at 06:26 AM.
 
Old 12-16-2008, 03:32 AM   #7
krisheyrman
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Yes, it seems i am screwed and will have to kiss this windows partition goodbye. I can live with that.

Thanks for all the good advice, though.
 
Old 12-16-2008, 04:22 AM   #8
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by krisheyrman View Post
Yes, it seems i am screwed and will have to kiss this windows partition goodbye. I can live with that.

Thanks for all the good advice, though.
You can try to reinstall windows, and then restore data preserved by filesystem-level backup (by overwriting parts of fresh windows installation). Be careful not to overwrite ntldr. Your permissions will be gone, of course, but you'll be able to restore at least some of your data.
 
Old 12-22-2008, 07:50 AM   #9
QuakerJ
LQ Newbie
 
Registered: Mar 2004
Location: Nottingham, UK
Distribution: Fedora14 - Gnome2
Posts: 15

Rep: Reputation: 0
Smile

It used to be the case way back with Fedora Core 4 and XP not booting after the Fedora core installation, that it was necessary to go to the BIOS and toggle the HD addressing from LBA to AUTO or vice versa. You might like to try that. It won't screw up what you have there.
 
Old 12-25-2008, 04:42 AM   #10
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Quote:
something different about the MFT Zone Start, which used to be 806866 and was now 0.
The quote above tells the story. It's toast.
The First Master File Table is usually around the middle of the partition, "0" pretty much means there is no MFT anymore. Without a MFT, there are no files reachable by the file system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to Find and remove 7 days before modified/created files neel.gurjar Linux - Software 2 05-14-2008 09:17 PM
Does a boot sector created automatically when install linux to a partition? just.srad Linux - General 7 04-18-2008 04:34 AM
Created and Modified date linux2man Linux - Newbie 1 08-13-2007 01:10 PM
Find all files created or modified between 2 times MicahCarrick Linux - Software 3 06-29-2006 05:22 PM
Created new FAT32 partition, after that..GRUB console haunting me..what 2 do??? free_mumia Linux - Newbie 5 01-04-2004 08:02 PM


All times are GMT -5. The time now is 05:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration