Click to See Complete Forum and Search --> : Plz help! : reading NTFS files from Linux


*Malevolent*
03-12-2001, 02:30 AM
Hi

I'm dual booting Mandrake 7.2 with Windows 2000.

My Win 2000 is on NTFS file system.
I was wondering if there is a way to read files from NTFS file system while on Linux.

Do I need to mount the NTFS to do that???

Also is there a way to read the Linux files from Windows 2000?

Bradmont
03-12-2001, 02:35 AM
To get at the NTFS partition, you'll either have to load the appropriate module, or compile support directly into the kernel (I'm not sure if the NTFS module will come pre-compiled for mdk 7.2 [I don't know what kernel it's on] so you might have to compile a kernel from scratch [but don't worry, it's fun ;)]). As for accessing your linux partitions in windows, I'm pretty sure it can be done, but I'm not sure how (Maybe with Samba?)

Malakin
03-12-2001, 04:03 AM
To mount your win2k ntfs partition in Mandrake 7.2 you can do the following.

insmod ntfs
mkdir /mnt/windowsntfs
mount -t ntfs /dev/hda1 /mnt/windowsntfs

hda1 might be different on your system to found out which one just type "fdisk /hda/dev -l". /mnt/windowsntfs can be named whatever you want of course.

To keep this setting persistant between boots add "ntfs" to your "/etc/modules" file and add a line in your /etc/fstab" file. The line in your fstab file will look like this though "/dev/hda1 /mnt/windowsntfs ntfs user,exec,umask=0 0 0"

There's probably some software out there that allows you to read Linux partition in win2k but I'm not familiar with any.

optech
03-12-2001, 11:17 AM
as far as i know (i run mandrake 7.2 with win2k) you can't mount NTFS with write access... i could be wrong, but i've tried and it won't work for me...

you can switch your win2k to FAT32 though, and that makes it alot easier... only if you don't need NTFS though... and you'll need to back everything too

PLBlaze
03-12-2001, 12:01 PM
WIn2k NTFS ver. 5.0 will not get mounted write but read-only due to very experimental support in linux kernel.I belive you could override that but then most likely your partition would get destroyed...as far as windows (win2k for that matter) reading ext2 partition there's few utils,i've tried explore2fs with some success but got my ext2 partitons rendered unusable from improper handling so beware.
Freshmeat.net should have it listed,if you still want to try it out.Hope this helps.

wtsamatta
03-12-2001, 01:37 PM
I pretty sure that there is support for writing to ntfs partitions in the 2.4.x kernels. Help on this stresses that it is experimental and also suggests backing up all info before you try.

PLBlaze
03-12-2001, 02:23 PM
Here's what ya get when mounting win2k NTFS partiton under kernel 2.4.x


Mar 12 08:43:40 blazebox kernel: VFS: Mounted root (ext2 filesystem) readonly.
Mar 12 08:43:40 blazebox kernel: Freeing unused kernel memory: 228k freed
Mar 12 08:43:40 blazebox kernel: Adding Swap: 136544k swap-space (priority -1)
Mar 12 08:43:40 blazebox kernel: NTFS version 000607
Mar 12 08:43:40 blazebox kernel: Warning! NTFS volume version is Win2k+: Mounting read-only
Mar 12 08:43:40 blazebox kernel: page_buf cache Copyright (c) 2000 Silicon Graphics, Inc.
Mar 12 08:43:40 blazebox kernel: XFS filesystem Copyright (c) 2000 Silicon Graphics, Inc.
Mar 12 08:43:40 blazebox kernel: Start mounting filesystem: ide2(33,1)
Mar 12 08:43:40 blazebox kernel: Ending clean XFS mount for filesystem: ide2(33,1)
Mar 12 08:43:40 blazebox kernel: reiserfs: checking transaction log (device 21:03) ...
Mar 12 08:43:40 blazebox kernel: Using r5 hash to sort names
Mar 12 08:43:40 blazebox kernel: ReiserFS version 3.6.25


Hope this explains some more... :)