LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-25-2004, 10:40 AM   #1
aixarat
LQ Newbie
 
Registered: Sep 2004
Location: Morelia México
Distribution: OpenSuSE11/Ubuntu Hardy/RH/Etc..
Posts: 14

Rep: Reputation: 0
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.
 
Old 09-25-2004, 10:52 AM   #2
rnice
LQ Newbie
 
Registered: Sep 2004
Location: Maryland
Distribution: Red Hat 9
Posts: 13

Rep: Reputation: 0
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

Last edited by rnice; 09-25-2004 at 11:45 AM.
 
Old 09-25-2004, 01:47 PM   #3
aixarat
LQ Newbie
 
Registered: Sep 2004
Location: Morelia México
Distribution: OpenSuSE11/Ubuntu Hardy/RH/Etc..
Posts: 14

Original Poster
Rep: Reputation: 0
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?
 
Old 09-25-2004, 02:11 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
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.
 
Old 09-25-2004, 02:17 PM   #5
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
did you try mount -t ntfs..............?
 
Old 09-25-2004, 02:21 PM   #6
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
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
 
Old 09-25-2004, 02:56 PM   #7
JaakRandmets
LQ Newbie
 
Registered: Sep 2004
Location: estonia
Distribution: debian
Posts: 21

Rep: Reputation: 15
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
 
Old 09-25-2004, 07:16 PM   #8
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
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

Last edited by CloudBuilder; 09-25-2004 at 07:20 PM.
 
Old 09-25-2004, 11:07 PM   #9
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
which file to edit to modify source code in red hat 9.0 vinaymudgil007 Linux - Software 1 11-17-2005 06:38 AM
cant modify a file on mounted FAT partition dwarf007 Linux - Newbie 7 09-24-2004 08:02 AM
I have a file over 10. megs and I want to xfer it to my WinXP partition. AMArt79196 Linux - Software 4 07-06-2004 05:37 AM
WinXP computer--modify for Linux 3.1416 Linux - General 9 06-08-2004 08:46 PM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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