PDA

View Full Version : HOWTO: NTFS with read/write support using ntfs-3g (easy method)



Pages : [1] 2 3 4 5 6 7 8 9

givré
July 16th, 2006, 05:59 PM
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 (http://doc.ubuntu-fr.org/systeme/ntfs-3g)
In portuguese (http://www.guiaubuntupt.org/wiki/index.php?title=Ntfs_suporte_com_leitura_e_escrita _ntfs-3g)
In german (http://forum.kubuntu-de.org/index.php?topic=7857.0)
In spanish (http://spejman.blogspot.com/2007/03/leer-y-escribir-en-particiones-de.html)
In chinese (http://hi.baidu.com/yjsword/blog/item/46be61088f2f31940a7b828f.html)

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:

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 :


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 :


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 (http://givre.cabspace.com/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 :


wget http://flomertens.keo.in/ubuntu/givre_key.asc -O- | sudo apt-key add -

or

wget http://flomertens.free.fr/ubuntu/givre_key.asc -O- | sudo apt-key add -
First, upgrade your system :


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 :

sudo apt-get install ntfs-config
Now, it's rather easy. Just launch ntfs-config (http://givre.cabspace.com/ntfs-config) via the menu (in system tools) or via the terminal :

gksu ntfs-config
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 :

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:

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:

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:

/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 :

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


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:

modprobe -l fuse
If it return nothing, you will need to compile it yourself.
Install the source:

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 (http://ubuntuforums.org/showthread.php?p=1545618#post1545618)
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 (http://ubuntuforums.org/showthread.php?p=1647295#post1647295)

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 :

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 :

sudo mount -a

* If you get this error :

$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)

plutoprime
July 16th, 2006, 07:37 PM
This actually worked... I'm .. amazed!! Thanks!


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

givré
July 16th, 2006, 07:43 PM
This locale is probably not supported for your system.
To know which one you can use, do:

more /var/lib/locales/supported.d/local
Ex:

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)

Cyraxzz
July 16th, 2006, 09:10 PM
Works perfectly here,

With external hard drives you just have to install this program no configurations were necessary.

ZonedOut
July 16th, 2006, 10:46 PM
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?

givré
July 16th, 2006, 11:01 PM
You don't need it anymore, ntfs-3g is a total remplacement of the further method.

haani
July 16th, 2006, 11:10 PM
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?

Beire
July 16th, 2006, 11:26 PM
working superb on edgy! great and simple how-to ! congrats

KFASheldon
July 16th, 2006, 11:30 PM
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.

kbunsie
July 17th, 2006, 07:06 AM
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?

domino
July 17th, 2006, 08:50 AM
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.

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:

sudo ntfs-3g /dev/hda1 /mnt/windows
Full access for all users:

sudo ntfs-3g /dev/hda1 /mnt/windows -o silent,umask=0,locale=utf8
> Umount /mnt/windows:

sudo fusermount -u /mnt/windows

givré
July 17th, 2006, 10:44 AM
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.

PeRy_SoY
July 17th, 2006, 10:47 AM
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 :-#

givré
July 17th, 2006, 10:52 AM
I don't really understand spanish :cool: but let see first your /etc/fstab , /etc/mtab, and the result of sudo fdsik -l.

PeRy_SoY
July 17th, 2006, 11:04 AM
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!!!

givré
July 17th, 2006, 12:28 PM
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.

pinklerose
July 17th, 2006, 12:54 PM
I dont have write rights.
My fstab:

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?

givré
July 17th, 2006, 01:05 PM
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?

pinklerose
July 17th, 2006, 01:16 PM
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

givré
July 17th, 2006, 01:28 PM
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

givré
July 17th, 2006, 02:39 PM
ntfs-3g is now officialy a project of linux-ntfs.org.
Annoncement :

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/

pinklerose
July 17th, 2006, 04:09 PM
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

givré
July 17th, 2006, 07:36 PM
great :cool:

toykilla
July 17th, 2006, 07:53 PM
How do we do this on AMD64 ?

I get these errors:



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

givré
July 17th, 2006, 08:16 PM
<* 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.

forrestcupp
July 17th, 2006, 08:44 PM
I can't get this working with my external HD. My drive partition is named

/dev/sde1
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:

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:

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?

givré
July 17th, 2006, 09:07 PM
Lel the line in /etc/fstab and reboot, that should solve your problem.

forrestcupp
July 18th, 2006, 04:08 AM
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.

mlind
July 18th, 2006, 07:10 AM
You can also install ntfs-3g from


deb http://www.elisanet.fi/mlind/ubuntu dapper main


Then add yourself to fuse group and mount drives using -o umask=0007,gid=116

givré
July 18th, 2006, 03:50 PM
You can also install ntfs-3g from


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:

givré
July 19th, 2006, 12:01 AM
<--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.

harryhoudini66
July 19th, 2006, 03:57 AM
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.

j.vimal
July 19th, 2006, 05:10 AM
Thank you, its working... but,
no confirmation for delete! Hit delete and its gone!
lol.

j.vimal
July 19th, 2006, 05:13 AM
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

sudo mount -a

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

/etc/sudoers
file also. So, type

su
enter password and then type

mount -a

Should work!

harryhoudini66
July 19th, 2006, 05:20 AM
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:~$

harryhoudini66
July 19th, 2006, 05:23 AM
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>.

harryhoudini66
July 19th, 2006, 05:44 AM
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?

harryhoudini66
July 19th, 2006, 05:59 AM
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.

saracen
July 19th, 2006, 06:36 AM
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:


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?

givré
July 19th, 2006, 10:31 AM
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)

mlind
July 19th, 2006, 10:40 AM
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.

jixun
July 19th, 2006, 10:43 AM
<* 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!

visvak
July 19th, 2006, 11:59 AM
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 ?

givré
July 19th, 2006, 12:49 PM
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



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:

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)

givré
July 19th, 2006, 12:54 PM
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.

givré
July 19th, 2006, 01:04 PM
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.

visvak
July 19th, 2006, 02:03 PM
That's normal


you need to create the directory where to mount your partition:

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 ?

vinodis
July 19th, 2006, 03:05 PM
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! :)

wordplusnumber
July 19th, 2006, 04:42 PM
I've tried installing and mounting this myself in the Kubuntu console, and I get this error:



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:


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?

givré
July 19th, 2006, 05:28 PM
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.

givré
July 19th, 2006, 05:33 PM
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?

wordplusnumber
July 19th, 2006, 05:49 PM
Here's what happens when I do 'sudo fdisk -l' - it seems to be showing up now.


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:


# /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:


/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.

visvak
July 19th, 2006, 05:50 PM
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é
July 19th, 2006, 06:00 PM
Ok, i don't see any mistake.
Waht's happens if you do

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.

givré
July 19th, 2006, 06:05 PM
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.

visvak
July 19th, 2006, 06:15 PM
thanks.

u dont want me to link to something with ur name ? ur website or somethin like that ?

wordplusnumber
July 19th, 2006, 06:30 PM
When I try to mount it:


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.

givré
July 19th, 2006, 07:12 PM
You should try first with the kernel driver. Change your line in /etc/fstab to that

/dev/hdb1 /media/warehouse ntfs nls=utf8,umask=0222 0 0
and try to mount it again

sudo mount /dev/hdb1
If this doesn't work, you could also try from a windows machine.

visvak
July 19th, 2006, 07:20 PM
blog article posted. here it is - http://everythingelse.wordpress.com/2006/07/19/89/

givré
July 19th, 2006, 07:22 PM
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:

givré
July 20th, 2006, 12:48 AM
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:

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)

shivari
July 20th, 2006, 01:22 AM
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

givré
July 20th, 2006, 01:50 AM
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.

shivari
July 20th, 2006, 02:50 AM
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.
"

qdvubun
July 20th, 2006, 07:20 AM
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.

givré
July 20th, 2006, 10:05 AM
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:

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.

givré
July 20th, 2006, 10:10 AM
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.

vinodis
July 20th, 2006, 01:10 PM
Not working for me on the external Hard disk drive :(

givré
July 20th, 2006, 01:48 PM
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?

jixun
July 20th, 2006, 05:17 PM
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.

LKRaider
July 20th, 2006, 07:08 PM
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 :)

forrestcupp
July 20th, 2006, 07:34 PM
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


/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?

givré
July 20th, 2006, 10:27 PM
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 ?

mlind
July 20th, 2006, 10:30 PM
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


/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


udevinfo -a -p $(udevinfo -q path -n /dev/sde)

givré
July 21st, 2006, 01:39 AM
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):

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:

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:

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)

domino
July 21st, 2006, 01:45 AM
Sounds simple enough. So where is the "1. Install the patched pmount attach here"?

bitwise
July 21st, 2006, 01:46 AM
Having some issues with an external USB drive.

/etc/fstab

/dev/sdb1 /media/sdb1 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0

sudo mount /dev/sdb1

Couldn't mount device '/dev/sdb1': Operation not supported
Windows did not shut down properly. Try to mount volume in windows, shut down and try again.
Mount failed.


Any help would be appreciated!

givré
July 21st, 2006, 01:53 AM
Sounds simple enough. So where is the "1. Install the patched pmount attach here"?
Yeah i'm quite stupid some time ](*,)
Here it is

givré
July 21st, 2006, 01:57 AM
Having some issues with an external USB drive.

/etc/fstab

/dev/sdb1 /media/sdb1 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0

sudo mount /dev/sdb1

Couldn't mount device '/dev/sdb1': Operation not supported
Windows did not shut down properly. Try to mount volume in windows, shut down and try again.
Mount failed.


Any help would be appreciated!
All say in the error message. ntfs-3g need a clean partition to work. Reboot in windows, mount it, unmount it cleanly, and restart. That should do the trick.

domino
July 21st, 2006, 01:59 AM
No worries, it's not like some of us has ever forgotten to attach files before. Will post feedback asap.

domino
July 21st, 2006, 02:22 AM
user@linux:~$ sudo pmount /dev/sda1

Filesystem: 'udf'
Filesystem: 'udf'
Filesystem: 'iso9660'
Filesystem: 'iso9660'
Filesystem: 'vfat'
Filesystem: 'vfat'
Filesystem: 'ntfs-3g'
Filesystem: 'ntfs-3g'
Filesystem: 'ntfs'

user@linux:~$ sudo pmount -t ntfs-3g /dev/sda1

Error: device /dev/sda1 is already mounted to /media/sda1
user@linux:~$ sudo pumount /dev/sda1

user@linux:~$ sudo pmount -t ntfs-3g /dev/sda1
Filesystem: 'ntfs-3g'
fusermount: mountpoint is not empty
fusermount: if you are sure this is safe, use the 'nonempty' mount option
fuse_mount failed.
Unmounting /dev/sda1 (External)

edit: the above messages can be duplicated on my system.

dmesg | tail

[17184849.436000] UDF-fs: No VRS found
[17184849.504000] Unable to identify CD-ROM format.
[17184849.568000] Unable to identify CD-ROM format.
[17184849.572000] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[17184849.572000] FAT: bogus number of reserved sectors
[17184849.572000] VFS: Can't find a valid FAT filesystem on dev sda1.
[17184849.580000] FAT: bogus number of reserved sectors
[17184849.580000] VFS: Can't find a valid FAT filesystem on dev sda1.
[17184849.824000] NTFS-fs warning (device sda1): parse_options(): Option iocharset is deprecated. Please use option nls=<charsetname> in the future.
[17184849.864000] NTFS volume version 3.1.

bitwise
July 21st, 2006, 02:49 AM
All say in the error message. ntfs-3g need a clean partition to work. Reboot in windows, mount it, unmount it cleanly, and restart. That should do the trick.

Thank you givre,
I rebooted, and I see a '189.9 GB Volume' but when I try to open it, it says:

mount: only root can mount

Any ideas?

Poka64
July 21st, 2006, 02:49 AM
I'm getting this when I try to mount my external drive:


user@linux:~$ sudo pmount /dev/sdc1
Filesystem: 'udf'
Filesystem: 'udf'
Filesystem: 'iso9660'
Filesystem: 'iso9660'
Filesystem: 'vfat'
Filesystem: 'vfat'
Filesystem: 'ntfs-3g'
Filesystem: 'ntfs-3g'
Filesystem: 'ntfs'

user@linux:~$ pmount -t ntfs-3g /dev/sdc1
Filesystem: 'ntfs-3g'
fusermount: mountpoint is not empty
fusermount: if you are sure this is safe, use the 'nonempty' mount option
fuse_mount failed.
Unmounting /dev/sdc1 (LACIE)

jjtechno
July 21st, 2006, 04:11 AM
I missed something here and got this warning.
ME n:~$ gksu gedit /etc/fstab
///////
(gedit:7267): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
//////////
So any help here and I would be grateful
best regards

a_swan89
July 21st, 2006, 05:22 AM
I have my ntfs partition mounted, but I can't do anything with the files on there. I tried to open an .avi bt it said I don't have the proper permissions to acsess the files. Please Help

paulji
July 21st, 2006, 06:43 AM
I get to step 3 and run into problems.
The terminal indicates a GnomeUI warning. It reads:
paul@paul-desktop:~$ sudo dpkg -i ntfs-3g_20070714-BETA-1_i 386.deb
Selecting previously deselected package ntfs-3g.
(Reading database ... 89196 files and directories currently installed.)
Unpacking ntfs-3g (from ntfs-3g_20070714-BETA-1_i386.deb) . ..
Setting up ntfs-3g (20070714-BETA-1) ...

paul@paul-desktop:~$ sudo fdisk -l|grep NTFS
/dev/hdb1 * 1 19928 160071628+ 7 HPF S/NTFS
paul@paul-desktop:~$ gksu gedit /etc/fstab

(gedit:6092): GnomeUI-WARNING **: While connecting to sessi on manager:
Authentication Rejected, reason : None of the authenticatio n protocols specified are supported and host-based authenti cation failed.
paul@paul-desktop:~$ sudo fdisk -l|grep NTFS
/dev/hdb1 * 1 19928 160071628+ 7 HPF S/NTFS
paul@paul-desktop:~$ gksu gedit /etc/fstab

