Fedora Linux Support Community & Resources Center
  #1  
Old 9th March 2009, 04:04 AM
varaaha Offline
Registered User
 
Join Date: Mar 2009
Posts: 8
How to mount NTFS partition from Fedora 10 Rescue Mode/Disk?

Background for the problem:
A. I have partitioned my WinXP LTop into:
--- WinXP NTFS partition
--- a vfat partition (mounted onto /fat32)
--- Installed F10 on ext3 virtual partition
B. I do not want install grub-loader in the Master Boot Record (that would loose my WinXP boot-loader for ever)
C. I have installed grub boot loader in the First Boot Sector
D. Now I have to boot using Rescue Mode, do:
1. dd if=/dev/sda2 of=/fat32/linux.bin bs=512 count=1
2. mount -t ntfs /dev/sda1 /ntfs
3. cp /fat32/linux.bin /ntfs
4. modify /ntfs/c/boot.ini and introduce the statement 'c:\linux.bin="Linux"'

Problem:
Im not able to do step D.2 above.

Symptom:
** after booting linux using the Rescue Mode:
sh-3.2# chroot /mnt/sysimage
sh-3.2# uname -r
2.6.27.5-117.fc10.i586
sh-3.2# mount -f ntfs /dev/sda1 /ntfs
FATAL: Could not load /lib/modules/2.6.27.5-117.fc10.i586/modules.dep: No such file or directory
ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root
sh-3.2#

Observations:
* The rescue mode boots into i586 based kernel (I dont know what is the actual difference between i586 and i686 - will really appreciate if anyone can educate me about it).
* The installation is only a i686 image and consequently there is *only* '/lib/modules/2.6.27.5-117.fc10.i686' dir and *no* other dir. There is no dir as xxxx.fc10.i586.

Humble Request:
* I PLEASE NEED IMMEDIATE HELP. I HAVE TO GET AROUND THIS LAST WEEK NOT EVEN YESTERDAY!!! So please... help me out quick.
Reply With Quote
  #2  
Old 9th March 2009, 05:20 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
From what I could gather this is your problem:

Code:
FATAL: Could not load /lib/modules/2.6.27.5-117.fc10.i586/modules.dep: No such file or directory
ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root
Which means that ntfs-3g module is not available in rescue mode, therefore you're unable to mount. You may have to do that in Linux normal boot. Try "modprobe fuse" as the error says.

