LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there a way to modify/edit/erase a file in a WinXP partition from within Linux? (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-a-way-to-modify-edit-erase-a-file-in-a-winxp-partition-from-within-linux-235091/)

aixarat 09-25-2004 10:40 AM

Is there a way to modify/edit/erase a file in a WinXP partition from within Linux?
 
Ok, so I did something really dumb: I put a timeout of zero to my boot.ini in WinXP because I did not wanted to wait for the Win XP boot loader to decide wether I wanted Linux or Win (I have been in linux for about 5 days, and liked it very much).

The problem is that I cannot enter Windows anymore, and there's where I have all my files. Windows simply goes directly to Linux (using lilo in graph mode, by the way) and trying to enter to Windows by selecting that option in lilo does not work either since it immediately bounces back to lilo (remember the 0 seconds timeout?).

I'm desperate. I have a laptop so I do not have a separate WinXP OS to boot my computer with, only the "quick rescue disks" that came with my system; which are basically an image of an empty computer and will erase everything if restored. So i figured out that if I can edit the boot.ini file form within linux I could enter again WinXP, but NTFS is read-only, or at least that is what the shell tells me. Cannot chmode either (tried), it gives me a warning about the file system.

I'm using Mandrake 10 KDE, I also have a Slaxx live CD, SuSE live CD, MandrakeMove and even a Gentoo live CD available, in case it is needed to boot from outisde the HD. I have a customer waiting for some info, so this is kind of urgent. I would really appreciate your help on this.

rnice 09-25-2004 10:52 AM

Use a Windows XP boot cd...
Do a Google Search for Bart's Prebuilder for Windows XP Boot disk. You can download the right software and then it'll allow you to compile an iso. When you use the disk, look for a program called Total Commander to edit your boot.ini file.
It might take some time to get it to work, but it does... I've used it and it's great. I've had trouble with boot.ini in the past and this is the only thing that I found that saved me.
http://www.g4techtv.com/screensavers...indows_CD.html
all of the links you'll need are on this page

aixarat 09-25-2004 01:47 PM

OK, it worked with the previous suggestion. I found Bart's PE Builder at http://www.nu2.nu. The problem was that it required a WinXP computer to build te ISO, so I went to my girlfriend's laptop (which did not have a floppy drive) and created it. My system is back to work. Still, the question remains... is there a way to write to a NTFS partition from within Linux?

tuxrules 09-25-2004 02:11 PM

Quote:

Still, the question remains... is there a way to write to a NTFS partition from within Linux?
I believe its only experimental write support with the newest kernel. Not enough to convince me to write to NTFS. If you are concerned about your data on NTFS drive, dont write.

Gkarfield 09-25-2004 02:17 PM

did you try mount -t ntfs..............?

MartinN 09-25-2004 02:21 PM

The short answer to the question is no. NTFS is proprietary and Microsoft don't want to tell how it works. Because of that, every attempt at writing drivers for NTFS is extremely tedious.

One daring man tried a different approach:
http://www.jankratochvil.net/project/captive/
It uses the Windows ntfs driver file and emulates the rest of the Windows environment for it. Excellent idea, but rumours has it there are some "issues" with it. (Haven't tried it myself.)

Martin

JaakRandmets 09-25-2004 02:56 PM

you can build kernel 2.6.x with option to be able to write on ntfs partition, but i wouldnt recommend... you have big chance to loose data, its still quite experimental

CloudBuilder 09-25-2004 07:16 PM

Hello,

With Suse 9.1 I could at least read (over my network) from a machine running XP.

I didn't make a test in writing (but this story makes me curious and I'll try it), but I would suggest the following:

Do not overwrite any file. So write it back with another name, so you can test it out and in case of trouble throw it away.

To be safe, make a small vfat partition, copy from XP to vfat get it in Linux from VFAT and write it back........... then in XP read it from VFAT, or use a flop or usb stick with vfat.....

CloudBuilder

vectordrake 09-25-2004 11:07 PM

I often write to my XP NTFS partition (and I don't care whether it survives, either) with kernel 2.6.8, NTFS write access turned on (as in compiled in the kernel). It can be done.


All times are GMT -5. The time now is 05:25 AM.