(gedit:6253): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
paul@paul-desktop:~$

ps. I'm a newbie and in uncharted waters.

givré
July 21st, 2006, 10:27 AM
Ok,lot's of things this morning.

@domino & Poka64 : Thank you so much to take the time to test it :D .
Unfortunatly, that's not really the kind of error i expected. Normally, pmount mount device in /media/device, so check first your media directory, and report what you have in it.
A second test would be to to set a label which we are sure to be empty:

sudo mkdir /media/myusbdisk
pmount /dev/sd* myusbdisk
I could add the nonempty option to pmount but we have to be sure that ntfs-3g is wrong, because this could be quite dangerouse.
Thanks agein, that's quite hard to test something when you don't have the hardware for 8)

@jjtechno & paulji: That's a known false alert. If gedit run, don't worry.

@a_swan89 : Let see your /etc/fstab and your /etc/mtab

@bitwise : external USB drive are a pain, normaly it should be mount at startup but the device name could change. We are in the process to have a better solution, but this not really ready yet. So for the moment be sure that the name of your usb device didn't change:

sudo fdsik -l and compare it to what you have in /etc/fstab.
If it's the same, try to mount it with

sudo mount /dev/sdb1and past here the possible error.
if they are not the same, wait a bit ;)
For the moment, you can also mount it with

sudo ntfs-3g /dev/<your device give by fdisk> /media/<your mount point> -o silent,umask=0,locale=en_US.utf8

domino
July 21st, 2006, 11:02 AM
ok, that makes sense now. I was under th impression that pmount would automount, auto-create the directory in /media, and create the link on the desktop. I was swrong.

I already had the /media/External directory so all I had to to was append the pmount command with "External". Thanks for the tip.

user@linux:~$ pmount /dev/sda1 External
Filesystem: 'udf'
Filesystem: 'udf'
Filesystem: 'iso9660'
Filesystem: 'iso9660'
Filesystem: 'vfat'
Filesystem: 'vfat'
Filesystem: 'ntfs-3g'

It mounted correctly but i had to browse to the /media/External directory in order to be able to get full r/w access the ext drive.

givré
July 21st, 2006, 11:22 AM
No you was right, normally pmount will do all that automaticly (create directory...) so i didn't understand why it's work with ntfs but not with ntfs-3g. Perhaps i forget some option. I'm at work right now, so i'll do that tonight. Thanks.

P.S: did you check that you have something in /media which could be the reason why ntfs-3g stuck.
gnome-volume-manager don't pass option to pmount, so we have to be sure that just pmount /dev/sd* work so all will be automatic (plug & play ;) )

domino
July 21st, 2006, 11:51 AM
No worries. It's like you get paid for doing what you do :).


P.S: did you check that you have something in /media which could be the reason why ntfs-3g stuck.

~$ dir /media
cdrom cdrom0 FAT32 hda1 hda2 hdc5 hdc6 hdc7 macdisk Vista External WinXP
I deleted the "External" directory in the /media folder and re-ran testa.

Test 1:

~$ pmount /dev/sda1
Filesystem: 'udf'
Filesystem: 'udf'
Filesystem: 'iso9660'
Filesystem: 'iso9660'
Filesystem: 'vfat'
Filesystem: 'vfat'
Filesystem: 'ntfs-3g'
Filesystem: 'ntfs-3g'
Filesystem: 'ntfs' <-- stopped here

Test 1 mounted with ntfs driver (no write support).

Test 2:

:~$ pmount -t ntfs-3g /dev/sda1
Filesystem: 'ntfs-3g'
fusermount: mountpoint is not empty
fusermount: if you are sure this is safe, use the 'nonempty' mount option
fuse_mount failed.
Unmounting /dev/sda1 (External)


Test 3:

~$ sudo mkdir /media/External
~$ pmount /dev/sda1 External
Filesystem: 'udf'
Filesystem: 'udf'
Filesystem: 'iso9660'
Filesystem: 'iso9660'
Filesystem: 'vfat'
Filesystem: 'vfat'
Filesystem: 'ntfs-3g'

Test 3 mounts but doesn't place the drive icon on the desktop. As I posted earlier, i needed to browse to the /media directory go gain access to the drive.

Poka64
July 21st, 2006, 12:19 PM
domino : your "test 3" works perfectly for me, you can see the drive in nautilus (computer).

givré
July 21st, 2006, 12:28 PM
Yeah, domino, if you don't see it in place>cumputer, i guess it's because you have an other NTFS partition using fuse. I mention that problem earlier in the thread, but i'm to tired to search it again :)
The only workaround is to make a bookmark, hacking the code will not work for that.
Anyway, the ultimate solution is not yeat there.:cool:

domino
July 21st, 2006, 01:18 PM
Yea, I guess that's why we need more than 1 tester :). I just remembered that I added the ext drive to udev's 10-local.rules. Damn, I almost forgot about that. I'll remove it and post back in a bit.

edit: here is my fstab. Does it matter that i have 2 other ntfs partitions usinf ntfs-3g and enabled?


# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdc2 / ext3 defaults,errors=remount-ro 0 1
/dev/hdc1 /boot ext3 defaults 0 2
/dev/hdc5 /home ext3 defaults 0 2
/dev/hdc3 none swap sw 0 0
# /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
#/dev/hda1 /media/hda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
#/dev/hdc6 /media/hdc6 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/hdc7 /media/FAT32 vfat umask=0000,uid=1000,gid=1000,rw,user,auto 0 0
/dev/hda2 /media/hda2 hfsplus rw,exec,auto,users 0 0
#
# ntfs-3g
#
#/dev/sda1 /media/External ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hda1 /media/WinXP ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hdc6 /media/Vista ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
#
# Misc
#
/home/user1/tmp/hfsimage /media/macdisk hfs defaults,noauto,user,loop 0 0
#

jjtechno
July 21st, 2006, 01:42 PM
and my return looks like this.
n:~$ sudo fdisk -l|grep NTFS
/dev/sda2 * 7 14596 117194175 7 HPFS/NTFS
@ubuntuGlen:~$ sudo fdsik -l
sudo: fdsik: command not found
etc/fstab looks like this:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda5 / ext3 defaults,errors=remount-ro 0 1
/dev/sda6 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdb /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/scd0 /media/cdrom2 udf,iso9660 user,noauto 0 0
/dev/sdb /media/usb0 auto rw,user,noauto 0 0

etc/mtab looks like this
/dev/sda5 / 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

looking forward to your reply, Thanks!




@jjtechno & paulji: That's a known false alert. If gedit run, don't worry.

@a_swan89 : Let see your /etc/fstab and your /etc/mtab

@bitwise : external USB drive are a pain, normaly it should be mount at startup but the device name could change. We are in the process to have a better solution, but this not really ready yet. So for the moment be sure that the name of your usb device didn't change:

sudo fdsik -l and compare it to what you have in /etc/fstab.
If it's the same, try to mount it with

sudo mount /dev/sdb1and past here the possible error.
if they are not the same, wait a bit ;)
For the moment, you can also mount it with

sudo ntfs-3g /dev/<your device give by fdisk> /media/<your mount point> -o silent,umask=0,locale=en_US.utf8 [/QUOTE]

givré
July 21st, 2006, 01:55 PM
looking forward to your reply, Thanks!
When i said 'don't worry', it was just to say, 'don't care of the error AND edit the file like said in step 3'
If you have real problem opening gedit, use nano instead

sudo nano /etc/fstab
That's less userfriendly but it will work for sure.
You probably mess your .ICEauthaurity (i'll give you a tip if it's really that)

givré
July 21st, 2006, 02:01 PM
edit: here is my fstab. Does it matter that i have 2 other ntfs partitions usinf ntfs-3g and enabled?

For the pmount error,that's one of the thing i was wondering.
But like said before, for icone on the desktop, that really matter. Lot's of people come with the same problem:

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.

domino
July 21st, 2006, 02:19 PM
Yea, that's what I have been doing when ntfs-3g was set in fstab. that was even before you wrote this how-to. BTW, I compiled ntfs-3g myself because this how-to wasn't available yet.

I hope I didn't misunderstand the point of the modded pmount. It was suppose to automount the external drive when it's connected? I really don't care much for the desktop drive icon. What I do want pmount to do is auto-mount. I currently have to manual mount the ext drive from terminal.

As far as removing the other mount points just to mount this ext. drive is impossible. I can dismount the Vista drive, but I share Photoshop plug-ins and Thunderbird data with WinXP.

Poka64 already said that the 3rd process worked for him. That's a good thing. Maybe it will work for others that don't have existing ntfs drives and partitions connected to IDE or SATA cables.

givré
July 21st, 2006, 02:27 PM
Yeah good things, but the goal is like you said, automount.
Automount of removable device is done by gnome-volume-manager which call pmount when he see an event, but without any other option than the name of the device. So if pmount don't work with this minmal option, g-v-m will mount it with the ntfs driver. I'm sure there is something i miss, i'll see that.

Otherwise, it's already a good point that pmount work with a label. You can even make a launcher which will mount it without being su, but we can do best. :cool:

stack445
July 21st, 2006, 03:14 PM
i'm also stuck with the problem of: Couldn't mount device '/dev/hda1': Input/output error
Mount failed.


Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 6511 52299576 7 HPFS/NTFS
/dev/hda2 6512 7240 5855692+ 83 Linux
/dev/hda3 7241 7296 449820 82 Linux swap / Solaris
root@cerebrum:/#


it is mounting corretly with the default ntfs driver. i do a umount /dev/hda1, and try to mount it in the command line with :

root@cerebrum:/# ntfs-3g /dev/hda1 /media/hda1 -o silent,umask=0,locale=en_US.utf8
Couldn't mount device '/dev/hda1': Input/output error
Mount failed.
root@cerebrum:/#

i've try putting it in the fstab with the same result. Does someone know the reason for this error. It not creating any error log either. ( or i dont know wich one )

givré
July 21st, 2006, 03:31 PM
This work well with ntfs driver since it don't have to test the input but only the output. ntfs-3g have to be sure that the partition is clean before mounting it (hoppfully).
Try to boot on windows, check your disk with chkdsk, and if you it didn't see any error,defrag your disk and retry.
That should work

jjtechno
July 21st, 2006, 04:59 PM
When i said 'don't worry', it was just to say, 'don't care of the error AND edit the file like said in step 3'
If you have real problem opening gedit, use nano instead

sudo nano /etc/fstab
That's less userfriendly but it will work for sure.
You probably mess your .ICEauthaurity (i'll give you a tip if it's really that)
Ok I am stuck then.
The mkdir/....winders/etc/fstab command returns
command not found.
I quess I am entering it wrong in terminal ?

jjtechno
July 21st, 2006, 05:01 PM
Ok I am stuck then.
The mkdir/....winders/etc/fstab command returns
command not found.
I quess I am entering it wrong in terminal ?

n:~$ sudo mkdir /media/windowz/ etc/fstab
Password:
mkdir: cannot create directory `/media/windowz/': File exists
mkdir: cannot create directory `etc/fstab': No such file or directory

Poka64
July 21st, 2006, 06:19 PM
Like domino wrote, I only got one ntfs partition, my Lacie external usbdrive

mlind
July 21st, 2006, 06:24 PM
n:~$ sudo mkdir /media/windowz/ etc/fstab
Password:
mkdir: cannot create directory `/media/windowz/': File exists
mkdir: cannot create directory `etc/fstab': No such file or directory

You've already created /media/windowz directoy as mount point. You're supposed to edit /etc/fstab, not create one.

jjtechno
July 21st, 2006, 06:35 PM
n:~$ sudo mkdir /media/windowz/ etc/fstab
Password:
mkdir: cannot create directory `/media/windowz/': File exists
mkdir: cannot create directory `etc/fstab': No such file or directory
it helps if winders is windowz and I pay a bit more attention.
Thanks for the help! It's working,excellent.

a_swan89
July 21st, 2006, 06:46 PM
@ givre, my fstab looks like:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda3 / ext3 defaults,errors=remount-ro 0 1
/dev/sda6 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0

/dev/sda5 /media/Windows ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
mtab:
/dev/sda3 / 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-23-386/volatile tmpfs rw 0 0
/dev/hda /media/cdrom0 iso9660 ro,noexec,nosuid,nodev,user=andrew 0 0
Thanks for the quick reply btw
Thanks!

givré
July 21st, 2006, 07:02 PM
It's looks like your windows partion is not mounted. Try

sudo mount /dev/sda5

superiori
July 21st, 2006, 07:56 PM
STOP Using ntfs-3g - if u don't want ur data corrupted
i got my data corrupted by using ntfs-3g driver in Ubuntu ...](*,)

i just wanted delete a directory in a ntfs partition and was prompted by nautilus that i can't delete a non-empty directory. however after deleting all files in that directoy, i found i still could not delete it and got an error. then i changed to windowsXP, also got similar errors when to delete, move or rename it.

here's the error dialog box. it says "can't delete xxxxx(name of the directory): the file or directoy is mangled and can't be read. ":(

maybe ntfs-3g really has "capable for unlimited file creation and deletion" ,but not for directory operation.

sorry for my poor English

givré
July 21st, 2006, 08:03 PM
@domino&Poka64 and for all other who want to try.
I found by reading the man, that we can pass a debuging option to pmount, that will show how pmount call the mount function. That's could be very helpfull if you try that

pmount -d /dev/sd*
and post here the output. You will see something like that

Filesystem: 'ntfs-3g'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs-3g' '-o' 'silent,async,atime,noexec,uid=1000,gid=1000,umask =007' '/dev/sda1' '/media/sda1'
check that /media/sda1 does not exist. If it exist, delete it and retry.
Thank you so much ;)

domino
July 21st, 2006, 08:18 PM
will do givré. In vista right now looking for an excuse to nuke it.

@superiori,