The second issue I see is that (although I'm not very good at Windows) I don't think editing boot.ini will work. So you're trying something different and probably on your own.

Installing grub as your main MBR is not such a bad idea.
Reply With Quote
  #3  
Old 9th March 2009, 05:57 AM
savage's Avatar
savage Offline
Registered User
 
Join Date: Jun 2005
Location: Mission Control
Posts: 1,229
You're trying to add grub to the XP boot loader?

You have your linux.bin file, and that needs placing in the root of your Windows XP drive, you have it on the fat32 partition? Why not just boot to Windows to complete steps D.2 onwards?

Move the linux.bin file from the fat32 partition (probably D:\ depending on CD-ROM drive letter) to the NTFS WinXP:\ (presumably C:\), then edit boot.ini. You'll need to remove the read-only attribute on boot.ini before you can save it.

I've never managed to get what your trying to work, however I prefer to load grub and then the XP loader.

Last edited by savage; 9th March 2009 at 06:01 AM.
Reply With Quote
  #4  
Old 9th March 2009, 05:58 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
I think he's trying to boot Linux through windows loader and skip GRUB completely.
Reply With Quote
  #5  
Old 9th March 2009, 06:23 AM
savage's Avatar
savage Offline
Registered User
 
Join Date: Jun 2005
Location: Mission Control
Posts: 1,229
Quote:
Originally Posted by notageek View Post
I think he's trying to boot Linux through windows loader and skip GRUB completely.
Oh...! I didn't know that was possible, I thought you could get the XP loader to load Grub, like the reverse of the Grub chainloader thingy, but I'm pretty sure the XP loader can't boot Linux without going through Grub first.

AFAIK that linux.bin is basically what would have been his MBR if he'd installed grub there, which the XP loader will call, loading grub (stage 1?), which will then load Linux.
Reply With Quote
  #6  
Old 9th March 2009, 06:25 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
You're probably right. Maybe I misunderstood.

In that case isn't the solution simply to boot into Windows and copy linux.bin from the fat32 partition and edit boot.ini .

Last edited by notageek; 9th March 2009 at 06:29 AM.
Reply With Quote
  #7  
Old 9th March 2009, 06:36 AM
savage's Avatar
savage Offline
Registered User
 
Join Date: Jun 2005
Location: Mission Control
Posts: 1,229
Quote:
Originally Posted by notageek View Post
In that case isn't the solution simply to boot into Windows and copy linux.bin from the fat32 partition and edit boot.ini .
Yeah I think (hope) so

It's easy to miss the simple things when exploring something new. Booting to Windows definitely sounds easier than trying to get NTFS support on the rescue disk.
Reply With Quote
  #8  
Old 9th March 2009, 06:46 AM
varaaha Offline
Registered User
 
Join Date: Mar 2009
Posts: 8
Quote:
Originally Posted by notageek View Post
From what I could gather this is your problem:

Code:
FATAL: Could not load /lib/modules/2.6.27.5-117.fc10.i586/modules.dep: No such file or directory
ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root
Which means that ntfs-3g module is not available in rescue mode, therefore you're unable to mount. You may have to do that in Linux normal boot. Try "modprobe fuse" as the error says.

The second issue I see is that (although I'm not very good at Windows) I don't think editing boot.ini will work. So you're trying something different and probably on your own.

Installing grub as your main MBR is not such a bad idea.

You got my problem almost correct, but Im unable to normal boot into F10 because my first goal is to *not* get rid of my Windows boot-loader from MBR. So I *have* to be able to mount NTFS, edit c:\boot.init, introduce the 'c:\linux.bin' line and then only can I boot to F10. My secondary problem is that Im not able to log into windows to edit boot.ini. So there I have it - A double whammy

Pls guys come up with something. I just wonder why in the world does the Rescue Mode use the i586 kernel while F10 installs and i686 kernel. Thats whats primarily messing things up for me.
Reply With Quote
  #9  
Old 9th March 2009, 06:50 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Can you boot to Windows rescue mode? Does windows rescue mode allow use of an editor?

Your linux.bin exists in a fat32 partition, so windows can see it there and besides you're trying to restore Windows MBR you'll eventually have to boot into Windows rescue and run the usual Windows commands.

Edit: We did come up with something The trouble is none of us have ESP.

Last edited by notageek; 9th March 2009 at 07:04 AM.
Reply With Quote
  #10  
Old 9th March 2009, 07:30 AM
savage's Avatar
savage Offline
Registered User
 
Join Date: Jun 2005
Location: Mission Control
Posts: 1,229
Quote:
Originally Posted by varaaha View Post
So I *have* to be able to mount NTFS, edit c:\boot.init, introduce the 'c:\linux.bin' line and then only can I boot to F10. My secondary problem is that Im not able to log into windows to edit boot.ini. So there I have it - A double whammy
What I was trying to say, you've already created your linux.bin file? You've saved it to your fat32 partition (/fat32)? You can still boot to XP?

So, boot into XP, in My Computer, you should find the fat32 partition (XP can read fat32), copy the linux.bin file to your C:\ and edit boot.ini in Notepad in Windows XP.

Edit: I'm getting a little confused, if the Windows boot loader has been damaged/replaced, you can fix it by booting the XP CD, pressing R, and typing 'fixboot' and 'fixmbr' to restore the XP boot loader.
Reply With Quote
  #11  
Old 9th March 2009, 03:45 PM
varaaha Offline
Registered User
 
Join Date: Mar 2009
Posts: 8
Quote:
Originally Posted by savage View Post
What I was trying to say, you've already created your linux.bin file? You've saved it to your fat32 partition (/fat32)? You can still boot to XP?

So, boot into XP, in My Computer, you should find the fat32 partition (XP can read fat32), copy the linux.bin file to your C:\ and edit boot.ini in Notepad in Windows XP.

Edit: I'm getting a little confused, if the Windows boot loader has been damaged/replaced, you can fix it by booting the XP CD, pressing R, and typing 'fixboot' and 'fixmbr' to restore the XP boot loader.
Im unable to log on to my winxp m/c. The Win MBR is fine, it comes up till logon prompt. Then its the 'cant log you on since domain <> no available' error. Ive already tried and ruled out the Win approaches. I just need to retrieve my file from the ntfs so that I can continue editing my document.
Reply With Quote
  #12  
Old 9th March 2009, 04:44 PM
savage's Avatar
savage Offline
Registered User
 
Join Date: Jun 2005
Location: Mission Control
Posts: 1,229
What about a LiveCD? They let you boot into Fedora "normally" from the CD without installing it, I'm not sure if they have NTFS support, but I'm pretty sure they will have, and you should be able to add it to a LiveCD easier than the rescue mode.

Edit: Can you not log into the machine's admin account, that won't require the domain controller to be available but will still let you at the hard disk contents.
Reply With Quote
  #13  
Old 13th April 2009, 11:25 PM
varaaha Offline
Registered User
 
Join Date: Mar 2009
Posts: 8
This live CD idea worked perfectly fine. I was able to mount the NTFS using it, then modify the file and boot into F10.
Reply With Quote
  #14  
Old 4th June 2009, 07:03 AM
antus Offline
Registered User
 
Join Date: Oct 2005
Posts: 5
Late to the party here I know, but I stumbled past from a google search and see trouble fixing the windows MBR by the sounds of it. To do this, boot of a windows boot disk / cd - one can probably be found with google on the net, and in dos do "fdisk /mbr". That'll put a windows MBR back on the disk. Hope this helps someone!
Reply With Quote
Reply

Tags
winxp dual boot

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I mount NTFS partition after booting Fedora in rescue mode? Cyberman Using Fedora 3 7th May 2008 04:01 PM
mount cdrom in linux rescue mode jpcozar Using Fedora 2 27th October 2007 12:17 PM
Rescue Mode can't mount some of my system!! egtux Using Fedora 8 8th September 2007 11:48 AM
How do i mount a USB Disk in rescue mode and install a kernel rpm Ambiguous-69 Using Fedora 5 30th May 2007 06:33 AM
can't get into rescue mode to partition DJeter1234 Installation and Live Media 8 21st September 2004 05:43 PM


Current GMT-time: 10:52 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat