From blag.wiki.aktivix.org

Jump to: navigation, search



The NTFS filesystem is used in the Microsoft Windows NT series of operating systems, including 2000 and XP. There is a driver allowing access of NTFS filesystems in linux.

Use in BLAG 70K

NTFS comes built into BLAG 70K, so the use of NTFS is much simpler and will look something like this:

mkdir /mnt/win_c
mount /dev/sba1 /mnt/win_c

Installation for older system

There are two NTFS drivers for linux that you can use at the moment: the kernel module or the FUSE "ntfs-3g". ntfs-3g runs in userspace, requires at least a 2.6.18 kernel and also has read/write support (the older one does not).

BLAG 50000 users and users of older versions of blag should use the kernel module, and BLAG 60000 users and beyond should use the new "ntfs-3g" driver (however 50000 users may also users may also use ntfs-3g).

Kernel Modules

BLAG 30000 users should look at this page to find an appropriate kernel module. BLAG 50000 users might inspect this page. Choose the file that has the same version number as your kernel. You can find out your kernel version by typing:

uname -r # Current BLAG kernel is 2.6.11-1.14_FC3

You can find out if you are i686 or i586 by typing:

uname -m # Current machine is i686

If you are not i586 or i686 you may need to compile your own kernel module.

Download the RPM and install it by typing

rpm -Uvh nameofrpm.rpm

To start using the module without rebooting type the following as root:

/sbin/modprobe ntfs

Using the module

You may now edit your fstab file to include an NTFS partition.

Mounting NTFS Partitions Read/Write with Fuse

An alternative approach, at least with BLAG 50000, is to mount NTFS partitions read write using fuse. This may not be such a great idea. A normal user could easily hose a Windows install by mucking with the wrong directory. But though fuse is still considered experimental, I understand that, unlike some earlier FOSS tools, writing to a NTFS partition with fuse is not intrinsically dangerous. However I've noticed that when I've deleted or moved around a lot of files on a NTFS partition from Linux that sometimes Windoze wants to do a chkdsk upon booting, which takes a fair dollop of time, and requires yet another reboot to get to Windows.

1. Start a root terminal session.

2. Enter the following command:

apt-get install ntfs-3g

I do not believe they are necessary, but you could also add a few more files.

 apt-get install fuse fuse-libs ntfsprogs ntfsprogs-gnomevfs

3. In order to mount your NTFS partition at boot up you have to edit a file called /etc/fstab. First create a directory in which to mount your NTFS partition. From your root terminal type something like:

 mkdir /win

You can put the mount directory anywhere you want. Many prefer something like /mnt/win or /media/bgates or whatever.

4. Figure out where Linux thinks you NTFS partition is by issuing this command (as root).

 /sbin/fdisk -l

5 (a). From you root prompt fire up a text editor with a command like:

   gedit /etc/fstab

Add a line to your 'fstab' like this:

 # 1st partition of Primary Slave IDE
 /dev/hdb1    /win   ntfs-3g    rw,defaults,umask=0000  0 0
 # 1st partition of Primary Master SATA
 /dev/mapper/pdc_feddaiicp1 /media/sda1          ntfs-3g defaults        0 0

Adjust the line to wherever your NTFS partition resides (see #4 above) and where you created your mount directory.

You may have to reboot to make all this take effect. However I don't believe I had to do so. I just issued the command:

 # mount -a

5 (b). Alternatively, you may mount the partition with a command like this:

 mount -t ntfs-3g /dev/DEVICE /media/MOUNTPOINT
 # mounting 1st partition of Primary Master SATA
 mount /dev/mapper/pdc_feddaiicp1 /media/sda1 -t ntfs-3g

--Praxis 09:14, 31 Jul 2006 (BST)

Stevo32 01:50, 9 January 2007 (UTC)

--Gr00ve 23:03, 19 January 2007 (UTC)

Personal tools