-
HOWTO: NTFS with read/write support using the ntfs-3g (easy & safe method)
Introduction :
Support of NTFS partition for linux has always been a problem. Projects exist since many years but was always experimental, and was claim to be not safe. On the 14th of July 2006, a developer of the linux-ntfs team, Szabolcs Szakacsits, revolution this area by releasing a new driver ntfs-3g which claimed to provide full read/write support for all NTFS partition. After months of successful testing by hundreds of thousands of users in beta status, ntfs-3g is now fully stable.
For more information on ntfs-3g : http://www.ntfs-3g.org/
But now you probably want to test this great new feature. So let's start.
Note : You could also use the different traduction of this Howto (ask me to add yours here ;) ):
In french
In portuguese
In german
In spanish
In chinese
Before starting : Please read attentively the instructions, and don't do a simple copy/paste like a lot of people do. I propose 2 ways of configuring ntfs-3g, and if you don't read the instructions, you'll finish by doing the 2 (don't laugh, it happened to more people that you could expect)
1. Set up your sources :
To get the latest ntfs-3g, you will need first to add a repository to your source.list. Open a terminal and type:
Code:
gksu gedit /etc/apt/sources.list
At the end of the file, just add one of the following mirror:
Warning : This repo don't contain amd64 packages. See at the end the amd64 section for more informations.
Feisty users don't have to deal with additionnal repository, all is already in ubuntu repo.
For DAPPER :
Code:
deb http://flomertens.free.fr/ubuntu/ dapper main main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ dapper main main-all
deb http://flomertens.keo.in/ubuntu/ dapper main main-all
For EDGY :
Code:
deb http://flomertens.free.fr/ubuntu/ edgy main main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ edgy main main-all
deb http://flomertens.keo.in/ubuntu/ edgy main main-all
The main channel contains the latest ntfs-3g package and an up to date fuse package.
The main-all channel contains modified and unofficial version of pmount and hal (only for dapper) to have a better integration of ntfs-3g in the desktop, and to be able to use ntfs-3g with external device. It also provide a configuration tool, ntfs-config. If you want to configure your system manually and don't need integration in gnome or kde, you can disable this channel.
2. Installation :
Packages of my repository are authenticated with a gpg key. To use it, you should execute the following command :
Code:
wget http://flomertens.keo.in/ubuntu/givre_key.asc -O- | sudo apt-key add -
or
Code:
wget http://flomertens.free.fr/ubuntu/givre_key.asc -O- | sudo apt-key add -
First, upgrade your system :
Code:
sudo apt-get update
sudo apt-get upgrade
Be carfull the choice is here ;)
Now you have the choice between an automatic configuration (via ntfs-config) or a manual configuration.
3. Automatic Configuration :
If you go for the automatic configuration, install ntfs-config. It will automaticly install ntfs-3g :
Code:
sudo apt-get install ntfs-config
Now, it's rather easy. Just launch ntfs-config via the menu (in system tools) or via the terminal :
If your NTFS partitions are not yet configure, it will ask you to choose a name that will be use as mount point. Just put the name you want.
Then just enable write support for internal and/or external device, and that's all.
3(alternative). Manual Configuration :
If you go for the manual configuration, just install ntfs-3g :
Code:
sudo apt-get install ntfs-3g
When all is install correctly, we need to configure the NTFS partition to be mount by ntfs-3g.
External device are automatically configure when plug, so you don't need to do this part for them.
To know first the name of your NTFS partition, type in a terminal:
Code:
sudo fdisk -l | grep NTFS
you will see in the first colone, the name of your NTFS partition(s).
Now you need to configure them in /etc/fstab. We will also make a backup of this file. In a terminal, type:
Code:
sudo cp /etc/fstab /etc/fstab.bak
gksu gedit /etc/fstab
locate the line of your NTFS partition. If they are there, just change them so it looks like that:
Code:
/dev/<your partition> /media/<mount point> ntfs-3g defaults,locale=en_US.utf8 0 0
(of course replace <your partition> & <mount point> by your configuration)
If your partition is not there, you'll have to first create a directory where you would like to mount it :
Code:
sudo mkdir /media/<the name you want>
and add a line at the end of the file like the one above.
Tips: You can change your locale option ( for ex locale=fr_FR.utf8 ). Execute 'locale -a' in a terminal to know which one are supported by your system.
Tips2: If you want to now more about the option available, have a look at 'man ntfs-3g'
Now remount all your drive
Code:
sudo umount /dev/<your partition>
sudo mount -a
or simply reboot.
4. Time to start :
Now some important point,
- Before using it, have a look at the WHAT YOU COULDN'T DO category.
- Look at the COMMON PROBLEM section before asking.
5.(optional) For own compile kernel
If you have compile your own kernel (not from the repo), fuse is probably not implemented. To check that:
If it return nothing, you will need to compile it yourself.
Install the source:
Code:
sudo apt-get install fuse-source
and have a look at /usr/share/doc/fuse-source/README.Debian to know how to compile it.
6. For amd64 users :
My repo don't contain amd64 packages so to use ntfs-3g for this arch.
For dapper, you'll have to complile the needed package yourself with those instructions
This will replace step 1 and 2, you'll have then to follow step 3 and 4.
For edgy, ntfs-3g is in universe, so you'll not need my repo, but to use NTFS external device, you'll need a modified version of pmount that i provide in my repo. To install it, follow those instructions
WHAT YOU COULDN'T DO :
The present limitations of this driver are
- access to encrypted files
- writing compressed files (reading is ok)
- change file ownership and access right
COMMON PROBLEM :
* The gnome Trash don't support neither ntfs filesystem nor fat32 filesystem, so when you delete files with nautilus, they don't go in the trash, but in an hidden directory, at the root of the partition, call .Trash-<username>. So to 'empty the trash', you'll have to show hidden files (<Ctrl><H>) and use the suppr function of nautilus on this directory (<Shift><Suppr>)
* Checking manually your partition in windows, chkdsk can report the bellow message :
Cleaning up N unused index entries from index $SII of file 0x9.
Cleaning up N unused index entries from index $SDH of file 0x9.
Cleaning up N unused security descriptors.
These messages are part of an optimization process which is
completely independent of ntfs-3g. Nothing to worry about them.
* If your external device don't show up on the desktop when plug, that could mean that it fails because of a wrong configuration, or an unclean device. To know what is the problem, you should mount it using the terminal, with :
Code:
pmount-hal /dev/sda1
Of course, replace /dev/sda1 by the name of your partition.
Post a message here if you don't know what to do.
* If your internal device is not mounted at boot time, try in a terminal :
* If you get this error :
Code:
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/hdc1': Operation not supported
Mount is denied because NTFS logfile is unclean. Choose one action:
Boot Windows and shutdown it cleanly, or if you have a removable
device then click the 'Safely Remove Hardware' icon in the Windows
taskbar notification area before disconnecting it.
Or
Run 'ntfsfix' on Linux unless you have Vista, then mount NTFS with
the 'force' option read-write, or with the 'ro' option read-only.
Or
Mount the NTFS volume with the 'ro' option in read-only mode.
boot windows, and then shutdown and boot ubuntu (100% guarentee of success).
If you don't dual boot, get ntfsfix from the ntfsprogs package, run it on the windows device, and add the 'force' option in /etc/fstab for your windows device.
* More common problem ? look at the ntfs-3g FAQ : http://www.ntfs-3g.org/support.html
NEWS:
08 February 2007 :
* ntfs-3g is now RC1 :)
21 January 2007 :
* Update of the latest ntfs-3g 0.20070118-BETA, and the latest fuse 2.6.1 in the main repo.
For the full ChangeLog, have a look here : http://ntfs-3g.org/releases.html
* New easy method to configure ntfs-3g via ntfs-config.
31 Octobre 2006 :
* New upstream release : ntfs-3g-0.20061031-BETA
- fix: unmount was asynchronous; full fix requires FUSE 2.6.0 as well
- fix: mount was denied if $MFTMirr was too small
- fix: option parsing was incorrect if there was no space between name & argument
- change: new software versioning
22 September 2006 :
* New upstream release : ntfs-3g-20070920-BETA
- fix: file creation at disk-full may lead to i/o errors
- fix: statistic of inodes and free inodes was incorrect (df -i)
- fix: the 'umask' option wasn't always parsed as an octal number
- fix: "too long filename" handling wasn't posix compliant
- fix: mount failed if $MFTMirr had unused garbage at the file end
10 September 2006 :
* New upstream release : ntfs-3g-20070910-BETA
- fix: rename was always denied if the target file or directory existed
- fix: renaming like 'foo' -> 'FOO' was denied in the WIN32 namespace
- fix: fuse kernel module is automatically loaded, no need for config
- fix: verbose mount error messages with hints for solutions
- fix: compilation failed with gcc 2.96
- change: top request: full read-write access to everybody by default
- change: file lookups are always case-sensitive
Wha, finish. If you have some problem, let a message, and share your experience 8)
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
This actually worked... I'm .. amazed!! Thanks!
Code:
xxxx@Aida:~$ sudo mount -a
Couldn't set locale to en_EN.utf8 thus you may not see properly or at all some files.
I get that though .. but it all work still
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
This locale is probably not supported for your system.
To know which one you can use, do:
Code:
more /var/lib/locales/supported.d/local
Ex:
Code:
fr_FR.UTF-8 UTF-8
en_US.UTF-8 UTF-8
so if you are american and want to use en_US.UTF8, just remplace locale=en_EN.utf8 with locale=en_US.utf8 in /etc/fstab
I will change the default to en_US since it is the more common option. Sorry guys from everywehere else 8)
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Works perfectly here,
With external hard drives you just have to install this program no configurations were necessary.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I had done a previous tutorial to set up read/write support for NTFS. Now that I've done this tutorial (and everything is working well :) ) using ntfs-3g, do I need ntfsprogs anymore or is this replacing that?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
You don't need it anymore, ntfs-3g is a total remplacement of the further method.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
Cyraxzz
Works perfectly here,
With external hard drives you just have to install this program no configurations were necessary.
how did u get this to work on external hard drive it only works on internal harddrive since you only change the option in fstab?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
working superb on edgy! great and simple how-to ! congrats
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Haani - this should work fine on any external usb drive,
You can even mount it in fstab (/dev/sda1) mine is workin very well
deleted 80Mb and copied another 102Mb over to the drive no loss all OK and very fast.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Problem here. When I mount the drives only the first one shows up on my desktop. Also, when I do "umount -a" and then "mount -a" my external drive does not remount. Even after I power it off and on again. Any help?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
When I mount the drives only the first one shows up on my desktop.
no way around that yet. It only links the first drive under ntsf-3g in fstab. You can always create a bookmark in nautilus for the others you don't see on the desktop.
Quote:
when I do "umount -a" and then "mount -a" my external drive does not remount.
using "mount" command will not give you full access and will most probably conflict with fuse command. man ntsf-3g for proper commands.
>Mount /dev/hda1 to /mnt/windows using ntfs-3g:
Root access only:
Code:
sudo ntfs-3g /dev/hda1 /mnt/windows
Full access for all users:
Code:
sudo ntfs-3g /dev/hda1 /mnt/windows -o silent,umask=0,locale=utf8
> Umount /mnt/windows:
Code:
sudo fusermount -u /mnt/windows
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Normaly, there is no restriction to use mount instead of ntfs-3g or fusermount, since mount is the only command use at boot time to mount partition. mount will just call the ntfs-3g driver, which will call fusermount to mount the partition.
But yeah, if it doesn't work you can always try that.
EDIT: this is avaible, IF ONLY the drive you want to mount is in /etc/fstab and have ntfs-3g for driver.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Hi,first thx for tutorial and sorry 4 my english, but i have problem when i mount ntfs partitions,(i have 2 harddisks, one with dapper, other with 2 partition ntfs), when I type "mount -a", no errors, but only can access one ntfs partition, the other partition i cant access it, gnome error i see:
mount: según mtab, /dev/fuse ya está montado en /media/windowsi
montaje erróneo
THx 4 helps :)
ByyeS!!!
PD. other time sorry for my english :-#
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I don't really understand spanish :cool: but let see first your /etc/fstab , /etc/mtab, and the result of sudo fdsik -l.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Thx 4 help, "traduction error" :p
gnome error i see:
mount: según mtab, /dev/fuse ya está montado en /media/windowsi
/dev/fuse already is mounted in /media/windowsI
montaje erróneo
error mount
fdisk -l
/dev/hda1 * 1 7696 61818088+ 7 HPFS/NTFS
/dev/hda2 7697 19457 94470232+ f W95 Ext'd (LBA)
/dev/hda5 7697 19457 94470201 7 HPFS/NTFS
(hda1 is mounted but hda5 error)
fstab:
/dev/hda1 /media/windowsC ntfs-3g silent,umask=0,locale=es_ES.utf8 0 0
/dev/hda5 /media/windowsI ntfs-3g silent,umask=0,locale=es_ES.utf8 0 0
mtab:
/dev/hdb6 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
varrun /var/run tmpfs rw 0 0
varlock /var/lock tmpfs rw 0 0
procbususb /proc/bus/usb usbfs rw 0 0
udev /dev tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
devshm /dev/shm tmpfs rw 0 0
lrm /lib/modules/2.6.15-26-386/volatile tmpfs rw 0 0
/dev/hdb7 /home ext3 rw 0 0
/dev/hdb2 /media/FAT32 ext3 rw 0 0
/dev/fuse /media/windowsC fuse rw,nosuid,nodev,noatime,default_permissions,allow_ other 0 0
/dev/fuse /media/windowsI fuse rw,nosuid,nodev,noatime,default_permissions,allow_ other 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/hdc /media/cdrom0 iso9660 ro,noexec,nosuid,nodev,user=pery 0 0
I only can mount 1 partition ntfs, i mount partition with ntfs-3g and works nice, but when i mount the 2º partition, error /dev/fuse already is mounted, i think is occupied in the first partition ](*,)
Thx 4 helpsss :)
ByyeS!!!
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I have only one NTFS partition so i couln't try it, but like said before, you will have access to only the first NTFS partition in fstab from place>cumputer or from the desktop.
But your partition will be mounted in /media/windowsI and you can view it with nautilus. You can even make a bookmark to this directory.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I dont have write rights.
My fstab:
Code:
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb6 /boot ext3 defaults 0 2
/dev/hdb8 /home ext3 defaults 0 2
/dev/hda1 /media/hda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/hda5 /media/hda5 vfat defaults,utf8,umask=007,gid=46 0 1
/dev/hdb2 /media/hdb2 vfat defaults,utf8,umask=007,gid=46 0 1
/dev/hdb5 /media/hdb5 vfat defaults,utf8,umask=007,gid=46 0 1
/dev/sda1 /media/sda1 ntfs-3g silent,umask=0,locale=pl_PL.utf8 0 0
/dev/sda2 /media/sda2 ext3 defaults 0 2
/dev/sda5 /media/sda5 ext3 defaults 0 2
/dev/hdb7 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
I want to have only on sda1 ntfs-3g.
Drive is mounted good, whithout any errors.
What should I do?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Have a look at 'man ntfs-3g'.
Currently the owner and the group is set to root, but umask=0 make the dirve R/W for everybody.
You could try to add the option uid=1000,gid=1001, but i guess your problem is something else. What are the permissions and the owner of the file in this drive?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
Have a look at 'man ntfs-3g'.
Currently the owner and the group is set to root, but umask=0 make the dirve R/W for everybody.
You could try to add the option uid=1000,gid=1001, but i guess your problem is something else. What are the permissions and the owner of the file in this drive?
Owner: root
Group owner: plugdev
dr-xr-x---
1200550
This is properties from Desktop Drive icon
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Are you sure that the umount -a work for /media/sda1?
Close all apps looking at /media/sda1 and retry.
Try to reboot if it doesn't work.
EDIT: also instead of umout -a, you should try umount /dev/sda1, and remount it
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
ntfs-3g is now officialy a project of linux-ntfs.org.
Annoncement :
Quote:
There is currently lots of progress being made in the linux-ntfs project, and we are once again moving one step closer to a full implementation of a read/write ntfs driver for linux.
On 07/14/2006, Project Member Szabolcs Szakacsits presented a new version of ntfsmount and libntfs, currently given the beta-title ntfs-3g. This new driver has, apart from several rather unlikely cases, full read/write capabilities and has improved performance. As news spreads quickly, it has already been downloaded and tested by many users, and no incident has been reported so far. Despite of that it is still to be considered beta, and will upon successfull testing merge (in some way or the other) into the linux-ntfs ntfsprogs package.
The merge with the other project (ntfsmount) will come soon. Last things is to find a name to this new driver. You can vote on their site: http://linux-ntfs.org/
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
Are you sure that the umount -a work for /media/sda1?
Close all apps looking at /media/sda1 and retry.
Try to reboot if it doesn't work.
EDIT: also instead of umout -a, you should try umount /dev/sda1, and remount it
Reboot solved problem. Thanks
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
How do we do this on AMD64 ?
I get these errors:
Code:
dpkg: error processing libfuse2_2.5.3-1_i386.deb (--install):
package architecture (i386) does not match system (amd64)
dpkg: error processing fuse-utils_2.5.3-1_i386.deb (--install):
package architecture (i386) does not match system (amd64)
Errors were encountered while processing:
libfuse2_2.5.3-1_i386.deb
fuse-utils_2.5.3-1_i386.deb
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
<* FALSE INFORMATION *>
64 bit system will have to wait. It seams that it need a little of coding before they launch a 64 bit version.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I can't get this working with my external HD. My drive partition is named
So I entered the proper line in fstab because it didn't have a line (being a usb connected external harddrive). I told it to mount to /mnt/windows. When I get to the part where I'm supposed to sudo umount -a I get this error:
Code:
umount: /dev: device is busy
umount: /var/run: device is busy
umount: /: device is busy
Then after that if I try to sudo mount -a despite the errors, I get:
Code:
Couldn't mount device '/dev/sde1': Operation not supported
Windows did not shut down properly. Try to mount volume in windows, shut down and try again.
Mount failed.
If I remove that line out of fstab, my drive will mount properly, but without write available. What am I doing wrong?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Lel the line in /etc/fstab and reboot, that should solve your problem.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
Lel the line in /etc/fstab and reboot, that should solve your problem.
Do you mean Del the line? if so, as I wrote earlier, if I take this line out of fstab, it will mount properly, but without the write feature.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
You can also install ntfs-3g from
Code:
deb http://www.elisanet.fi/mlind/ubuntu dapper main
Then add yourself to fuse group and mount drives using -o umask=0007,gid=116
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
mlind
You can also install ntfs-3g from
Code:
deb http://www.elisanet.fi/mlind/ubuntu dapper main
Then add yourself to
fuse group and mount drives using
-o umask=0007,gid=116
Why do you need to create a special group for fuse user. It's better to use it like other partition, with the classical option : uid & gid. :cool:
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
<--EDIT : Old test -->
I made some intensive test to see the performance and the stability of this new driver :
My hardware:
Laptop Dell 510m
Pentium M 1.6 G
1024 Mo DDR
HD 5200 tr/min
1. Copy of 745 files for a total of 655,3 Mo
EXT3 -> NTFS : 2min 02s
0 % failure
0 % corruption
2. Copy of 2 movie for a total of 1167 Mo
EXT3 -> NTFS : 2min 37s
0 % failure
0 % corruption
3. Copy of 5986 files for a total of 642,6 Mo
EXT3 -> NTFS : 3min 23s
1 failure (operation not permit) -> 0,000167056 % failure
but because the operation stop before -> 0 % corruption
4. Copy of 2794 files for a total of 63,3 Mio
EXT3 -> NTFS : 9.5s
EXT3 -> EXT3 : 14.7s
0 % failure
0 % corruption
5. Copy of 1 movie for a total of 485 Mo
EXT3 -> NTFS : 1min 1s
EXT3 -> EXT3 : 46s
0 % failure
0 % corruption
CONCLUSION:
To test the possibility of corruption, i reboot to windows, and test, not each files,
but randomly a lot of them, and i encounter not the single problem.
What is good with fuse is that it stop the service before it could do possibily something wrong.
I encounter 1 failure for 1 file on the 9529 i test, it means finaly:
0,000104943 % of failure
0% of corruption
This new driver is not yet perfect but it's near to the perfection, and the percentage of failure is so low that it's quite acceptable for a desktop usage i think. On top, seens it dosn't lead to a corruption of the drive. it's also totaly safe.
And quite speed also, it even bit ext3 for a copy of lots of file in few size.
This is something i waited for a long time. This is really important for newbie. One less reason to return to windows 8)
Share your tests.
-
1 Attachment(s)
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Can you tell me what I did wrong? Mine does not work. I got lost at step 3. I did not know what to put on <mount point>. Here is what I copied. I am a newbie to Linux.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/sdb1 /media/windows ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
When I try to open the partition, I get the error below.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Thank you, its working... but,
no confirmation for delete! Hit delete and its gone!
lol.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
harryhoudini66
Can you tell me what I did wrong? Mine does not work. I got lost at step 3. I did not know what to put on <mount point>. Here is what I copied. I am a newbie to Linux.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/sdb1 /media/windows ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
When I try to open the partition, I get the error below.
Type
to mount all drives. You need to be the super user to mount/unmount drives. Also to do the above command, you must be something called a sudo-er. If the above command doesnt work and says
Will report incident blah blah
It means your name is not there in the
file also. So, type
enter password and then type
Should work!
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I got this error when I ran the command:
harryhoudini66@linux:~$ sudo mount -a
Password:
fusermount: failed to access mountpoint /media/windows: No such file or directory
fuse_mount failed.
Unmounting /dev/sdb1 (DSK1_VOL1)
harryhoudini66@linux:~$
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I think the problem relates to the <mount point>. What is that? I made a directory and called it windows. I then assumed that is what went in <mount point>.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Here is what I get when I do step 3:
/dev/sdb1 * 1 30401 244196001 7 HPFS/NTFS
/dev/sdc1 1 24792 199141708+ 7 HPFS/NTFS
My fstab looked like this and does not have the sdc1 listed.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
Lets say I make a directory called XPPro, how is my fstab supposed to look?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Got it to work. The command above appears bring up a diffrent name for my device. The correct one was sdb1 instead of sdc1. Once I changed that it worked great.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I have several windows drives. Using the ntfs filesystem in fstab to mount them (which was the default from the Ubuntu install) makes them all show up on the desktop. Now for some reason only the first drive listed in fstab shows up on the desktop. The rest don't and if I double click them under Places->Computer, I get this error:
Code:
Unable to mount selected Volume:
mount: according to mtab, /dev/fuse is already mounted on /media/sata
mount failed
But the mount points are working fine - so if I navigate to /media/sata and do 'ls' I can see my files. Deleting also works so the new driver appears to be working.
Can anyone explain why this is happening and what the solution is?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Unfortunatly, there is no solution for this problem. ntfs-3g use fuse to mount partition. The system refer to /dev/fuse which refer to all the partition it control... So all for the system, it's like that all your NTFS partition are /dev/fuse. If you do 'more /etc/mtab' in a terminal, you will see it. The consequence is that gnome can only show one (the first one) on the desktop and on place>cumputer.
If you want to be able to access them quikly, you can make a bookmark in nautilus, or you could also mount you partition in your home.
Ex:you can make a directory call windows in your home and change the mount point to /home/<your username>/windows in /etc/fstab.
You don't need to mount them in /media, if i made the HowTo like that it's only because the partition mounted in /media are show on the desktop, and for newbie, it's quite important to see them, just like windows do it.
Hope that will help. 8)
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
Why do you need to create a special group for fuse user. It's better to use it like other partition, with the classical option : uid & gid. :cool:
Hmm. fuse-tools package creates 'fuse' user automatically for me. I think using groups are the best way to grant privileges to restricted resources.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
<* FALSE INFORMATION *>
64 bit system will have to wait. It seams that it need a little of coding before they launch a 64 bit version.
I am running AMD64 also. Will ntfs-3g work under 32-bit chroot environment? Thanks!
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
This is what i got when i typed "sudo umount -a"
umount: /dev: device is busy
umount: /var/run: device is busy
umount: /: device is busy
and for the next command it was this -
fusermount: failed to access mountpoint /media/hdb1: No such file or directory
fuse_mount failed.
Unmounting /dev/hdb1 (HP_PAVILION)
what have i done wrong ?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
visvak
This is what i got when i typed "sudo umount -a"
umount: /dev: device is busy
umount: /var/run: device is busy
umount: /: device is busy
That's normal
Quote:
Originally Posted by
visvak
fusermount: failed to access mountpoint /media/hdb1: No such file or directory
fuse_mount failed.
Unmounting /dev/hdb1 (HP_PAVILION)
what have i done wrong ?
you need to create the directory where to mount your partition:
Code:
sudo mkdir /media/hdb1 #in your case
Remenber that device & mount point are different. If your drive is detected, device always exist and will be in /dev. In your case, i guess your partition is /dev/hdb1.
Mount point is the directory where is mount your partition in your filesystem. Ex: your root partition is mounted on /
So you have to create the directory where will be mount your partition before mounting it (it will not create it automaticly).
I hope that will help you . 8)
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
mlind
Hmm. fuse-tools package creates 'fuse' user automatically for me. I think using groups are the best way to grant privileges to restricted resources.
Your right, but what i wanted to say is why wanted more restriction for an NTFS partition than for an other partition not mounted by fuse. Creating a group of user, and set gid='this group' for all your partition where you want restricted permission is i think more easy. Anyway, that's just my point of view.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
jixun
I am running AMD64 also. Will ntfs-3g work under 32-bit chroot environment? Thanks!
I can't test it, and since i'm not really familiar with 32-bit chroot environement on 64-bit system, i don't really know if this will work.
If you are not affraid by the experience,
if you made some backup, and
if you don't care of the possibility of losing a drive, i want to say let's try.
But i don't recommand it, and i'm sure that a 64-bit version will come really soo. Have a look at www.linux-ntfs.org, you can even try to email the developper to know when they will do a 64-bit version.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
That's normal
you need to create the directory where to mount your partition:
Code:
sudo mkdir /media/hdb1 #in your case
Remember that device & mount point are different. If your drive is detected, device always exist and will be in /dev. In your case, i guess your partition is /dev/hdb1.
Mount point is the directory where is mount your partition in your file system. Ex: your root partition is mounted on /
So you have to create the directory where will be mount your partition before mounting it (it will not create it automatically).
I hope that will help you . 8)
thanks for the help mate. its working perfectly now. i can even run certain windows programs on Ubuntu (with Wine of course) directly off my NTFS partition.
is the mount permanent or do i have to "sudo mount -a" every time i want to use the NTFS partition ?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I am trying this method with an NTFS formatted External USB HardDisk.
But it fails. Normally it is mounted as /media/VAIO + /dev/sda1 .
I entered the same values in fstab. But after that, the icon for that usb disk is not appearing on the desktop.
But it appears on the Nautilus file Manager. When I tried to click it , it says 'Only root can mount'.
I have a script installed in GNome to 'Open as Root'. When I right click and select 'Open as Root' for that folder(VAIO), it does not show the existing contents.
I tried creating a new folder under /media and tried to mount. But that too did not help.
Please help. Any help - Thanks many in Advance! :)
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I've tried installing and mounting this myself in the Kubuntu console, and I get this error:
Quote:
Couldn't mount device '/dev/hdb1': Input/output error
Mount failed.
I used fdisk -l to see if my computer could see this device, but all it gives me is:
Quote:
Cannot open /dev/hdb1
However, when I go to Disks & Filesystems in the Kubuntu System Settings, it detects my second hard drive.
Is this a hardware or a software problem?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
visvak
thanks for the help mate. its working perfectly now. i can even run certain windows programs on Ubuntu (with Wine of course) directly off my NTFS partition.
is the mount permanent or do i have to "sudo mount -a" every time i want to use the NTFS partition ?
until it is in /etc/fstab, you don't need to do that every time.
sudo mount -a, was just to do it without rebooting.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
wordplusnumber
I've tried installing and mounting this myself in the Kubuntu console, and I get this error:
I used fdisk -l to see if my computer could see this device, but all it gives me is:
However, when I go to Disks & Filesystems in the Kubuntu System Settings, it detects my second hard drive.
Is this a hardware or a software problem?
If you have nothing with fdisk -l, it's could be an hardware problem.
Past here the result of 'sudo fdsik -l', your /etc/fstab and your /etc/mtab. We will try to debug that.
Also this partition is one the same drive you are using right now, or this is a partition of an other drive?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Here's what happens when I do 'sudo fdisk -l' - it seems to be showing up now.
Code:
Disk /dev/hda: 30.6 GB, 30606151680 bytes
255 heads, 63 sectors/track, 3720 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3566 28643863+ 83 Linux
/dev/hda2 3567 3720 1237005 5 Extended
/dev/hda5 3567 3720 1236973+ 82 Linux swap / Solaris
Disk /dev/hdb: 123.5 GB, 123522416640 bytes
255 heads, 63 sectors/track, 15017 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 15017 120624021 7 HPFS/NTFS
Disk /dev/sda: 320.0 GB, 320072933376 bytes
240 heads, 63 sectors/track, 41345 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 41345 312568168+ c W95 FAT32 (LBA)
Here's my /etc/fstab:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
/dev/hda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
/dev/hdb1 /media/warehouse ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
Here's /etc/mtab:
Code:
/dev/hda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
varrun /var/run tmpfs rw 0 0
varlock /var/lock tmpfs rw 0 0
procbususb /proc/bus/usb usbfs rw 0 0
udev /dev tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
devshm /dev/shm tmpfs rw 0 0
lrm /lib/modules/2.6.15-26-k7/volatile tmpfs rw 0 0
I have two hard drives in my machine, a 30 GB which I have Kubuntu on, and a 120 GB which I'm trying to format with nfts-3g. So the partition is on another drive.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
looks like the NTFS - Linux problem has been solved fully and compltetly. i've been using it the whole day, and its perfect. the devs should be given a medal or somehting.
BTW, i have a blog and would like to post these instructions there, with credit to the author of course. what say givre ????
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Ok, i don't see any mistake.
Waht's happens if you do
Code:
sudo mount /dev/hdb1
If you have the same problem, did this drive unmount properly the last time you boot it from windows?
It seams that drives can't be mount with ntfs-3g if it hadn't be unmount properly.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
visvak
looks like the NTFS - Linux problem has been solved fully and compltetly. i've been using it the whole day, and its perfect. the devs should be given a medal or somehting.
BTW, i have a blog and would like to post these instructions there, with credit to the author of course. what say givre ????
givré is fine, but i don't really care, there is already a blog using it without credit. 8)
Anyway, don't forget to put a di, this is still a beta product.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
thanks.
u dont want me to link to something with ur name ? ur website or somethin like that ?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
When I try to mount it:
Code:
jayson@SERVO:~$ sudo mount /dev/hdb1
Password:
Couldn't mount device '/dev/hdb1': Input/output error
Mount failed.
This was a second hard drive from when I ran Windows XP on my machine. I then installed Kubuntu and was unable to access the drive. I didn't unmount anything - would I need to reformat the drive if that's the case?
Thanks a bunch for the help, btw.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
You should try first with the kernel driver. Change your line in /etc/fstab to that
Code:
/dev/hdb1 /media/warehouse ntfs nls=utf8,umask=0222 0 0
and try to mount it again
Code:
sudo mount /dev/hdb1
If this doesn't work, you could also try from a windows machine.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
visvak
thanks.
u dont want me to link to something with ur name ? ur website or somethin like that ?
A link to this HowTo for help should be enough. Didn't do it for popularity, but only for linux, because i think it's important to show that we can write on NTFS, with a quite stable solution, made just by guessing, incredible isn't it?
Anyway, i didn't do lot's of think in all that, packaging is quite easy :cool:
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
The buzz about begin this big.
Even OSNews made a news about it (for a beta product!)
http://www.osnews.com/comment.php?news_id=15196
And now we know why this driver is so great:
Quote:
Aha! I knew this was too good to be true, look at the filename (ntfs-3g-20070714-BETA.tgz), its from one year into the future. This guy seems to be in possession of a time machine. Just look at the release notes too, he states there that he is going on a journey for a month now, obviously he is gonna try to go to the future again and retrieve a newer version of this software.
8)
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I am stuck at step 3. When i type gksu gedit /etc/fstab and enter root password a pop-up appears stating error and that I entered incorrect root password
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
shivari
I am stuck at step 3. When i type gksu gedit /etc/fstab and enter root password a pop-up appears stating error and that I entered incorrect root password
It's probably because i use gtksu instead of gtksudo. Normaly gtksudo is for sudo and gtksu is for su, but since in dapper gtksu and gtksudo do the same (root disable by default) i usualy use gtksu cause it's shorter :-D . But i don't now for the previous release, so try gtksudo instead and see if it works.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
It's probably because i use gtksu instead of gtksudo. Normaly gtksudo is for sudo and gtksu is for su, but since in dapper gtksu and gtksudo do the same (root disable by default) i usualy use gtksu cause it's shorter :-D . But i don't now for the previous release, so try gtksudo instead and see if it works.
Was able to make it work. After typing gksu gedit /etc/fstab, windows opens showing ntfs paritions. On the terminal window, on the other hand, is this "(gedit:6124): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
"
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
please help, I got 1 partition to work but the other partition can't be mount. Do I need to add "fuse" two times or something?
edit: sorry so it only work for 1 partition in fstab, so then my other one can only read.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
qdvubun
please help, I got 1 partition to work but the other partition can't be mount. Do I need to add "fuse" two times or something?
edit: sorry so it only work for 1 partition in fstab, so then my other one can only read.
I should make a note for that or something, this question was ask a billion time :D
Your partition are mounted (see /media), but they are not in the desktop because:
Quote:
Originally Posted by givré
Unfortunatly, there is no solution for this problem. ntfs-3g use fuse to mount partition. The system refer to /dev/fuse which refer to all the partition it control... So all for the system, it's like that all your NTFS partition are /dev/fuse. If you do 'more /etc/mtab' in a terminal, you will see it. The consequence is that gnome can only show one (the first one) on the desktop and on place>cumputer.
If you want to be able to access them quikly, you can make a bookmark in nautilus, or you could also mount you partition in your home.
Ex:you can make a directory call windows in your home and change the mount point to /home/<your username>/windows in /etc/fstab.
You don't need to mount them in /media, if i made the HowTo like that it's only because the partition mounted in /media are show on the desktop, and for newbie, it's quite important to see them, just like windows do it.
Hope that will help.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
shivari
Was able to make it work. After typing gksu gedit /etc/fstab, windows opens showing ntfs paritions. On the terminal window, on the other hand, is this "(gedit:6124): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
"
This is a known problem of gtksu, but don't be confuse by this warning, this are 'just' warning, and this work.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Not working for me on the external Hard disk drive :(
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
vinodis
Not working for me on the external Hard disk drive :(
It should work. Let see your /etc/fstab.
Did you mount it during boot, or did you plug it after?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
I can't test it, and since i'm not really familiar with 32-bit chroot environement on 64-bit system, i don't really know if this will work.
If you are not affraid by the experience,
if you made some backup, and
if you don't care of the possibility of losing a drive, i want to say let's try.
But i don't recommand it, and i'm sure that a 64-bit version will come really soo. Have a look at
www.linux-ntfs.org, you can even try to email the developper to know when they will do a 64-bit version.
I've tried it, and it seems to work :D
I followed your instructions almost to the letter. The only difference for chroot environment are as follows:
A) Steps 1 to 3 (install FUSE, install ntfs-3g, and fstab/mount point) must be done in 32-bit chroot environment
B) Step 4 (modprobe fuse or edit /etc/modules) must be done in the normal (64-bit) environment
So actually, a shorter way to say it is that loading FUSE into kernel should be done in 64-bit environment, and everything else should be in 32-bit chroot :mrgreen:
I've done some simple testing, and it seems to work so far. Haven't booted to NT yet though to check integrity. Will post updates if I encounter anything.
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
This new driver is working really well now. I'm even using the ntfs disk to store amule temp files and for other p2p (gift) too! Amazing!
Let's hope they integrate this into Edgy now :)
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
I'm trying without avail to get this to work with my external usb harddrive. After following this how-to to a T, and entering this line in fstab
Code:
/dev/sde1 /mnt/windows ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
now whenever I boot, I get an Internal Error: failed to initialize HAL
also my external harddrive won't mount anymore. I had to comment out that line in fstab to make all of this go away, but I don't have write capabilities. Does this just not work with externals or what?
EDIT:
I took the line completely out of fstab, and I still get the Internal Error. I still can't mount my ext. drive even without that line. Can someone help me?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
There is no reasons that it deosn't work.
To be sure that the drive work with ubuntu:
- remove the line from /etc/fstab
- unplug your HD
- Reboot
- Plug your HD. And that should work. If not, i can't help more.
Now if you want to use ntfs-3g, you have to use /etc/fstab, because mounting of usb device automaticly, are made by gnome-volume-manager via pmount, and this tool is not set to use ntfs-3g (i'll see if i can do something about this but for the moment there is no other solution)
So first, you have to be sure that the name of your usb device don't chance all the time (that's happens for usb) because you have to set this name definitly. check fdisk -l everytime you plug it.
If the name change, try that http://www.ubuntuforums.org/showthread.php?t=168221
If not, what's happens when you try to mount it with sudo mount /dev/sde1 ?
-
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
forrestcupp
I'm trying without avail to get this to work with my external usb harddrive. After following this how-to to a T, and entering this line in fstab
Code:
/dev/sde1 /mnt/windows ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
now whenever I boot, I get an Internal Error: failed to initialize HAL
also my external harddrive won't mount anymore. I had to comment out that line in fstab to make all of this go away, but I don't have write capabilities. Does this just not work with externals or what?
EDIT:
I took the line completely out of fstab, and I still get the Internal Error. I still can't mount my ext. drive even without that line. Can someone help me?
Are you sure your drive is mapped as /dev/sde?
What's the output of
Code:
udevinfo -a -p $(udevinfo -q path -n /dev/sde)
-
1 Attachment(s)
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Test finish since a while
We have potentialy a better solution to automaticly mount usb device with ntfs-3g instead of ntfs.
I patch pmount to add ntfs-3g to the supported filesystem, and put it before ntfs, so if pmount success in mounted the usb-disk with ntfs-3g, that should work, and that's could be great.
But, because there is always a but, since i don't have any NTFS usb device at home, i couldn't test it. So i need some testeur (don't worry, that's totaly safe).
So what to do:
1. Install the patched pmount attach here
2. Unmount your usb device (if it's not already done):
Code:
pumount -d /dev/sd* #check fdisk -l to know is name
if you mount it with fstab, you will probably have to run that as root
3. Comment the mention of your usb device in /etc/fstab (if you have one) (important)
4. Try to mount it with pmount:
Code:
pmount -d /dev/sd* #idem as before
pmount will try several filesystem, and if it stop on ntfs-3g, great that's work :D , but if it continue until ntfs, unfortunatly ntfs-3g fail probably to mount, so go to step 5 to know what was the error
5. If it fail in step 4, we need to know why:
Code:
pmount -d -t ntfs-3g /dev/sd* #always the same
with that, we specify to pmount to use ntfs-3g, so it will give the output. Note the error and report them here.
Thanks. 8)