Sorry to hear you had a bad experience. These are my daily operations with ntfs-3g. I have an ext drive which i don't always have on and mounted. I have a 5gig FAT32 drive that I download all my hosting files and folders, hosting weekly backups, and a few hunder mb of torrents. When my 5gig FAT drive is filled, I move them to my ntfs ext drive. Before I move them, I delete old files and folders and replace them with the ones contained on the FAT32 partition. Not a single error so far. You can also look back a few pages and see benchmarks that were posted. I hope my luck continues.

Poka64
July 21st, 2006, 08:42 PM
givré, some feedback


user@linux:~$ pmount -d /dev/sdh1
resolved /dev/sdh1 to device /dev/sdh1
mount point to be used: /media/sdh1
no iocharset given, current locale encoding is UTF-8
locale encoding uses UTF-8, setting iocharset to 'utf8'
Cleaning lock directory /var/lock/pmount/_dev_sdh1
device_whitelist: checking /etc/pmount.allow...
device_whitlisted(): nothing matched, returning 0
find_sysfs_device: looking for sysfs directory for device 8:113
find_sysfs_device: checking whether /dev/sdh1 is on /sys/block/sdh (8:112)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdh1 matches partition 8:112
find_sysfs_device: checking whether device /dev/sdh1 matches partition 8:113
find_sysfs_device: -> partition matches, belongs to block device /sys/block/sdh
device_removable: corresponding block device for /dev/sdh1 is /sys/block/sdh
get_blockdev_attr: value of /sys/block/sdh/removable == 0
find_bus_ancestry: device 4:0:0:0 (path /sys/devices/pci0000:00/0000:00:13.3/usb 4/4-8/4-8:1.0/host4/target4:0:0/4:0:0:0, bus scsi) does not match, trying parent
find_bus_ancestry: device target4:0:0 (path /sys/devices/pci0000:00/0000:00:13.3 /usb4/4-8/4-8:1.0/host4/target4:0:0, bus ) does not match, trying parent
find_bus_ancestry: device host4 (path /sys/devices/pci0000:00/0000:00:13.3/usb4/ 4-8/4-8:1.0/host4, bus ) does not match, trying parent
find_bus_ancestry: device 4-8:1.0 (path /sys/devices/pci0000:00/0000:00:13.3/usb 4/4-8/4-8:1.0, bus usb) matches query, success
policy check passed
spawnv(): executing /sbin/cryptsetup '/sbin/cryptsetup' 'isLuks' '/dev/sdh1'
spawn(): /sbin/cryptsetup terminated with status 255
device is not LUKS encrypted, or cryptsetup with LUKS support is not installed
locking mount point directory
mount point directory locked
Filesystem: 'udf'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'udf' '-o' 'nosuid,nodev,user,a sync,atime,noexec,uid=1000,gid=1000,umask=007,ioch arset=utf8' '/dev/sdh1' '/medi a/sdh1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'udf'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'udf' '-o' 'nosuid,nodev,user,a sync,atime,noexec,uid=1000,gid=1000,umask=007' '/dev/sdh1' '/media/sdh1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'iso9660'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'iso9660' '-o' 'nosuid,nodev,us er,async,atime,noexec,uid=1000,gid=1000,iocharset= utf8' '/dev/sdh1' '/media/sdh1 '
spawn(): /bin/mount terminated with status 32
Filesystem: 'iso9660'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'iso9660' '-o' 'nosuid,nodev,us er,async,atime,noexec,uid=1000,gid=1000' '/dev/sdh1' '/media/sdh1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'vfat'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'vfat' '-o' 'nosuid,nodev,user, quiet,shortname=mixed,async,atime,noexec,uid=1000, gid=1000,umask=007,iocharset=u tf8' '/dev/sdh1' '/media/sdh1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'vfat'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'vfat' '-o' 'nosuid,nodev,user, quiet,shortname=mixed,async,atime,noexec,uid=1000, gid=1000,umask=007' '/dev/sdh1 ' '/media/sdh1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'ntfs-3g'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs-3g' '-o' 'silent,async,at ime,noexec,uid=1000,gid=1000,umask=007,iocharset=u tf8' '/dev/sdh1' '/media/sdh1'
spawn(): /bin/mount terminated with status 5
Filesystem: 'ntfs-3g'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs-3g' '-o' 'silent,async,at ime,noexec,uid=1000,gid=1000,umask=007' '/dev/sdh1' '/media/sdh1'
spawn(): /bin/mount terminated with status 5
Filesystem: 'ntfs'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs' '-o' 'nosuid,nodev,user, async,atime,noexec,uid=1000,gid=1000,umask=077,ioc harset=utf8' '/dev/sdh1' '/med ia/sdh1'
spawn(): /bin/mount terminated with status 0
unlocking mount point directory
mount point directory unlocked


Don't have any more time for this today, hope this helps you.

domino
July 21st, 2006, 08:51 PM
Mine:


:~$ pmount -d /dev/sda1
resolved /dev/sda1 to device /dev/sda1
mount point to be used: /media/sda1
no iocharset given, current locale encoding is UTF-8
locale encoding uses UTF-8, setting iocharset to 'utf8'
Cleaning lock directory /var/lock/pmount/_dev_sda1
device_whitelist: checking /etc/pmount.allow...
device_whitlisted(): nothing matched, returning 0
find_sysfs_device: looking for sysfs directory for device 8:1
find_sysfs_device: checking whether /dev/sda1 is on /sys/block/sda (8:0)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sda1 matches partition 8:0
find_sysfs_device: checking whether device /dev/sda1 matches partition 8:1
find_sysfs_device: -> partition matches, belongs to block device /sys/block/sda
device_removable: corresponding block device for /dev/sda1 is /sys/block/sda
get_blockdev_attr: value of /sys/block/sda/removable == 0
find_bus_ancestry: device 0:0:0:0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host0/target0:0:0/0:0:0:0, bus scsi) does not match, trying parent
find_bus_ancestry: device target0:0:0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host0/target0:0:0, bus ) does not match, trying parent
find_bus_ancestry: device host0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host0, bus ) does not match, trying parent
find_bus_ancestry: device 5-2:1.0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0, bus usb) matches query, success
policy check passed
spawnv(): executing /sbin/cryptsetup '/sbin/cryptsetup' 'isLuks' '/dev/sda1'
spawn(): /sbin/cryptsetup terminated with status 255
device is not LUKS encrypted, or cryptsetup with LUKS support is not installed
locking mount point directory
mount point directory locked
Filesystem: 'udf'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'udf' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid =1000,umask=007,iocharset=utf8' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'udf'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'udf' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid =1000,umask=007' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'iso9660'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'iso9660' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid =1000,iocharset=utf8' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'iso9660'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'iso9660' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid =1000' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'vfat'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'vfat' '-o' 'nosuid,nodev,user,quiet,shortname=mixed,async,ati me,noexec,uid=1000,gid=1000,umask=007,iocharset=ut f8' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'vfat'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'vfat' '-o' 'nosuid,nodev,user,quiet,shortname=mixed,async,ati me,noexec,uid=1000,gid=1000,umask=007' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
Filesystem: 'ntfs-3g'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs-3g' '-o' 'silent,async,atime,noexec,uid=1000,gid=1000,umask =007,iocharset=utf8' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 5
Filesystem: 'ntfs-3g'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs-3g' '-o' 'silent,async,atime,noexec,uid=1000,gid=1000,umask =007' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 5
Filesystem: 'ntfs'
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid =1000,umask=077,iocharset=utf8' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 0
unlocking mount point directory
mount point directory unlocked

superiori
July 21st, 2006, 09:01 PM
@domino
maybe you brought me luck :p

i tried to fix the partition with this in windows:
"chkdsk /f",
and solved it. it seems that the problem was caused by error of volume index. the driver is not perfect now.:roll:

domino
July 21st, 2006, 09:22 PM
Yea, tht usually happens when there is some bad sector or volume index. i once made the mistake and hit the restart button instead of the shutdown button. I decided to boot to dapper without running chkdsk and the internal ntfs drives wouldn't mount. I has to run chkdsk /f to solve the problem.

givré
July 21st, 2006, 09:35 PM
ok guys, thank you so much.
This will be more complicated that what i was thinking :smile: , i just look at the code of gnome-volume-manager, and it appears that it check the type of fs before calling pmount. We can force pmount to use ntfs-3g instead of ntfs, but that's not what i planned, we will no more be able to use pmount with the ntfs driver. What do you think guys?
Also we have an other problem, and more complicated, since the system see all ntfs partition as /dev/fuse, pumount dev/sd* will not work. We can use the mount point instead, but since the only thing pass to the pumount function is device, it will need a bit of work.
But all that will lead to nothing if we don't resolve the first error.
If you could try one more thing, that's could be great. Try to mount it exactly like pmount do (check media sda1 fisrt)

sudo mount -t ntfs-3g -o silent,async,atime,noexec,uid=1000,gid=1000,umask= 007 /dev/sda1 /media/sda1

givré
July 21st, 2006, 09:45 PM
@domino
maybe you brought me luck :p

i tried to fix the partition with this in windows:
"chkdsk /f",
and solved it. it seems that the problem was caused by error of volume index. the driver is not perfect now.:roll:
Yeah this driver is not perfect, but what happens to you is not an known issue, you should contact the developpers to warm them : http://www.linux-ntfs.org/content/view/20/39/
Also did you set correctly your locale? It appears that it is quite important if you don't want to have bad surprise.
Anyway, i'm happy that you manage to resolve your error with chkdsk =D>

Poka64
July 21st, 2006, 09:54 PM
Feedback, sucess with those arguments that you suggested givré (but I mounted the drive to my "External" folder).


user@linux:~$ sudo mount -t ntfs-3g -o silent,async,atime,noexec,uid=1000,gid=1000,umask= 007 /dev/sdh1 /media/External

domino
July 21st, 2006, 10:27 PM
Confirm it works here too givré. i decied t mount to sda1 since Poka64 did the "xternal". I have r-w access and drive icon on the desktop. yayea!!

domino
July 21st, 2006, 10:27 PM
We can force pmount to use ntfs-3g instead of ntfs, but that's not what i planned, we will no more be able to use pmount with the ntfs driver. What do you think guys?
I thought about this for a few minutes and I think I have no problem getting rid of the ntfs driver. Others may object, but I have no problem with it.

I just have a few question:

1. is there any negative affect with fstab that mounts internal drives with ntfs?
2. is the a backdoor in case we want to revert back to the original pmount/ntfs?
3. can you make full read-write drivers for hfsplus? just kidding.. but seriously.. :-\"

Poka64
July 21st, 2006, 11:44 PM
The preferred choice would be to choose between the regular ntfs and the 3g one when you mount :)

givré
July 22nd, 2006, 01:40 AM
Ok, i made some improvement, we while still have one problem, but i don't think we can't manage it (the /dev/fuse thing).
I'll finish it tomarrow (i'll sleep a bit right now :cool: )
@domino:
1.Yeah there will be one, but one which already exist, because since everything is mount on /dev/fuse, the only way to unmount one device is to unmount all of them. That's bad, but that's how work fuse and we can't do nothing against it.
2.Real backdoor would be to use the official one. But if you want to mount via ntfs, i plan to made an option that i'll call ntfs-old to mount it with ntfs, so you'll be able to mount it like that: pmount -t ntfs-old /dev/sd*.
3.I'm not developper. :cool:

@Poka64:You mean, auto mount with ntfs and manually mount with ntfs-3g ? that's an option. What do other guys think? An other idea could be to create a nautilus-script which could unmount an NTFS device mounted automaticly with ntfs, to mount it with ntfs-3g. An 'mount it with Full write access' option.

Poka64
July 22nd, 2006, 02:10 AM
givré: no, I mean, when the the drive is connected you would be presented with an option either using ntfs or nfts-3g, but I know that is hard to get to work (maybe impossible to accomplish with the recent work being done in this thread?)

Your nautilus script thing could work out fine.

(I'm not an expert on these things)

stack445
July 22nd, 2006, 02:18 AM
anybody can help me with the input/output problem ?

domino
July 22nd, 2006, 02:23 AM
As a "safe" method, I would have to agree to auomount using ntfs driver. the advanced/daring users can always manual mount ntfs-3g. Then that would cover your @ss as it doesn't damage anyting by default.

If the drive is automounted using the ntfs driver, anyone can easily umount it from the desktop. Then use the right-click nautilus script to mount using ntfs-3g drivers.

domino
July 22nd, 2006, 02:27 AM
@stack,

can you be more discriptive with the problem or maybe post the error?

stack445
July 22nd, 2006, 02:29 AM
sorry, here is my first post concerning this issue....:

--------------------------------------------------------------------------------

i'm also stuck with the problem of: Couldn't mount device '/dev/hda1': Input/output error
Mount failed.


Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 6511 52299576 7 HPFS/NTFS
/dev/hda2 6512 7240 5855692+ 83 Linux
/dev/hda3 7241 7296 449820 82 Linux swap / Solaris
root@cerebrum:/#


it is mounting corretly with the default ntfs driver. i do a umount /dev/hda1, and try to mount it in the command line with :

root@cerebrum:/# ntfs-3g /dev/hda1 /media/hda1 -o silent,umask=0,locale=en_US.utf8
Couldn't mount device '/dev/hda1': Input/output error
Mount failed.
root@cerebrum:/#

i've try putting it in the fstab with the same result. Does someone know the reason for this error. It not creating any error log either. ( or i dont know wich one )

domino
July 22nd, 2006, 11:18 AM
Sorry, stack. AFter the board went to maint. mode, I went to bed.

Post your fdisk -l. Also did you partition using a 3rd pary application? Because even the slightest error in the file system will not mount the partition using ntfs-3g drivers. You might be able to get away with it with ntfs drivers. Anothering thing you can try is to do a "chkdsk /f" or scandisk/fix the ntfs partition in windows.

Jaymo
July 22nd, 2006, 12:45 PM
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?

Same here ](*,) .
When I try to access it through nautilus I get this error:

