PDA

View Full Version : mount ntfs drive as read write



dcleghorn
02-28-2006, 04:35 PM
Hello,

HELP!!

One of my Windows 2000 servers crashed horriblly with a registry hive problem. I wanted to get in with Knoppix to replace this particular registry hive file but cannot seem to mount the drive as read/write.

Can you correct my flawed syntax:

mount -t ntfs -o umask=775 /mnt/sda2

Im trying to mount the drive as NTFS and as totally writeable. What am I doing wrong???

Thanks in advance!!!!!

:D

nad
02-28-2006, 04:43 PM
You can not mount an ntfs read/write with the current drivers in knoppix.

dcleghorn
02-28-2006, 05:31 PM
Oh, well that would explain it.

Thanks.

markpreston
03-02-2006, 10:46 PM
Hi dcleghorn,
I believe you can mount ntfs read / write with the latest Knoppix, but it is a bit more involved.
I originally posted this to http://www.knoppix.net/forum/viewtopic.php?t=21373, but it seems to keep cropping up.
Regards,
Mark

The following SNAPSHOT information (see below) is taken from the /dvd/KNOPPIX/linux-ntfs directory of Knoppix 4 (Linux Magazine November 2005 cover edition) regarding the recently current state as far as writing to ntfs partitions. This uses libntfs. (The Open-Source linux-ntfs library not the kernel driver, which is derived from it). The kernel module is usually about 6 months behind libntfs. According to the article by Klaus Knopper you can now delete files and directories, and create up to 9 new files or subdirectories within a directory. It is complicated to recompile every program to use libntfs for write operations, so they use the FUSE kernel module and a utility called ntfs-mount to actually mount the NTFS partition.
Hopefully the above background information will help when reading the SNAPSHOT information for developers below.
Regards,
Mark



LINUX-NTFS DEVELOPMENT SNAPSHOT
===============================

This version of KNOPPIX contains preliminary support for writing to
NTFS filesystems using the "filesystem in userspace" module [1],
plus a current (16-08-2005) snapshot of the linux-ntfs development
[2].

Both are preinstalled on this CD. Note that a "normal" mount of
an ntfs partition (by clicking on a partition in KDE, for example)
uses the safe version of the "read-only" linux-ntfs kernel module,
which has very limited but safe overwrite-capabilities, and most
certainly will NOT destroy your NTFS partitions accidentially.

In order to test and use the extended write capabilities of the
developer snapshot of linux-ntfs, you will have to follow the
commandline instructions below.

DISCLAIMER: THIS DEVELOPER'S SNAPSHOT VERSION OF LINUX-NTFS IS
EXPERIMENTAL AND YET INCOMPLETE. IT IS STILl EXPERIMENTAL SOFTWARE.
USE AT YOUR OWN RISK. MOST LIKELY, SOMETHING WILL BREAK IF YOU
USE THIS SOFTWARE WITHOUT CAUTION. KNOPPER.NET CAN NOT BE HELD
LIABLE UNDER ANY CIRCUMSTANCES FOR DAMAGE TO HARDWARE OR
SOFTWARE, LOST DATA, OR OTHER DIRECT OR INDIRECT DAMAGE RESULTING
FROM THE USE OF THIS SOFTWARE. IF THESE CONDITIONS ARE INACCEPTABLE
TO YOU, DON'T USE THIS SOFTWARE.

After that being said, here are the instructions. It is assumed that
you do this as "knoppix" user from the live filesystem. Make sure you
have a backup of all important data on your computer before.

# Step 1: Load the "Filesystem in Userspace" module.
sudo modprobe fuse

# Step 2: Make NTFS partition (example: /dev/hdd1) accessible for
# unprivileged users.
sudo chmod 666 /dev/hdd1

# Step 3: Create a mountpoint in your user home directory.
mkdir $HOME/ntfs

# Step 4: Mount the partition read/write
ntfsmount $HOME/ntfs -o dev=/dev/hdd1

You should now be able to access the content of the NTFS partition
at $HOME/ntfs. Don't forget to

# Step 5:
fusermount -u $HOME/ntfs

after you are done experimenting.

Please address technical contributions (debugging output, patches,
corrections) to the NTFS development team [2], but it does not make
much sense at this point to ask usability questions like "when
will official NTFS write support be in the kernel?" or "why is
NTFS so difficult", at this early stage.

Resources:
[1] http://fuse.sourceforge.net/ Filesystem in Userspace
[2] http://linux-ntfs.sourceforge.net/ Linux-NTFS Project