On Tue, 02 Dec 2003 01:42:52 +0100 Redeeman <[EMAIL PROTECTED]> wrote:
> ntfs READ is rock solid in linux, never tried to write, but in the new > 2.6 partly stabile write support is > > > > Seems like doing it, but I'm suspicious about NTFS and the linux > > kernel. Has it got out of EXPERIMENTAL ? > > > > I lost a great deal of data using mandrake one year ago and writing > > one file to an NTFS partition. (it was backed up though) > > All files disappeared. Folders left undestroyed. More recent info: http://linux-ntfs.sourceforge.net/ The following was done in the last hour. I love linux. I had recently installed winxp (ntfs) on hdd1, new 80 gig drive. I didn't partition it when I installed it, so there is plenty of room on the drive. After reading the thread, and the above link, I decided, what the hell. (What I should have done, and didn't, is a checkdisk and defrag in winxp first, of course, and I would recommend it. I had just installed winxp so I was reasonable sure my drive wasn't too hosed up yet, and I wouldn't loose anything but saved games in CivIII and Rise of Nations if I screwed up.) RULE #1: READ THE MAN PAGES! I had added ntfs file system and rebuilt the kernel, I did it as module. Rebooted. Made new/etc/fstab entry and appropriate mount point: /dev/hdd1 /mnt/winxp ntfs ro,noauto,users 0 0 Then I did "emerge ntfsprogs" root# man ntfsresize root# ntfsresize -n -s 40G /dev/hdd1 The -n flag is a dry run. ntfsresize told me that it couldn't do that, but it could resize to 41G, wasn't that polite of it? root# ntfsresize -s 41G /dev/hdd1 Then ntfsresize reminds you to rewrite the partition table. I used cfdisk for that. It's part of sys-apps/util-linux so you have it installed already. root# man cfdisk root# cfdisk /dev/hdd Main thing here is to get the size right, as it won't show you whatever you resized to using ntfsresize. I deleted the one big partition cfdisk showed, then create the 1st partition 41000mb, type ntfs (07), and bootable. I made the rest a linux partition, so now /dev/hdd1 is around 41Gb, and hdd2 is about 39Gb. Then I wrote the partition table, then exit cfdisk. ok dokey. Now I wanted to give winxp a chance to heal its ntfs partition, so I rebooted into winxp, chkdsk detected a change and did whatever proprietary bs that it does to make things right. YAH! WindowsXP now has a drive with a new size! Chkdsk was the only non-opensource tool I used for this, and it did everything automagically. Next, I made sure my mission critical programs worked. CivIII and Rise of Nations started, so I'm good there.=) Editorial Comment: It's pretty funny that the only thing I use windows for is games. I should just get a PS/2, I guess, but I make money fixing other peoples windows boxes, so what can I do? I keep remembering the line in the Wizard of Oz, when the Wizard tells Dorothy "Times being what they are, I took the job." and Dorothy just nods in agreement. Ok, rebooted back to linux, comes up just fine. I need another /etc/fstab entry: /dev/hdd2 /mnt/backup reiserfs noauto,noatime,notail,users 0 0 root# mkdir /mnt/backup root# mkfs -t reiserfs /dev/hdd2 Both new partitions mount just fine in linux, thank you very much. Now I can use that 39Gb partition to back up my /home and /root so if I hose my drive, I don't loose valuable data. Now, where was that thread on backups... I think rdiff-backup might be the way to go there... =) Neal -- ________________________________________ ( Hlade's Law: If you have a difficult ) ( task, give it to a lazy person -- they ) ( will find an easier way to do it. ) ---------------------------------------- o ^__^ o (oo)\_______ (__)\ )\/\ ||----w | || || -- [EMAIL PROTECTED] mailing list