mount: according to mtab, /dev/fuse is already mounted on /media/320gb

mount failed



My fstab is as follows

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sdb1 /media/36GB ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/sda1 /media/320GB ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hda1 /media/120GB ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/sdc1 /media/250GB ntfs-3g silent,umask=0,locale=en_US.utf8 0 0


||||----SOLUTION (edit)----||||
I made a folder in /home/jaymo names .drives and changed my mountpoints to point to that directory. Worked a charm.
I even have the folders in "Places" because I turned them into nautilus bookmarks :D.

Eazy©
July 22nd, 2006, 01:27 PM
Hi and thanx for this guide! (works great)

I do have a insignificant problem. When I copy a file to my ntfs-partition, Konqueror complains about it cannot change "file protection" (freely translated from Swedish :p ), but it works anyway. Is there any way to remove this error message? Its quite annoying

blacksoc
July 22nd, 2006, 02:05 PM
Sorry to interupt the current run of troubleshooting - but i wanted to say this is working for me - I am an absolute noob to Ubuntu/Linux in general and though I didn't understand a lick of what i was copying in to terminal the end result is perfect
This issue was the reason i flat out dropped suse 10.0 - it would some times find my drives but i could never do anything with them - being a noob - this has seemed to work flawlessly - now i can actually get my old junk off the drives

Suggestions:
1. make this a sticky - somewhere
2. make this automatic in future versions
3. alot of noobs might know that if it is anoying to only get one partition on your desktop you can have it show none by putting the drives somewhere besides the media directories then just do the short cuts in nautilis which is better for me anyway - the following link is were I figured that out
http://www.ubuntuforums.org/showthread.php?t=98751&highlight=hide+mounts+desktop
4. sombody add this to the desktop guideshttps://help.ubuntu.com/

thanks for working this out

givré
July 22nd, 2006, 03:34 PM
@Poka64 & Domino :

EDIT : Scroll down to post 137 to see our last improvement

Ok guys, here it is :D.
I finaly manage to mount my NTFS partition with pmount (using /etc/allow.pmount) so i could test it a bit. And as far as i go, it works.
What changed :
- For the non empty directory problem, i add the option nonempty. This is safe because pmount already test if the directory is empty or not. But i really don't no why fuse see it as non empty :-k
- I manage to set the locale correctly. I pass lot of time on it, because i first didn't know how to get the entire locale (en_US.UTF8 instead of UTF8 ) but google is definitly my fiend 8)
- I made 2 packages :
* The first one, givre3.deb force all ntfs partition to use ntfs-3g instead, and to use ntfs, you have to set '-t ntfs-old' to pmount. This way, when you plug an NTFS device, gnome-volume-manager will use ntfs-3g directly and mount it with full w/r access automaticly. This has to be test (see below)
* The second one, givre4.deb don't force ntfs-3g, so you will have to mount it manually to use ntfs-3g. This will permit to make a nautilus script to mount it with w/r access (not done already)
- pmount didn't allow to unmount other things than device block. I made an exception to /dev/fuse, cause it's the only way to unmount it.
So be carefull, to unmount one, you will have to unmount all. With the nautilus script, we will be able to remount the other partition.

But it still needs some test:
TEST for *givre3.deb:
- Before installing the package, Plug your device and unmount it (with pumount). Be sure of that by checking /etc/mtab.
- Install the package (*givre3.deb).
- Test if it mount correctly without option:

pmount -d /dev/sd*
it should stop for ntfs-3g (i remove the output 'filesystem:*' but you still can see the driver use). Note the option pass to mount. You should have the option locale='*.UTF8'
- unmount it:

pumount /dev/fuse
- try to mount it with the old driver

pmount -d -t ntfs-old /dev/sd*
- unmount it again

pumount /dev/sd*

If all work, let's try gnome-volume-manager:
- unplug your device.
- start gnome-volume-manager in debug mode

killall gnome-volume-manager
gnome-volume-manager -d no
- plug your device. see if it mount it correctly, and when it's done, check in /etc/mtab that the driver has been mount with fuse. Check that you have write access
- If it's work. Great :D

TEST for *givre4.deb:
- install the package
- plug and unmount everything
- try to mount it without any option

pmount -d /dev/sd*
- unmount it

pumount /dev/fuse
- try to mount it with the ntfs driver

pmount -d -t ntfs /dev/sd*
- If it works we are ready for a nautilus sript. ;)

Say me what option do you prefer.

@all_other: sorry, i don't have time for the moment, i'll see that after ;)

domino
July 22nd, 2006, 04:51 PM
givré, I am having some problems with the USB devices when I unplug them. mainly when i unplug the ext drive, I loose my USB wlan stick or the system freezes when I unplug my USb wlan stick. I think I'll be able to fix the problem in an hour os so. Until you get more testers, enjoy you little rest. I assure you I'll continue when my damn computer quits locking when I unplugging the usb devices.

Thanks.

Poka64
July 22nd, 2006, 05:11 PM
TEST for *givre3.deb = Success.
Everything pmounts/umounts as it should (ntfs-3g) :)

TEST for *givre4.deb = Success.
Works perfectly

domino
July 22nd, 2006, 06:33 PM
test for givre3.deb:

~$ pmount -d /dev/sda1

resolved /dev/sda1 to device /dev/sda1
mount point to be used: /media/sda1
no iocharset given, current locale encoding is UTF-8
locale encoding uses UTF-8, setting iocharset to 'utf8'
Cleaning lock directory /var/lock/pmount/_dev_sda1
device_whitelist: checking /etc/pmount.allow...
device_whitlisted(): nothing matched, returning 0
find_sysfs_device: looking for sysfs directory for device 8:1
find_sysfs_device: checking whether /dev/sda1 is on /sys/block/sda (8:0)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sda1 matches partition 8:0
find_sysfs_device: checking whether device /dev/sda1 matches partition 8:1
find_sysfs_device: -> partition matches, belongs to block device /sys/block/sda
device_removable: corresponding block device for /dev/sda1 is /sys/block/sda
get_blockdev_attr: value of /sys/block/sda/removable == 0
find_bus_ancestry: device 0:0:0:0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host0/target0:0:0/0:0:0:0, bus scsi) does not match, trying parentfind_bus_ancestry: device target0:0:0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host0/target0:0:0, bus ) does not match, trying parent
find_bus_ancestry: device host0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host0, bus ) does not match, trying parent
find_bus_ancestry: device 5-2:1.0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0, bus usb) matches query, success
policy check passed
spawnv(): executing /sbin/cryptsetup '/sbin/cryptsetup' 'isLuks' '/dev/sda1'
spawn(): /sbin/cryptsetup terminated with status 255
device is not LUKS encrypted, or cryptsetup with LUKS support is not installed
locking mount point directory
mount point directory locked
spawnv(): executing /bin/mount '/bin/mount' '-t' 'udf' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid =1000,umask=007,iocharset=utf8' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'udf' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid =1000,umask=007' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'iso9660' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid =1000,iocharset=utf8' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'iso9660' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid =1000' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'vfat' '-o' 'nosuid,nodev,user,quiet,shortname=mixed,async,ati me,noexec,uid=1000,gid=1000,umask=007,iocharset=ut f8' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'vfat' '-o' 'nosuid,nodev,user,quiet,shortname=mixed,async,ati me,noexec,uid=1000,gid=1000,umask=007' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 32
filesystem is ntfs-3g. Setting locale to en_US.UTF-8
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs-3g' '-o' 'silent,nonempty,async,atime,noexec,uid=1000,gid=1 000,umask=007,locale=en_US.UTF-8' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 0
unlocking mount point directory
mount point directory unlocked

Success! Mounted wit full access. sda1 drive icon on the desktop and natilus.


~$ pmount -d -t ntfs-old /dev/sda1
resolved /dev/sda1 to device /dev/sda1
Filesystem is now: 'ntfs'
mount point to be used: /media/sda1
no iocharset given, current locale encoding is UTF-8
locale encoding uses UTF-8, setting iocharset to 'utf8'
Cleaning lock directory /var/lock/pmount/_dev_sda1
device_whitelist: checking /etc/pmount.allow...
device_whitlisted(): nothing matched, returning 0
find_sysfs_device: looking for sysfs directory for device 8:1
find_sysfs_device: checking whether /dev/sda1 is on /sys/block/sda (8:0)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sda1 matches partition 8:0
find_sysfs_device: checking whether device /dev/sda1 matches partition 8:1
find_sysfs_device: -> partition matches, belongs to block device /sys/block/sda
device_removable: corresponding block device for /dev/sda1 is /sys/block/sda
get_blockdev_attr: value of /sys/block/sda/removable == 0
find_bus_ancestry: device 0:0:0:0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host0/target0:0:0/0:0:0:0, bus scsi) does not match, trying parentfind_bus_ancestry: device target0:0:0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host0/target0:0:0, bus ) does not match, trying parent
find_bus_ancestry: device host0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/host0, bus ) does not match, trying parent
find_bus_ancestry: device 5-2:1.0 (path /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0, bus usb) matches query, success
policy check passed
spawnv(): executing /sbin/cryptsetup '/sbin/cryptsetup' 'isLuks' '/dev/sda1'
spawn(): /sbin/cryptsetup terminated with status 255
device is not LUKS encrypted, or cryptsetup with LUKS support is not installed
locking mount point directory
mount point directory locked
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid =1000,umask=077,iocharset=utf8' '/dev/sda1' '/media/sda1'
spawn(): /bin/mount terminated with status 0
unlocking mount point directory
mount point directory unlocked

Success! External drive icon on the dektop and nautilus with no write access.

test for givre4.deb:

~$ gnome-volume-manager -d no


manager.c/751: setting[0]: bool: autobrowse = 0
manager.c/751: setting[1]: bool: autoburn = 1
manager.c/746: setting[2]: string: autoburn_audio_cd_command = serpentine
manager.c/746: setting[3]: string: autoburn_data_cd_command = nautilus --no-desktop burn:
manager.c/751: setting[4]: bool: autoipod = 1
manager.c/746: setting[5]: string: autoipod_command = rhythmbox
manager.c/751: setting[6]: bool: autokeyboard = 0
manager.c/746: setting[7]: string: autokeyboard_command =
manager.c/751: setting[8]: bool: automount_drives = 1
manager.c/751: setting[9]: bool: automount_media = 1
manager.c/751: setting[10]: bool: automouse = 0
manager.c/746: setting[11]: string: automouse_command =
manager.c/751: setting[12]: bool: autophoto = 1
manager.c/746: setting[13]: string: autophoto_command = gnome-volume-manager-gthumb %h
manager.c/751: setting[14]: bool: autopalmsync = 0
manager.c/746: setting[15]: string: autopalmsync_command = gpilotd-control-applet
manager.c/751: setting[16]: bool: autoplay_cda = 1
manager.c/746: setting[17]: string: autoplay_cda_command = sound-juicer -d %d
manager.c/751: setting[18]: bool: autoplay_dvd = 1
manager.c/746: setting[19]: string: autoplay_dvd_command = totem %m
manager.c/751: setting[20]: bool: autoplay_vcd = 1
manager.c/746: setting[21]: string: autoplay_vcd_command = totem %m
manager.c/751: setting[22]: bool: autopocketpc = 0
manager.c/746: setting[23]: string: autopocketpc_command = multisync
manager.c/751: setting[24]: bool: autoprinter = 0
manager.c/746: setting[25]: string: autoprinter_command = gnome-cups-add hal://%h
manager.c/751: setting[26]: bool: autorun = 0
manager.c/746: setting[27]: string: autorun_path = .autorun:autorun:autorun.sh
manager.c/751: setting[28]: bool: autotablet = 0
manager.c/746: setting[29]: string: autotablet_command =
manager.c/760: settings[30]: float: percent_threshold = 0.050000
manager.c/760: settings[31]: float: percent_used = 0.010000
manager.c/3458: gvm_user_active_at_console: check-foreground-console returned with 0
manager.c/2630: Device added: /org/freedesktop/Hal/devices/usb_device_67b_2507_0manager.c/3458: gvm_user_active_at_console: check-foreground-console returned with 0
manager.c/2630: Device added: /org/freedesktop/Hal/devices/usb_device_67b_2507_0_if0
manager.c/3458: gvm_user_active_at_console: check-foreground-console returned with 0
manager.c/2630: Device added: /org/freedesktop/Hal/devices/usb_device_67b_2507_0_if0_scsi_host
manager.c/3458: gvm_user_active_at_console: check-foreground-console returned with 0
manager.c/2630: Device added: /org/freedesktop/Hal/devices/usb_device_67b_2507_0_usbraw
manager.c/3458: gvm_user_active_at_console: check-foreground-console returned with 0
manager.c/2630: Device added: /org/freedesktop/Hal/devices/usb_device_67b_2507_0_if0_scsi_host_scsi_device_lu n0
manager.c/3458: gvm_user_active_at_console: check-foreground-console returned with 0
manager.c/2630: Device added: /org/freedesktop/Hal/devices/usb_device_67b_2507_0_if0_scsi_host_scsi_device_lu n0_scsi_generic
manager.c/3458: gvm_user_active_at_console: check-foreground-console returned with 0
manager.c/2630: Device added: /org/freedesktop/Hal/devices/storage_serial_ST380021_A_0
manager.c/2376: not a mountable volume: /org/freedesktop/Hal/devices/storage_serial_ST380021_A_0
manager.c/3458: gvm_user_active_at_console: check-foreground-console returned with 0
manager.c/2630: Device added: /org/freedesktop/Hal/devices/volume_uuid_D828663D28661AB0
manager.c/1841: mounting /org/freedesktop/Hal/devices/volume_uuid_D828663D28661AB0...
Filesystem is now: 'ntfs-3g'

Mounts the ext drive named "External" both on dektop and nautilus. I have full access to the drive.


TEST for *givre4.deb:

- install the package
- plug and unmount everything
- try to mount it without any option

Code:
---------
pmount -d /dev/sd*
---------

