Is there a way to modify/edit/erase a file in a WinXP partition from within Linux?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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?
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.
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.)
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
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
Last edited by CloudBuilder; 09-25-2004 at 07:20 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.