- unmount it

Code:
---------
pumount /dev/fuse
---------

- try to mount it with the ntfs driver

Code:
---------
pmount -d -t ntfs /dev/sd*
---------
Success! no problem with either drivers. Thanks the support givre3 :KS :KS :KS :KS . Note to new testers, you need to refresh the folder on the external drives after mouting and unmounting the external drive.

MistaED
July 23rd, 2006, 06:06 AM
Hey, I'm running ntfs-3g on my dad's computer, I set it up in the original manner (compiled latest fuse and ntfs-3g beta packages, but with checkinstall to make debs). So far the /dev/hda1 mounts perfectly with ntfs-3g and I can read/write to the drive...

Except when I did a symlink from the firefox and thunderbird profiles from the documents and settings user on windows into $HOME/.Mozilla/* & $HOME/.Mozilla-Thunderbird/*, it adds to the files inside instead of appending to them. From a week of using firefox under ubuntu, the bookmarks.html file has made a whole bunch of them from every edit up to bookmarks-211.html as well as the cookies and prefs files, with a similar story for thunderbird. The sharing of resources like this was working fine when using firefox & thunderbird directly, but it isn't writing to the drive properly.

Now when I went inside these directories, I was able to delete bookmarks-1 to bookmarks-148 easily, but any after that, nautilus reports that they don't exist for deleting...

So I'm not sure what is going on, I'll try to delete these files in XP and/or try a chkdsk /f. For now I've just copied over the main details from the profile into a fresh ubuntu-based one (I found mime types and extensions carried over from windows which didn't work at all under ubuntu, not an ntfs-3g issue btw but a warning for anyone who wants to share profiles this way).

My fstab:

/dev/hda1 /media/windows-c ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
-Alex

jixun
July 23rd, 2006, 10:42 AM
Ok, if there's any other 64-bit user, who wants to try this, let me just say it was a bad idea :(

I finally booted into NT, and found the files I transferred to be corrupted. I booted back to Kubuntu, but now ntfs-3g won't let me mount! It says "Volume is dirty. Run chkdsk and try again, or use force option." So I did try the force option, but my transferred files all showed empty.

I know, I was duly warned not to try this. Hope the developers come out with a native 64-bit version soon...

So, in summary, read seems to be ok, but write seems to be a problem. Or maybe when I boot to 32-bit Windows, something gets corrupted.


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.

givré
July 23rd, 2006, 10:00 PM
@jixun: never using the force option.
@MistaED: yeah good to know.

Ok guys, we have some new stuff :D .

First i begin to made the nautilus scripts. And for the moment it's work well. It's consist of two script:
- The first one, mount_with_ntfs-3g, will unmount the device and mount it agin using ntfs-3g. Basicly, you just have to right click on the device on the desktop or in place>computer and select 'scripts > mount_with_ntfs-3g'. The thing is i test that only on an usb stick that i format in NTFS, and the infomation i had with it could be different than for an USB disk. Anyway, i let a debuging output in case it don't find the device. Tell me how it's work.
- The second one, unmount_ntfs-3g, will simply unmount your device.

What need to be done : as said a multitude of time, the system see every ntfs-3g device as /dev/fuse, so if we unmount one, all the other will be unmounted. My plan is to remount all the others, but i don't know how that will react. Need some times.

I also update pmount to be able to unmount safely /dev/fuse. And i think we will stay with the givre4 branch (don't use ntfs-3g automaticly) because it's safer, for the moment. When the stable version will be release, it will always be time to change that.

And the best for the end. I finaly put all that in a repo so it will be easier to install & to upgrade.

EDIT: If you are not sure of what you are doing, don't use it right now. Wait at least for the 0.2 version. Thanks.

Here it is:

deb http://flomertens.keo.in/ubuntu/ dapper main
deb-src http://flomertens.keo.in/ubuntu/ dapper main

The nautilus script are : ntfs-3g-nautilus-tools.

sudo apt-get install ntfs-3g-nautilus-tools libnotify-bin
To enable them, you have to do it manually:

nautilus-script-manager enable unmount_ntfs-3g
nautilus-script-manager enable mount_with_ntfs-3g

Happy testing !!! :cool: ;)

domino
July 23rd, 2006, 10:48 PM
Thanks for the work givré.

I'm a bit confused with this statement.

What need to be done : as said a multitude of time, the system see every ntfs-3g device as /dev/fuse, so if we unmount one, all the other will be unmounted.
I have fstab configure to use ntfs-3g drivers on 2 internal partiton. When I was testing the ext drive in terminal yesterday, it didn't unmount the other internal ntfs partitions. Maybe things have changed after this update, but i'll try to replicate after I apt-get the new packages.

givré
July 23rd, 2006, 10:50 PM
so if we unmount one, all the other will be unmounted.
After some more test, it's not actually what's happens. In fact, fusermount will unmount the last mounted. So if the USB disk is not the last one mount with ntfs-3g, we will have a problem. This kind of case happens really rarely, but we can't say 'USB device unmounted' if it's nor really the case. Really needs some work.

EDIT : One last thing. Unmount_ntfs-3g use notify-send to tell the user that the device is unmounted. Since i use it a lot, i believed it was install by default. Actually not, and worse than that, it's in universe. I forgot to put it as a dependency so you'll have to install it manually until the next release :
sudo apt-get libnotify-bin

domino
July 23rd, 2006, 11:33 PM
:) I had to use Synaptic in order to download and install libnotify-bin & nautilus-script-manager. Once both are installed I tried running either of the 2 scripts nd no go.

~$ nautilus-script-manager enable unmount_ntfs-3g
Error: No script with that name available

~$ nautilus-script-manager enable mount_with_ntfs-3g
Error: No script with that name available

Maybe i'm confused??

givré
July 23rd, 2006, 11:42 PM
you also have to install : ntfs-3g-nautilus-tools 8)
i need to make things more clear. Anyway, that's a prealpha ;)

domino
July 24th, 2006, 12:09 AM
Okay 2 things:

- enable using this command in terminal: nautilus-script-manager enable mount_with_ntfs-3g... there was a typo on the original instructions.

- I have 2 internal partitions using ntfs-3g stated in fstab. When ext drive automounts (no write access), I right click and mount with write access. it will unmount one of the other internal partitons. The script does not unmount the ext drive.

Maybe, I should work with the external drive for now. Then iron out the other 2 internal drives after this is solved.

givré
July 24th, 2006, 01:14 AM
- enable using this command in terminal: nautilus-script-manager enable mount_with_ntfs-3g... there was a typo on the original instructions.
Yeah, i'm the king of the typo :cool:


- I have 2 internal partitions using ntfs-3g stated in fstab. When ext drive automounts (no write access), I right click and mount with write access. it will unmount one of the other internal partitons. The script does not unmount the ext drive.
mount_with_ntfs-3g should lauch nautilus
What is the current directory of this nautilus when that happens?


Maybe, I should work with the external drive for now. Then iron out the other 2 internal drives after this is solved.
I don't think so. You are a good testeur because of that.

Thanks a lot dude.

domino
July 24th, 2006, 02:28 AM
Present state: 2 ntfs internal partitions automounted with ntfs-3g drivers stated in fstab. External drive not mounted and turned off.

1. Restult when ext. drive is turned on: device /dev/sda1 automounted using ntfs driver.

2. Result when right-click on mounted ext drive with mount_with_ntfs-3g script: (see screen below)

http://img61.imageshack.us/img61/7140/2iw8.th.jpg (http://img61.imageshack.us/my.php?image=2iw8.jpg)

3. Right click --> Eject ext. drive.

4a. Right-click unmounted ext. drive in Nautilus with mount_with_ntfs-3g script: (see screen below)
http://img61.imageshack.us/img61/7140/2iw8.th.jpg (http://img61.imageshack.us/my.php?image=2iw8.jpg)

4b. created /media/External directory and tried to mount_with_ntfs-3g: Same error as 4a.

4c. Created /media/sda1 directory and tried to mount_with_ntfs-3g: Same error as 4a.

5. I mounted ext. drive using only ntfs driver and right-click --> mount_with_ntfs-3g: Same error as 4a.

=================================

Internal drive mount/unmount operation using mount_with_ntfs-3g script.

1. I unmount bot WinXP and Vista drives

2. Tried to mount using mount_with_ntfs-3g. See screen for results.

Winxp:

http://img143.imageshack.us/img143/21/xpkq4.th.jpg (http://img143.imageshack.us/my.php?image=xpkq4.jpg)

Vista:

http://img61.imageshack.us/img61/2430/vistaaf0.th.jpg (http://img61.imageshack.us/my.php?image=vistaaf0.jpg)


mount_with_ntfs-3g should lauch nautilus
What is the current directory of this nautilus when that happens?
Nautilus never launches because int. and ext. drive does not mount using mount_with_ntfs-3g script.

givré
July 24th, 2006, 02:59 AM
Okay, that's the kind of problem i was expected, but that could be hard to go throw them.
Actually, the label of my flash stick contain the vendor (and only that) and i take this infomation to to get the device name, because i can't have access of it directly.
But since the label of USB disk are set differently, that'll be harder than expected. I will have to make two different case.
I guess your External is mounted under /media/External
and WinXP under /media/WinXP
If this is the case, and i hope that it's the case for all external drive, we have largely enough information to make it. The 0.2 will come soon and more solid than this bad 0.1.
If it's not the case, i have no idea where to go.

Thanks.

domino
July 24th, 2006, 03:18 AM
I guess your External is mounted under /media/External
The ntfs driver automounts the ext. drive as "External". ntfs-3g automounts the ext. drive by what ever name you set your mount point to in fstab. If you don't create your own mount point in fstab, it sets it to sda1 or sdb1 depending on the usb devices you have installed.

If it makes it any easier, we can always force udev to make the ext drive mount to sda1 as I did earlier.

givré
July 24th, 2006, 09:28 AM
If it makes it any easier, we can always force udev to make the ext drive mount to sda1 as I did earlier.
We will not need that. If you have the device or the mount point, you can have both of them. The thing is, with my usb stick i had none of them, so i had to use what i had: the name of the vendor.
That should be ok.

domino
July 24th, 2006, 12:39 PM
Okay. Well i'm always arond if yo need anything. I think if you had the tools, this would have been fixed much sooner :)

givré
July 25th, 2006, 02:40 AM
:KS New release is there :KS
After a lot of work, i finaly manage to release the version 0.2
of ntfs-3g-nautilus-script :D . I hope that will be the good one.
I go to sleep a bit now, so more info tomarrow 8)

lordsauron
July 25th, 2006, 06:43 AM
Hi,
Congrats for a great piece of work ... Safe n speedy NTFS write in GNU/Linux at last ...

I tried to use the ntfs-3g drivers for loading my NTFS filesystems and it worked wonderfully well if I run a command like :


ntfs-3g /dev/sda1 /media/sda1

But when I put an entry in fstab, it somehow doesn't seem to work [I have included fuse in my modules list]. When the system reboots, none of the NTFS filesystems are mounted and I have to mount them manually again. Is there a workaround or am I missing something here. Have given my fstab & mtab below. Once again, keep it up, great job ...

fstab


# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda5 / ext2 defaults,errors=remount-ro 0 1
/dev/hda1 /media/hda1 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hda2 /media/hda2 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hda3 /media/hda3 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/sda1 /media/sda1 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/sda5 /media/sda5 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/sda6 /media/sda6 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/sda7 /media/sda7 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hda7 /usr ext2 defaults 0 2
/dev/hda6 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0



mtab



/dev/hda5 / ext2 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-23-386/volatile tmpfs rw 0 0
/dev/hda1 /media/hda1 ntfs rw,nls=utf8,umask=007,gid=46 0 0
/dev/hda2 /media/hda2 ntfs rw,nls=utf8,umask=007,gid=46 0 0
/dev/hda3 /media/hda3 ntfs rw,nls=utf8,umask=007,gid=46 0 0
/dev/sda1 /media/sda1 ntfs rw,nls=utf8,umask=007,gid=46 0 0
/dev/sda5 /media/sda5 ntfs rw,nls=utf8,umask=007,gid=46 0 0
/dev/sda6 /media/sda6 ntfs rw,nls=utf8,umask=007,gid=46 0 0
/dev/sda7 /media/sda7 ntfs rw,nls=utf8,umask=007,gid=46 0 0
/dev/hda7 /usr ext2 rw 0 0

domino
July 25th, 2006, 08:07 AM
Dear givré,

You did an excellent job on version 0.2. The new script mounted the ext. drive using ntfs-3g drivers properly and open Nautilus right after the ext. drive was mounted. It properly unmounted and used ntfs drivers also. Great job!

For the internal ntfs drives, I already had the perams set in fstab. It did have problems when I tried to unmount them.

http://img88.imageshack.us/img88/5274/vista1bp1.th.jpg (http://img88.imageshack.us/my.php?image=vista1bp1.jpg)

http://img88.imageshack.us/img88/9798/vista2rd9.th.jpg (http://img88.imageshack.us/my.php?image=vista2rd9.jpg)

Afterwards, I removed both internal drive perams from fstab and it produced and error while trying to manually mount using ntfs drivers:


error: device /dev/hdc6 is not removable

error: could not execute pmount



I did not succeed mounting the internal drives using the script.

Thank you

domino
July 25th, 2006, 08:32 AM
@lordsauron

Create a directory for each ntfs partition in the /media directory. You can name them what you want, but fstab's mount point must be the same name. They will automount next reboot.

You will only have one ntfs partition visiable on your desktop and in Nautilus. You can just create a bookmark to your ntfs partition in Nautilus for easy access.

PS. if you haven't do so, you will need to update Synaptic to get the newest ntfs-3g packages. Add this to source.list if you haven't done so and install the tools.


deb http://flomertens.keo.in/ubuntu/ dapper main
deb-src http://flomertens.keo.in/ubuntu/ dapper main

The nautilus script are : ntfs-3g-nautilus-tools.


sudo apt-get install ntfs-3g-nautilus-tools libnotify-bin

To enable them, you have to do it manually:


nautilus-script-manager enable unmount_ntfs-3g
nautilus-script-manager enable mount_with_ntfs-3g

givré
July 25th, 2006, 10:18 AM
Thanks for the feedback.
You have reach the actual two limitation of the script.
- It can't actually unmount thing own by root (all in /etc/fstab if you don't have the option users), but i know how to get ride of that : gksudo -> version 0.3
- If the last device mounted by fuse is your external and you want to unmount an internal partition mounted before this one, You will need to unmounted all /dev/fuse until this one (like said before, unmount /dev/fuse unmount only the last one). So after that's done, i try to remount all things that need it. But the only information i can have about the external drive is the mount point (device is /dev/fuse in /etc/mtab) so i can't remount them.

Fuse is a pain for multiple device. I'll try to see in the doc if i can recover information about the original device, but that will not be easy.

The other thing we can do, is to limite us to only removable device. An other solution could also be to store in a file the correspondance device <-> mount point before we mount them with ntfs-3g. But manage that kind of thing without a daemon could lead to problem.

Need some braindump

givré
July 25th, 2006, 10:27 AM
@lordsauron : I'm definitly not the developper of that 8) .
The team you have to thanks is this team : http://www.linux-ntfs.org/
and especialy Szabolcs Szakacsits.

and yes, like domino said, you need to reboot, or to umount/mout them all.

nathandh
July 25th, 2006, 12:47 PM
Thanks alot for this howto, highly appricated. Been looking for this for some time.

domino
July 25th, 2006, 02:03 PM
Thanks for the feedback givré. Being an early adopted driver, you have made it this far. As long as people know the limitations, I think your script will do well. It just makes it that much easier control our devices.

stack445
July 25th, 2006, 03:39 PM
Sorry, stack. AFter the board went to maint. mode, I went to bed.

Post your fdisk -l. Also did you partition using a 3rd pary application? Because even the slightest error in the file system will not mount the partition using ntfs-3g drivers. You might be able to get away with it with ntfs drivers. Anothering thing you can try is to do a "chkdsk /f" or scandisk/fix the ntfs partition in windows.

here is the output of fdisk -l

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 6511 52299576 7 HPFS/NTFS
/dev/hda2 6512 7240 5855692+ 83 Linux
/dev/hda3 7241 7296 449820 82 Linux swap / Solaris
root@cerebrum:~#

i did not partition with anything. it's a compaq presario v2000 laptop, and i used the partiton that compaq keep to restore windows to install linux on it. i hope it's not going to cause trouble. I'm doing this for a friend that want's to switch, and so far he found ubuntu realy good. If only i could mount it's windows partion in read-write.

thank for your help. Again this community rocks !

here it is:


root@cerebrum:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / ext3 defaults,errors=remount-ro 0 1
/dev/hda1 /media/hda1 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hda3 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
root@cerebrum:~# ls -al /media/
total 16
drwxr-xr-x 4 root root 4096 2006-07-21 12:13 .
drwxr-xr-x 21 root root 4096 2006-07-20 22:20 ..
lrwxrwxrwx 1 root root 6 2006-07-21 12:13 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2006-07-21 12:13 cdrom0
drwxr-xr-x 2 root root 4096 2006-07-21 12:13 hda1
root@cerebrum:~#

are the /hda1 permission on the directory could be the problem ?

thx

domino
July 25th, 2006, 03:51 PM
Okay, please edit your post and paste your fstab. Have you created a folder in the /media directory named "WinXP", or "Windows"? I also have a theory about drives from Compaq or Dell that's never been wiped before. Will worry about that later.

domino
July 25th, 2006, 07:01 PM
Here's a new Ubuntu Menu currently under development. You can see that it's much easier to reach your mounted Volumes and not having to clutter up your Nautilus side pane and desktop.

http://img232.imageshack.us/img232/1986/1ov2.th.jpg (http://img232.imageshack.us/my.php?image=1ov2.jpg)

You can follow the development here: http://www.compiz.net/viewtopic.php?id=2112

givré
July 25th, 2006, 11:30 PM
@domino, yeah nice thing. It's good to see how reactive is the ubuntu community. When sled was out, there were already something like 3 thread in the forum, with deb package and patch to improve it. We are really lucky guys. :D

Some news from the front: in my search for a simple way to do the correspondance mont_point <-> device when fuse is use, i found something really interesting in /dev. Can you past here the result of

ll /dev/disk/by-id
and
ll /dev/disk/by-label
i hope you will have the result i expexted. If so, something like
ll /dev/disk/by-id|grep EXTERNAL|grep part1|awk -F../../ '{print $2}' for exemple should do the trick, and that's could make things really easier. 8)
The new goal: manage every ntfs partition & device.
O.3 will be delay, I prefer to make it really cool before real realease.
Thanks again for the help. :)

domino
July 26th, 2006, 01:05 AM
Hi, sorry for the late reply. Breakfast calls :D. All drives mounted and external drive mounted with and witout ntfs-3g driver loaded.

1. /dev/disk/by-id


ata-Maxtor_6E040L0_E16NYASE ata-Maxtor_6E040L0_E16NYASE-part7
ata-Maxtor_6E040L0_E16NYASE-part1 ata-Maxtor_6E040L0_E19LP8ME
ata-Maxtor_6E040L0_E16NYASE-part2 ata-Maxtor_6E040L0_E19LP8ME-part1
ata-Maxtor_6E040L0_E16NYASE-part3 ata-Maxtor_6E040L0_E19LP8ME-part2
ata-Maxtor_6E040L0_E16NYASE-part4 usb-ST380021_A_0
ata-Maxtor_6E040L0_E16NYASE-part5 usb-ST380021_A_0-part1
ata-Maxtor_6E040L0_E16NYASE-part6

2. /dev/disk/by-label


External FAT32 OSx86 Vista WinXP

3. /dev/disk/by-id|grep EXTERNAL|grep part1|awk -F../../ '{print $2}'


bash: /dev/disk/by-id: is a directory

i don't really understand the 3rd one but i'll post it anyway :)

givré
July 26th, 2006, 01:27 AM
Great great great, all that is great :KS
Hang on for the next update ;)

LKRaider
July 26th, 2006, 04:50 AM
givré is doing a fantastic job here, and is really keeping me interested in every new post on this thread with new surprises :D

Just wanted to say that ;)

MilesTEG1
July 26th, 2006, 02:14 PM
Hello,
I follow the HowTo on ly Kubuntu Dapper 64bits.
But no .deb package are available for AMD64 for ntfs-3g...
So I use source package and compile it.
For other package I found these :
fuse-source_2.5.3-2.1_all.deb
fuse-utils_2.5.3-2.1_amd64.deb
libfuse2_2.5.3-2.1_amd64.deb
libfuse-dev_2.5.3-2.1_amd64.deb
makedev_2.3.1-82_all.deb

I have to install the last package first because with kubuntu 6.06, the makedev installed is in version 2.3.1-69.

I mount one of my 4 NTFS partition with ntfs-3g to test it.
I copy 5 files (iso of kubuntu alternate and desktop + md5 files).
When copying, I had errors : cannot set permission.
The copie works well anymore, but permission isn't set.
Is it normal ?

Here you have the line i use in fstab (with old one) :

#/dev/sdb5 /media/jeux-1 ntfs defaults,nls=utf8,umask=007,uid=0,gid=46,auto,rw,n ouser 0 1
/dev/sdb5 /media/jeux-1 ntfs-3g silent,umask=0,locale=fr_FR.utf8 0 0

So I hope there is not corruption in data, and in table of partition...
If it is the case (no corruption), I think I mount all my ntfs partition with this drivers ntfs-3g.

Nevertheless, thansk for this great HowTo !! ;)

pastafarian
July 26th, 2006, 03:52 PM
Great job !! Was able to r/w NTFS without problems with ntfs-3g

Thanks !

MilesTEG1
July 26th, 2006, 09:01 PM
Hello,
I create another account for my kubuntu.
I mount the NTFS partition in my primary account.
In the new account, this partition is not accessible...

(I have the same problem with a USB key automounted in the second account witch is not accessible in the primary account...)

rodrigo666
July 27th, 2006, 02:05 AM
Hey man, what can I say?

Congratulations for a excelent tutorial!

You surelly made it man!

It's a damn easy step-by-step that even a child of five can follow!

QwertyManiac
July 27th, 2006, 07:04 PM
How do I uninstall the Write support?

stack445
July 27th, 2006, 08:55 PM
Thanks, the error message was indeed due to error in the windows partiton. Small error, but error non the less. after fixing, everything is a1.

thnks everyone.

givré
July 27th, 2006, 10:13 PM
New release of ntfs-3g-nautilus-tools.
I think it's now enough mature for the first page.
There is surely still some few things that you can't not yet do, but it's matter of you now.
If you want things to be implemented, just ask and i'll see if it's possible.
Now time to change the main page :D
Enjoy (or not) :cool:

domino
July 27th, 2006, 10:38 PM
Thanks for the new development :). It works very well here. I only have one request for the next update.

- Refresh new pop-up nautilus window when mounting with ntfs-3g because nautilus still thinks it still does not have write permission.

phatmatt
July 27th, 2006, 10:51 PM
I can't get this working with my external HD. My drive partition is named

/dev/sde1
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:

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:

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?


Did you ever figure this out? I'm getting the same error message. Can anyone shed some light?



Couldn't mount device '/dev/hdb1': Operation not supported
Windows did not shut down properly. Try to mount volume in windows, shut down and try again.
Mount failed.

givré
July 27th, 2006, 11:17 PM
Okay, for everybody:
Ntfs-3g need an clean partition before mounting it. In that way, it prevent any corruption of data.
If you didn't unmount it properly (suspend, hibernate, hard reboot, reset...), you will have to boot on windows, and reboot again.
If it don't work, run a scandisk on windows (not yet that kind of tool for NTFS on linux), and retry.
Understand that if it bother you for that, it's good. And never try to force to mount.

I'll add that to the first post, it's a common question.

Dojomann
July 28th, 2006, 03:03 AM
I'm having a problem. The ntfs-3g partition I have is really slow. Copying files takes forever! Just FYI I'm using the i686-smp kernel, that's the only main thing I've modified for my Ubuntu install. Any way to fix this?

domino
July 28th, 2006, 03:26 AM
You'll need to answer a few Q's..

- Are you transfering files to or from the ntfs drive?
- How long does it take to transfer 100mb single file?
- How long does it take to transfer 100mb of a group of files?
- Are your transfering from IDE to usb drive, to sata, to scsi, etc?
- Is it faster if you transfer files using ntfs drivers to your Linux desktop?

QwertyManiac
July 28th, 2006, 04:21 AM
Can someone tell me how to remove this support please? I kind of dont need it atm and cant figure out how to remove, will editing the fstab entr alone work/be enough ?

domino
July 28th, 2006, 04:27 AM
try adding this after every ntfs mount point in fstab:


ntfs defaults,nls=utf8,umask=007,gid=46 0 1

QwertyManiac
July 28th, 2006, 04:35 AM
Ohk, thanks, it worked!

Dojomann
July 28th, 2006, 05:04 AM
- Are you transfering files to or from the ntfs drive?

To the ntfs drive

- How long does it take to transfer 100mb single file?

Wouldn't try a 100mb file, a 6.8mb file took about 3 minutes!

- How long does it take to transfer 100mb of a group of files?

The same speed applies to a group.

- Are your transfering from IDE to usb drive, to sata, to scsi, etc?

Transferring on one drive from partition to partition. It's a SATA drive.

- Is it faster if you transfer files using ntfs drivers to your Linux desktop?

I don't get what you mean, explain please.

domino
July 28th, 2006, 05:14 AM
- Are your transfering from IDE to usb drive, to sata, to scsi, etc?

Transferring on one drive from partition to partition. It's a SATA drive.

I'm running IDE so I can't confirm.



- Is it faster if you transfer files using ntfs drivers to your Linux desktop?

I don't get what you mean, explain please.

Unmount all drivers using ntfs-3g driver and remount all drives using ntfs driver. We need to find commonality between both drivers.

Dojomann
July 28th, 2006, 05:28 AM
how do I enable write access with the normal ntfs drivers?

domino
July 28th, 2006, 06:06 AM
You don't. You need to find out how the speed is from ntfs to your linux desktop.

Btw, is it faster when you transfer files from ntfs-3g to desktop?

Dojomann
July 28th, 2006, 06:09 AM
yes. copying files FROM the ntfs-3g partition is normal speed. (well its fast enough or whatever, it doesn't take ages)

domino
July 28th, 2006, 06:26 AM
I'm stuck. Maybe givré or someone more knowledgeable can help you with this. On my IDE Drive A to IDE Drive B, I transferred 125mb in 8 sec. On the safe side, I wouldn't tyy transfering anymore files to either ntfs partitions untill you get this solved.

Solid1986Snake
July 28th, 2006, 08:12 AM
Hi, boys... really nice work that you've done here.... everything works fine with my local hdds!

but theres somehow a problem with my USB Device. Its a maxtor one touch III 300 GB drive. Ubuntu automounts it to name Data Box... but when I try to switch to ntfs-3g, tehre comes only the developers message that my device is not supported. I just don know why... because its just a normal usb hdd...

Maybe you know. If you need further information plz reply..

Thx

Solid1986Snake
July 28th, 2006, 09:35 AM
Ok, I fixed the problem by myself.

The script seems to have problems when tehere is a " " in the device name. I just renamed it under windows to databox an now i can mount with ntfs-3g with no problems

Dojomann
July 28th, 2006, 05:50 PM
I've narrowed my problem down to the partition. I tried mounting my other ntfs partition with ntfs-3g and tranferring files to it was fine. Could it be that the partition's size is bothering everything? it's like 183GB.

telperion
July 28th, 2006, 07:26 PM
edit

ammarr
July 28th, 2006, 10:37 PM
I've not been able to download from the mentioned source.. i keep getting host not found. Maybe its because of my proxy, anyway, could someone upload it on a different server?

Thanks.

numb401
July 28th, 2006, 10:58 PM
yea the host is down, could somebody mirror?

yewchong
July 29th, 2006, 02:56 AM
Yep, think the host is down, could someone kindly mirror it for us? Thanks!!

domino
July 29th, 2006, 08:28 AM
I have the files cached But i'm reluctant to attach them becuase i don't maintain them. There may be a reason why he pulled the files/domain and it may be counter productive if I attach them.

chokes
July 29th, 2006, 08:32 AM
or maybe its a host failure... as i see... he dont know that the host is down if he had to pull out the packages why he dont say that in the forum?

domino
July 29th, 2006, 08:41 AM
There's no point in speculating. He's the maintainer and I'm sure he'll get the files back up asap.

chokes
July 29th, 2006, 08:47 AM
anyway... if someone have the files.. please attach it plz i realy need it :)
tankx! ;)

Hotaru
July 29th, 2006, 10:25 AM
You can download and install these files using sreps from this HOW-TO: http://ubuntuforums.org/showthread.php?t=218577 (that's what I've done). Just downloading and installing - the rest of the steps I used steps from this topic.

Hope that helps.

chokes
July 29th, 2006, 10:26 AM
You can download and install these files using sreps from this HOW-TO: http://ubuntuforums.org/showthread.php?t=218577 (that's what I've done). Just downloading and installing - the rest of the steps I used steps from this topic.

Hope that helps.

tanx Hotaru ;)

domino
July 29th, 2006, 11:08 AM
The items in givre's repo the nautilus mount scripts (mount/unmount) and modded pmount. The modded pmount, if i'm no mistaken, is for removable drives. So if you are using internal drives, you don't need his files and the ntfs-3g drivers, you can compile on your own or download from another repo.

genkipsuedo
July 29th, 2006, 04:13 PM
Thank you soooo much!!! I've used this on the livecd to fix my mom's winxp. It worked perfectly! ntfs-3g rocks!!

DooX
July 29th, 2006, 05:02 PM
Can i translate your howto on Serbian language and put it on one forum?Thanx in advance for answering.

Solid1986Snake
July 30th, 2006, 11:38 AM
Thx givre,
youve done really great work here.

But by the way, it would be really great if you create another script to switch from ntfs-3g back to standard ntfs on usb devices.

May be i am a little too scared, but ntfs-3g is still beta, and i like my data very mouch, so i just want to enable write access when i really need it.

domino
July 30th, 2006, 11:59 AM
Thx givre,
youve done really great work here.

But by the way, it would be really great if you create another script to switch from ntfs-3g back to standard ntfs on usb devices.

May be i am a little too scared, but ntfs-3g is still beta, and i like my data very mouch, so i just want to enable write access when i really need it.

That's what the script "unmount_ntfs-3g" is for. Assuming you enabled the script, just right-click the usb device and click the "unmount_ntfs-3g" script from the script menu. That drive with ntfs-3g driver will unmount. Double clck on the drive in Nautilus and it mounts using the normal ntfs driver (without write).

Solid1986Snake
July 30th, 2006, 01:53 PM
Ok, thx for the tip ;)

GregaS
July 30th, 2006, 03:05 PM
I get this error message when I do sudo mount -a:


Error opening partition device: Device or resource busy
Failed to startup volume: Device or resource busy
Couldn't mount device '/dev/hdc1': Device or resource busy
Mount failed.
Error opening partition device: Device or resource busy
Failed to startup volume: Device or resource busy
Couldn't mount device '/dev/hdc5': Device or resource busy
Mount failed.

Any ideas anyone?

visvak
July 30th, 2006, 03:16 PM
i've used NTFS-3g to mount my NTFS partiion before. but i recently had to formatt my HardDisk and reinstall both ubuntu and windows.

so now, when i try to mount my NTFS partiotn, it dosent work.

i get this when after doing the whole thing and typing sudo mount -a


Volume is dirty.
Run chkdsk and try again, or use the force option.
Mount failed.

this is what my /etc/fstab file looks like -


# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb2 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb5 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdb1 /media/hdb1 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0

the folder i created in /media is called hdb1

so anyone know how to fix this ?

domino
July 30th, 2006, 10:30 PM
GregaS, you may have mounted using the ntfs driver in fstab. That error message may indicate that it's alreay mounted before login. Post your fstab or mtab and post sudo fdisk -l.

visvak, go back to windows and scandisk/fisk all your ftfs partitions and reboot back to windows. restart properly and boot into Ubuntu and try to mount the ntfs partition. Also post your sudo fdisk -l after wards if still having trouble.

GregaS
July 30th, 2006, 10:49 PM
My fstab:


# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdd1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdc6 /mnt/disk2 ext3 defaults 0 2
/dev/hdd5 none swap sw 0 0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdc1 /dev/hdc1 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hdc5 /dev/hdc5 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0

sudo fdisk -l:


Disk /dev/hdc: 41.1 GB, 41110142976 bytes
255 glav, 63 sektorjev/stezo, 4998 stez
Enote = cylinders od 16065 x 512 = 8225280 bajtov

Naprava Boot Start End Blocks Id System
/dev/hdc1 * 1 829 6658911 7 HPFS/NTFS
/dev/hdc2 830 4998 33487492+ f W95 Ext'd (LBA)
/dev/hdc5 830 3187 18940603+ 7 HPFS/NTFS
/dev/hdc6 3188 4998 14546826 83 Linux

Disk /dev/hdd: 4311 MB, 4311982080 bajtov
255 glav, 63 sektorjev/stezo, 524 stez
Enote = cylinders od 16065 x 512 = 8225280 bajtov

Naprava Boot Start End Blocks Id System
/dev/hdd1 * 1 498 4000153+ 83 Linux
/dev/hdd2 499 524 208845 5 Razširjen
/dev/hdd5 499 524 208813+ 82 Linux swap / Solaris

domino
July 31st, 2006, 04:47 AM
GregaS,

How are you mounting/unmounting the partitions? There is a known issue with mounting more than one partitions using the ntfs-3g driver. If you mount one, you have to manually mount them all. Likewise if you unmount one, you have to manually unmount them all. It's the ntfs-3g limitation.

In my case, i have 2 ntfs partitions both using ntfs-3g drivers and perams set in fstab. In order to unmount those partitions, I have to sudu unmount both of them because fstabs is own by root. Likewise, if I need to mount one of the partitions, I have to again use sudo mount all the partitions if it is using ntfs-3g drivers.

I believe givre noted that his mount script maybe be limited to external USB drives only.

Hope that helps.

rasmusbp
July 31st, 2006, 08:58 AM
works beautifully on my ntfs-formatted LaCie 250GB USB disk, thanks!! :p

GregaS
July 31st, 2006, 12:52 PM
If I do sudo mount /dev/hdc1 /media/diskc I get this error message:


mount: /dev/hdc1 is not a block device, and stat fails?

domino
July 31st, 2006, 01:05 PM
Because by using sudo mount you are trying to mount using the ntfs driver. Not the ntfs-3g driver which is stated in your fstab.

terminal: man ntfs-3g

and read the man page on how to properly mount the ntfs-3g driver.

goonies
July 31st, 2006, 01:31 PM
this gots to be one of the best things that has ever happened to someone that dual boots linux and win =) i know it is for me

BetaMaster
July 31st, 2006, 04:32 PM
Help? When I typed 'sudo mount -a' I got back this:

sven@sven-desktop:~$ sudo mount -a
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

mount: wrong fs type, bad option, bad superblock on /dev/hdg1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
What's wrong?

EDIT:
Okay so I restarted now for both drives I get the error of Windows not shutting down properly. There's a problem though, the reason I'm ON linux (well, the reason I started) was because my Windows install borked. So I'm trying to back data up. So I CAN'T boot into Windows. What do I do now? D:

givré
July 31st, 2006, 08:36 PM
Hi everybody, sorry for the repo failure, my host was down on saturday, and i was away this weekend, so i couldn't know it. Some guys proposed a mirror. I'm not against but not sure that it's really necessary. It's not like they release a version all the week. Anyway, if somebody want, he can pm me.

@Solid1986Snake(about the space in the label):Oh yeah you're right. I didn't take this case in consideration. I could add it, but you have to past here the result of 'ls -l /dev/disk/by-label/' when you have a label with a space, i have nothing to test it right now.

@telperion:Can't say. It seams to be a fuse bug. You should contact them on http://fuse.sourceforge.net/ and report your problem (the best is probably the mailling list) but that's quite a strange bug, i don't know why fuse an d vlc could intereact(until the media is not from a partition manage by fuse, but if it's an mms...).

@DooX:of course guy, and if some people want to traduce ntfs-3g-nautilus-tools, all language will be welcome. :cool:

@BetaMaster:Unfortunatly this will not work since the partition need to be clean. If you want to backup data, you could use the normal driver (readonly) to copy them on CDs DVDs... An howto if you don't know how to have set an NTFS partition read only easily : http://psychocats.net/ubuntu/mountwindows.php

And a great thanks to domino for all the help. :D

GregaS
July 31st, 2006, 08:54 PM
I tried with sudo ntfs-3g /dev/hdc1 /media/diskc and here is the error:


Error getting information about /dev/hdc1: Input/output error
Mount failed.

givré
July 31st, 2006, 09:25 PM
I tried with sudo ntfs-3g /dev/hdc1 /media/diskc and here is the error:
Ok gregaS, here the problem:


/dev/hdc1 /dev/hdc1 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hdc5 /dev/hdc5 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
Like many newbie, you are confuse by the difference between device & mount point. /dev/hdc1 represent your device, but it's,it's could be explain as a link between your hardware and your system. But to browse it, you have to mount it on a director of your filesystem. That's why you have to mount on /media/<the name that you want> or whatever in your filesystel. But not in /dev /sys or /proc, because those direcory are virtual, they contain system files that are recreate at each reboot (they are not write in your HD)
And don't forget to create the directory of your mount point.
So in /etc/fstab, just remplace

/dev/hdc1 /dev/hdc1 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hdc5 /dev/hdc5 ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
by


/dev/hdc1 /media/<what you want> ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
/dev/hdc5 /media/<an other one> ntfs-3g silent,umask=0,locale=en_US.utf8 0 0
and before mounting them, create the directory:

sudo mkdir /media/<the first one> /media/<the second one>
and that's all.

GregaS
July 31st, 2006, 10:03 PM
Nope. That didn't do it. It's still mount failed.

domino
August 1st, 2006, 12:19 AM
Welcome back givré. I hope youu had a good weekend!

i think GregaS has some vital information that he may be overlooking. Are you certain that you rebooted from windows properly? Have you in the past used a partition manager to partition/format the drive? If you did exactly whay givre (post #216) instructed with your fstab and created the directories in /media, I see no other cause. It may a malformed partition that fuse just doesn't understand.

GregaS
August 1st, 2006, 12:28 AM
I've used partition magic to resize partition.

domino
August 1st, 2006, 12:38 AM
There's your problem. 3rd party Partition Managers will often leave tiny blank sections that windows can't detect but Linux's ntfs and ntfs-3g drivers will. ALso, Linux gets confused if you move partitions around using these programs.

Install, if you haven't do so, gparted or what ever they use in KDE and examine the partitions on the drive your ntfs partitions. Chances are that will prevent you from mounting the partitions properly. This also happens in Macintosh OS X.

givré
August 1st, 2006, 02:56 PM
I don't know what's wrong with partition magic, but i also always had problems with him.

domino
August 1st, 2006, 03:12 PM
Well it's not only PM. The same thing can happen with Acronis Partition Manager and maybe others. I'm not saying that the end result using these programs will not mount the partitions. I'm saying there is a good chance that someting bad will happen and you don't even know it. Windows and the partition application doesn't report the problen until you try to mount it in Linux and winder why it's not mounting :).

msandersen
August 1st, 2006, 06:51 PM
Personally I've never trusted a Linux partitioner with my Windows drive. Since they don't reliably write to NTFS, how can you trust it to resize an NTFS partition? And from my experiences with Mandrake, before they changed their name, I don't fully trust Alpha/Beta opensource software with such crucial tasks. That said, I do use NTFS-3g now, though not on my main machine. At least that was my experience with the extremely buggy nature of Mandrake. Upgrading had a tendency to screw up, so a fresh install was usually necessary. Last time I installed Mandrake was v9.2; it crashed during installation, twice at the same point, when I told it not to make a boot floppy. It took the MBR with it. Had to go to an internet cafe and download a utility called Bootpart to restore it. Don't know enough of DOS. Partition Magic and QParted both refuse to show the partition layout on the disk now, though they work fine. And when Mandrake 10.0 came out, I read the forums first carefully, and found quite a few people had got their partition tables borked, due to a rounding bug affecting the new 2.6 kernel and parted. So I lost my nerve installing Linux on that machine. Now I have an old 2nd-hand machine just for testing. But I won't entrust a Windows partition with either QParted or GParted, both Alpha softwares. Not that I partition a lot, but I've never had a problem with Partition Magic or Acronic True Image. I just installed a new larger disk on this machine, and resized all the partitions with the latter (True Image), then added partitions with the former (PM). Neither OS had a problem, thankfully. But any time you partition, you run a risk.

GregaS
August 1st, 2006, 06:55 PM
My friend also used partition magic and he doesn't have any problems.

LKRaider
August 1st, 2006, 07:45 PM
@ msandersen: despite what it may look like, resizing an NTFS partition is more reliable then writting to it! Yes, seems strange, but it is a completely unrelated process and tool. (ntfsresize (http://mlf.linux.rulez.org/mlf/ezaz/ntfsresize.html))

Also I had less problems with GParted (read: none!) than with PartitionMagic (where it would screw up my linux partitions). And I did resize, backup and clone ([ntfsclone) an unbootable damaged NTFS system partition, and finally fixing it (chkdsk), all with the tools provided on linux (except chkdsk, obviously).

My current Ubuntu system is also installed in a resized space from a NTFS partition, all from linux.

That said, I want to add that I trust more on opensource at any time, than in closed-source utils for this kind of things. The so called beta you mention, is because opensource is more thoroughly scrutinized before getting to a stable version than closed-source counterparts can ever be (because of deadlines, money issues, less man-power to check all bugs for differente environments, etc).

paszczak
August 1st, 2006, 08:34 PM
whoaaa! a lot of reading ;-) the Ntfs-3g works fine for me, but i was searching for solution how make to access via nautilus to all ntfs partition? i know the problem is (i have 3 partition's and only one is visible via nautilus) but after 23 pages of topic does somebody know solution for this problem or maybe some workaround? :)

But congratulations for everybody ;-)

Hotaru
August 1st, 2006, 11:30 PM
I have the same problem. Only the first ntfs partition is visible now, even only one desktop shortcut is left :(. To access the second ntfs partition I have to browse to /media/hda5/...

givré
August 1st, 2006, 11:48 PM
The expanation to that problem has been said a million time, it's in the common problem at the end of the first post.
There is for the moment nothing to do against that. Your partition is mounted, but because all partition are mount on /dev/fuse (fuse manage those partition) gnome see only one and show only one one the destop & on place (more /etc/mtab will show you this problem).
It's a fuse related problem, and for the moment there is no way to fix this 'bug' (it's not really a bug in fact).
Lot's of workearound:
- You can create a bookmark in nautilus on your mount point for all your partition, in that way, you will have it in place.
- You can mount your partition in a directory on your home for a better access, or easier, simply create a symlink of your mount point on your home.
- You can create a launcher in your desktop which will launch 'nautilus <your mount point>

Hope that will help

saracen
August 2nd, 2006, 04:58 AM
I just compiled the latest kernel from source (2.6.17.7) and now only the first drive listed in my /etc/fstab gets mounted properly. For the rest it says:


Error opening partition device: Device or resource busy
Failed to startup volume: Device or resource busy
Couldn't mount device '/dev/hdb1': Device or resource busy
Mount failed.
Error opening partition device: Device or resource busy
Failed to startup volume: Device or resource busy
Couldn't mount device '/dev/sdb1': Device or resource busy
Mount failed.


fuse is listed as being active when i do an 'lsmod'. And modprobe also shows that fuse is compiled (this makes sense since the first partition is in fact getting mounted)


saracen@veritas:~$ modprobe -l fuse
/lib/modules/2.6.17.7/kernel/fs/fuse/fuse.ko


I should say that it works fine (all drives get mounted) with kernel 2.6.15-26 (latest in the dapper repos)

Any ideas?

givré
August 2nd, 2006, 09:15 AM
Let see your /etc/mtab & your /etc/fstab. If it says it's busy, there is probably a reason

saracen
August 2nd, 2006, 05:18 PM
/etc/mtab:


/dev/hda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
varrun /var/run tmpfs rw 0 0
udev /dev tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda4 /home ext3 rw 0 0
/dev/fuse /media/big fuse rw,nosuid,nodev,noatime,default_permissions,allow_ other 0 0

/etc/fstab:


# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda4 /home ext3 defaults 0 2
/dev/hda3 /media/big ntfs-3g silent,locale=en_US.utf8,umask=007,gid=46 0 0
/dev/hdb1 /media/massif ntfs-3g silent,locale=en_US.utf8,umask=007,gid=46 0 0
/dev/sdb1 /media/sata ntfs-3g silent,locale=en_US.utf8,umask=007,gid=46 0 0
/dev/sda1 /media/scsi ntfs-3g silent,locale=en_US.utf8,umask=007,gid=46 0 0
/dev/hda5 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0

I'm not sure why it works with the older kernel and not with the new one...

givré
August 2nd, 2006, 07:34 PM
I don't really now what is the problem.
Try to compile the module by yourself (see point 5)

MilesTEG1
August 2nd, 2006, 08:54 PM
Hello,
I have some trouble with my external Hard Drive.
On this external DD, I have a ntfs partition named DD-Externe.

First, i used Kubuntu Dapper 6.06 AMD64bits version.

I installed ntfs-3g successfully, and I can read/write on a ntfs volume on my hard drive in my computer (internal drive).

I try to put the ntfs-3g driver for accessing my external ntfsp partition.
Here you can see the lines in my fstab :

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sdc1 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
/dev/sdc5 /home ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2


# Ancienne ligne de commande pour lire le ntfs.
#/dev/sdb5 /media/jeux-1 ntfs defaults,nls=utf8,umask=007,uid=0,gid=46,auto,rw,n ouser 0 1
/dev/sdb5 /media/jeux-1 ntfs-3g silent,umask=0,locale=fr_FR.utf8 0 0

/dev/sdc7 /media/jeux-2 vfat defaults,utf8,umask=007,uid=1000,gid=1000,auto,rw, nouser 0 1
/dev/sda5 /media/linux-xp vfat defaults,utf8,umask=007,uid=1000,gid=1000,auto,rw, nouser 0 1
/dev/sda2 /media/stockage ntfs defaults,nls=utf8,umask=007,uid=1000,gid=501,auto, ro,nouser 0 1
/dev/sdb1 /media/windows ntfs defaults,nls=utf8,umask=007,uid=1000,gid=501,auto, ro,users 0 1

[... CDRom part ...]


# Ligne de commande présente dans mtab lorsque monté automatiquement via l'icone sur le bureau.
#/dev/sde1 /media/DD-EXTERNE ntfs rw,noexec,nosuid,nodev,uid=1000,gid=1000,umask=077 ,iocharset=utf8 0 0
/dev/sde1 /media/DD-EXTERNE ntfs-3g noauto,silent,umask=007,uid=1000,gid=501,locale=fr _FR.utf8,users 0 1


The last line for DD-EXTERNE is the line I set.
It doesn't work.
The previous line is the line used to mount semi-automaticaly the drive when clicking on the icon on the desktop of KDE.

With the ntfs-3g line, I get this error message :
http://img438.imageshack.us/img438/2407/ntfs3gerrorsmn4.th.png (http://img438.imageshack.us/my.php?image=ntfs3gerrorsmn4.png)

Can somebody help me to have my external ntfs partition have write access with ntfs-3g ??

Thanks very much.
Miles

givré
August 2nd, 2006, 09:44 PM
Salut collègue,
It's probably the interference between the option users & allow_user (which is default in ntfs-3g).
- Try to remove the users option, normally pmount will run mount as root.
- If it's not work, add you in /etc/fuse.conf

Metroid48
August 3rd, 2006, 03:25 AM
Hi, I'm having the mentioned "only one partition viewable" problem, except differently.

My first drive partitioning:
FAT16|NTFS|FAT32

My second drive partitioning:
FAT32|EXT3|Swap|FAT32

Now, on my first drive (sda) only sda3 appears, and the NFTS part (sda2) appears blank, despite it being full of common 'C:/' drive contents.

Also, on my second drive (sdb) only sdb1 and sdb4 are accessible.

No clue what's going on here, I'm about to try to remove ntfs-3g.

Oh, btw, the update manager had me install 'pmount' right after I installed ntfs-3g. I think that might have something to do with it, but when I tried uninstalling it it said that practically everything else had to be uninstalled as well!

-Metroid48

Edit: Okay, I just tried uninstalling it. I reversed all the changes and ran 'sudo apt-get remove nfts-g3' from the terminal. After rebooting, the problem persisted. However, the partitions appeared again in places->Computer, but when I tried openeing it this happened:

mount: wrong fs type, bad option, bad superblock on /dev/sda2,

missing codepage or other error

in some cases useful info is found in syslog - try

dmesg | tail or so

any help?

Edit #2: Hey, the problem resolved it self. I added fuse back onto the end of the file, reverted the other settings back to their originals, then rebooted Ubuntu in recovery mode. Not sure if it'll still work in normal mode, but it's working at the moment!

-Metroid48

MilesTEG1
August 3rd, 2006, 08:37 AM
Salut collègue,
It's probably the interference between the option users & allow_user (which is default in ntfs-3g).
- Try to remove the users option, normally pmount will run mount as root.
- If it's not work, add you in /etc/fuse.conf
Hello ami ;) (tu es français, francophone, ou tu parles français ? ;))

So I try to remove the users option, but I have this error now :
http://img240.imageshack.us/img240/1138/ntfs3gerrors2zp5.th.png (http://img240.imageshack.us/my.php?image=ntfs3gerrors2zp5.png)

I doesn't have any fuse.conf
What is that config file ? (structure...)
I cannot find a doc for this.
What do I put in this file ?

Thanks
Miles

givré
August 3rd, 2006, 09:28 AM
Ok, it didn't work like i expected, so you will have to add users in the option of ntfs-3g.
For /etc/fuse.conf, have a look at http://fuse.sourceforge.net/wiki/index.php/fuse.conf
I guess you just have to create the file and simply add user_allow_other.

givré
August 3rd, 2006, 09:33 AM
@Metroid48: The upgrade of pmount is just to add the support of ntfs-3g, but pmount is only for removable device, so it have nothing to do with simple mount, and the things i add on it can only be use with CLI or with ntfs-3g-nautilus-tools, so keep it install.

MilesTEG1
August 3rd, 2006, 10:07 AM
Re.
I will try to add user in fuse.conf next reboot.

For the pmount patched, can you give a AMD64bits version, or source to compile it ?
Because I cannot install your version because of my 64bits installation.

Thanks.

givré
August 3rd, 2006, 10:52 PM
@MilesTEG1: how work the /etc/fuse.conf things?
I can't provide amd64 package for the patch pmount but you can have all the source with apt-get source.
Anyway, you don't really need it, cause the change could only be use with the nautilus script (or by CLI but i'm sure that's not what you want).
I search people to port ntfs-3g-nautilus-tools to konqueror, if you are interested?

givré
August 3rd, 2006, 11:01 PM
New upstream release : ntfs-3g-20070803-BETA :D
see here for more info : http://sourceforge.net/mailarchive/forum.php?thread_id=29233640&forum_id=2697
They fix the /dev/fuse problem, but now none of the device will be show on the desktop. I'm woking on a workaround (probably create a .desktop file on the desktop which launch /media/<mount point> at each boot) if you have some idea, i'm open.

Update ntfs-3g-nautilus-tools to follow change of the new release.
Now, each device mount with the script create an icone on the desktop which is remove at unmount.

And i definitly search kde user to port ntfs-3g-nautilus-tools. 8-)

MilesTEG1
August 4th, 2006, 07:42 AM
@MilesTEG1: how work the /etc/fuse.conf things?
I can't provide amd64 package for the patch pmount but you can have all the source with apt-get source.
Anyway, you don't really need it, cause the change could only be use with the nautilus script (or by CLI but i'm sure that's not what you want).
I search people to port ntfs-3g-nautilus-tools to konqueror, if you are interested?
Ok, for porting ntfs-3g-nautilus-tools to konqueror, I am interrested.
But I am not a developer, so My programming capabilities ares very small...

MilesTEG1
August 4th, 2006, 08:46 AM
Ok, it didn't work like i expected, so you will have to add users in the option of ntfs-3g.
For /etc/fuse.conf, have a look at http://fuse.sourceforge.net/wiki/index.php/fuse.conf
I guess you just have to create the file and simply add user_allow_other.

I create a fuse.conf with user_allow_other on a line.
I save it,
umount -a
mount -a

And after I double clic on the desktop icon, and I get this error : "Permission Refusée"
in english "Permission refused"
with this line in fstab :

/dev/sde1 /media/DD-EXTERNE ntfs-3g noauto,silent,umask=0,locale=fr_FR.utf8 0 0

I try with this line :

/dev/sde1 /media/DD-EXTERNE ntfs-3g noauto,allow_other,silent,umask=0,locale=fr_FR.utf 8 0 0
The same error appended...

Maybe I'll try the new drivers you post.

vinodis
August 4th, 2006, 08:49 AM
i tried and failed and tried and failed many times. now formatted my usb hdd to fat32 and living.

MilesTEG1
August 4th, 2006, 09:05 AM
I think to that solution : Fat 32 on my DD...
But the partition is 53Go so too big form formating in fat32 in windows.
And the next thing is that I have on this disk my local installation of www files for my phpbb forum, and this directory have many many files (more than 36000), and with fat 32, it is very slow, and I loose so much space...

I compiled and installed successfully the lastest ntfs-3g drivers for my AMD64bits dapper 6.06.
I reboot.

nismohasan
August 4th, 2006, 09:14 AM
how do i get that one ntfs partition off the desktop? if i can't have em all there i dont want any of them there :p

givré
August 4th, 2006, 09:20 AM
how do i get that one ntfs partition off the desktop? if i can't have em all there i dont want any of them there :p
upgrade to the last version and you will have nothing :cool:

nismohasan
August 4th, 2006, 09:25 AM
my bad, it disapeared after the reboot aswell :)

givré
August 4th, 2006, 09:29 AM
with this line in fstab :

/dev/sde1 /media/DD-EXTERNE ntfs-3g noauto,silent,umask=0,locale=fr_FR.utf8 0 0

I try with this line :

/dev/sde1 /media/DD-EXTERNE ntfs-3g noauto,allow_other,silent,umask=0,locale=fr_FR.utf 8 0 0
The same error appended...

Don't put allow_other, this will be automatic, but add users.
users is needed so you don't have to be root to mount
and user_allow_other in /etc/fuse.conf is needed because you will mount the drive not as root but as a simple user.
Anyway, the best for external is i think without fstab.
For the script, i don't remember how you can manage that with konqueror, how can you enable them?
Also you will have to find a qt remplacent for zenity.
This is a simple bash script, so the port should not be hard.

givré
August 4th, 2006, 09:38 AM
i tried and failed and tried and failed many times. now formatted my usb hdd to fat32 and living.
If you don't show us the error, we can't help you, did you try the script for usb disk?
Anyway, fat32 is good for sharing file between os.