PDA

View Full Version : Amule ed NTFS


keggy85
09-09-2007, 16:24
Salve a tutti, vorrei poter usare i file temporanei e le cartelle di destinazione dei file completati che uso su windows ovvero in partizioni NTFS, premetto che con ntfs-config riesco a scrivere e leggere perfettamente il disco in questione quindi mi sembra un problema di amule... :(

Questi sono gli errori che mi restituisce:

PartFiles: Error while saving part-file: SafeIO::IOFailure: Error writing to file: Operation not supported
CFile: Error when opening file (/media/sda1/eMule/Temp/023.part.met.bak): Operation not supported

cosa posso fare? :stordita:

Saluti

keggy

keggy85
09-09-2007, 19:20
Nessuno ha mai avuto un problema simile? Nessuno ha un idea?

rizzotti91
09-09-2007, 19:33
Installa ntfs-3g e monta il filesystem ntfs, in fstab, come tipo ntfs-3g ;)

keggy85
09-09-2007, 19:36
Come ho già scritto il supporto alla scrittura su tale partizione NTFS funziona benissimo...

il mio fstab nella partizione in causa dice:

/media/hdb1 ntfs-3g defaults,locale=it_IT.UTF-8 0 0

quindi è montata come consigli te....

Altre idee? :muro:

arara
09-09-2007, 19:37
ma vuoi solo che ti salvi i file completati da amule sulla stessa cartella in cui te li salva emule oppure vuoi che amule possa continuare i download di emule?
perche la prima si puo fare, ma la seconda a occhio credo proprio di no.

rizzotti91
09-09-2007, 19:38
Come ho già scritto il supporto alla scrittura su tale partizione NTFS funziona benissimo...

il mio fstab nella partizione in causa dice:

/media/hdb1 ntfs-3g defaults,locale=it_IT.UTF-8 0 0

quindi è montata come consigli te....

Altre idee? :muro:

Io uso wine per emulare emule, dato che è risaputo che usare la stessa cartella dei file temporanei che usi con emule, può creare danni :D
Io monto con ntfs-3g (come fai tu), poi lancio un bel wine emule.exe e funziona tutto a meraviglia :D

keggy85
09-09-2007, 19:55
Proverò ad emularlo...

keggy85
09-09-2007, 20:03
ma vuoi solo che ti salvi i file completati da amule sulla stessa cartella in cui te li salva emule oppure vuoi che amule possa continuare i download di emule?
perche la prima si puo fare, ma la seconda a occhio credo proprio di no.

Io vorrei fare la seconda... Perché pensi non si possa fare? Non è cmq sia una lettura e scrittura su una partizione NTFS? Non dovrebbe funzionare come funziona quella che faccio ad esempio da konqueror?

arara
09-09-2007, 20:11
Se riesci a leggere e scrivere su NTFS con konqueror ci riesce anche amule, per quello ho pensato che fosse una incompatibilità tra amule ed emule.
In fondo sono due software diversi, anche se usano la stessa rete p2p, per cui non mi stupirei se salvassero i file in un formato diverso.
Ma è solo un'ipotesi la mia, non ho mai approfondito...

keggy85
09-09-2007, 20:19
Come vedi da questi errori:

PartFiles: Error while saving part-file: SafeIO::IOFailure: Error writing to file: Operation not supported
CFile: Error when opening file (/media/sda1/eMule/Temp/023.part.met.bak): Operation not supported

Sembra proprio che non riesca a scrivere su HD e non che siano incompatibilità che cmq sia non esistono tra amule ed emule in quanto puoi prendere i file di uno e metterli nell altro e viceversa senza alcun problema...

E' per questo che ho postato qua, non capisco perchè possa accadere una stranezza del genere...

rizzotti91
09-09-2007, 20:25
Come vedi da questi errori:

PartFiles: Error while saving part-file: SafeIO::IOFailure: Error writing to file: Operation not supported
CFile: Error when opening file (/media/sda1/eMule/Temp/023.part.met.bak): Operation not supported

Sembra proprio che non riesca a scrivere su HD e non che siano incompatibilità che cmq sia non esistono tra amule ed emule in quanto puoi prendere i file di uno e metterli nell altro e viceversa senza alcun problema...

E' per questo che ho postato qua, non capisco perchè possa accadere una stranezza del genere...

Prova con l'emulazione :D Ci guadagni anche perchè non perdi crediti e ne continui ad accumulare!

chicco83
09-09-2007, 20:54
provato ad avviare amule come root?
non e' che e' un probema di permessi?

DeusEx
09-09-2007, 21:35
Vai con emule con wine (lo installi con il packet manager) ... funziona molto meglio di amule..
per installarlo wine /percorsosetupexe/emule.exe (da utente) :)

hamidi
27-08-2009, 00:31
hi
it seems that everyone here is from italy, while i'm not. the reason i go to post here is that i couldn't find any discussion about my same problem anywhere else in the net.
don't worry, my english is not so good as well! ;)
anyway, i've the same problem with amule in ubuntu on ntfs partition, while i can read and write files to the partition with no problem. i couldn't modify existing files on the volume. i found that it's because of the security entries for the files. the files which were created with the ubuntu itself had the entry for everyone full control over them. so i logged in to the windows and changed the permission for emule temp files to this.
but it didn't help and amule still can't write files back to the volume.
i like to know what's the problem.
thx

Gimli[2BV!2B]
27-08-2009, 22:35
I think that the broblem may be caused by the peculiar access right handling of ntfs-3g.
With the default options the partition is mounted with owner and group root, but is readable and writable by everyone.

We need to collect a couple of ids, then we will try to set your user as the owner of the partition.

Fire up a console and run the command id: you'll see a bounch of numbers, we need the first two.
Example:gimli@altarf:~$ id
uid=1000(gimli) gid=1000(gimli) .......
Almost surely your user has the same ids: these are the default ids of the first low-rights user of every distribution.
Add the values you found into ntfs-3g mount options inside the file /etc/fstab.
Example:
/dev/hda1 /mnt/windows ntfs-3g defaults,nodev,uid=1000,gid=1000 0 0


Let's see if it does the trick...

P.S. this settings could create problems if you're not the only user of the system. In this case you should add a group and use only the gid option.

RoT
28-08-2009, 09:19
io avevo lo stesso problema con le vecchie versioni di ubuntu... ma da quando ho la 9.04 funziona tutto.

prima risolvevo riavviando il pc :) hiihhiihihihihihih

PS: con i permessi vari non riuscivo a risolvere il problema, ero sempre punto e a capo.

hamidi
29-08-2009, 12:06
rehi
thanks for ur suggestion, i'm going to examine it.
but how can i test it without restarting ubuntu? i've made changes to /etc/fstab as u mentioned.

Gimli[2BV!2B]
29-08-2009, 12:50
You only need to remount the affected partition.

Run this command (adapt to you mountpoint):
sudo umount /mnt/windows

If you have a "device is busy" error use lsof to find which process are using which files, so you can close these processes to free the partition:
sudo lsof /mnt/windows

Finally remount it:
sudo mount /mnt/windows

hamidi
29-08-2009, 13:56
thank u very much :)
i'll examine it

hamidi
30-08-2009, 09:11
unfortunately it didn't solve the problem :(
i think it can't work cent percent with a compressed file in NTFS. Ubuntu seems that does not support the way aMule works with the files.
i've no idea about the next step.

RoT
30-08-2009, 11:46
il problema non sono i file ntfs, io attualmente utilizzo un hard disk con filesystem ntfs ed amule va che è una meraviglia... so che non è una soluzione ma non ho idea di come si sia risolto il problema :)

Gimli[2BV!2B]
30-08-2009, 12:15
i think it can't work cent percent with a compressed file in NTFS.
Are you talking about transparent compressed files/directories (http://en.wikipedia.org/wiki/NTFS#File_compression) in NTFS?
This NTFS feature is still not completely supported by ntfs-3g drivers. (http://www.ntfs-3g.org/support.html#compressed) (only read, not write)

If this is the case, just try to deactivate compression on a/eMule temp folder.

I've no other ideas... as reported, your problem seems to appear randomly, sometimes after some hours of uptime; perhaps it could be a combination of a particular version of ntfs-3g drivers, aMule version, properties of NTFS volume...

hamidi
30-08-2009, 14:48
this may be the only reasonable idea. it seems that ntfs-3g can't write to a compressed file. yes, i meant the same.
how can i make sure that the problem is exactly this?
i can't deactivate the compression. the drive can't hold the uncompressed files. compression feature of NTFS which i think is not available and is not going to be available in any version of linux filesystem and distributions as well as its so wide range of security feature is a great benefit of using Windows in contrast to eg. Ubuntu. i think we need to use a combined OS to have advantages of both and doesn't have disadvantages of both.
the feature of compression seems to be designed best for eMule. while u intend to download a huge file like a 700MB divx video file, it's just occupies 4K at first. when more parts of file are downloaded the real occupied space of the file increases. this is why i use compression, if not for anything else, surely for eMule temp folder.
compression also makes working with Windows smoother and faster. just NTLDR needs not to be compressed and maybe the pagefile.sys. others i think is better to be compressed.
in contrast some filesystems like reiserfs r not comparable with ntfs. they're so faster to work with...
anyway, i just was going to describe why i have to use compression. :P
it's not operating randomly! why did u think so? it always generate the same error, but ony with aMule. it doesn't have any problem reading the files, as u mentioned. it seems that writing to compressed files has problems. i don't change properties of NTFS volume, aMule version or ntfs-3g version.
anyway, i like to know what's the occupied space for an empty 700MB file on the hard disk if the filesystem be reiserfs? does reiserfs act like ntfs compressed?

Gimli[2BV!2B]
30-08-2009, 16:02
So you use NTFS compression or not? This property must be activated manually, it's automatically activated only on the hidden backup folders created in Windows directory by security updates.
Here you can see a screenshot of the properties of a compressed folder. (http://www.dansdata.com/ntfscompression.htm)

This compression can be useful, but can add a noticeable overhead to the filesystem (http://support.microsoft.com/kb/251186).
Or maybe not, as you suggest, there are opposite point of view on this topic, and I'm not very informed/interested on this argument.

If you use this NTFS feature, this is the problem.

Talking about the "random part": RoT said that with Ubuntu 9.04 the problem disappeared.
A first read of one of his posts made me also think that the error showed up after some hours of use, but I misunderstood him...
Do you have Ubuntu 9.04 installed?

Now the last point: does Linux file systems have transparent compression?
Comparison of file systems (http://en.wikipedia.org/wiki/Comparison_of_file_systems) says that Butter FS (http://en.wikipedia.org/wiki/Btrfs) (very, very new), Reiser4 (http://en.wikipedia.org/wiki/Reiser4) (in a sort of limbo after Hans trial (http://en.wikipedia.org/wiki/Hans_Reiser#Trial_and_Verdict)...) and ZFS (http://en.wikipedia.org/wiki/ZFS) (non GPL licence -> FUSE (http://en.wikipedia.org/wiki/Filesystem_in_Userspace)) have this feature.
In any other file system an empty 700 MB file will fill 700 MB of space.

hamidi
30-08-2009, 20:23
Bravo, Gimli!
u sound so expert in linux and investigations over it. thank u for ur so great assistances and information provided. it will take some time for me to follow the links and read the documents. but for now, if u say that the problem is fully solved in ubuntu 9.04 which i'm using and it fully supports ntfs, so why such a problem in aMule exists?
i tried gparted and it worked even better than Partition Magic! it was awesome! my files were compressed, but no problem occured for the partition.
i completely use compression, why not? yes, the overhead exists, but in total the system gets faster as i read once b4 in MS documents. i'm going to read the documents u mentioned too. reasonably, it must gets faster. reading less data from a too slow device in comparison with the CPU's speed ie. hard disk, decompressing it in memory and finding the original data is too faster than reading the original data from the device, even though it includes the processing of decompression.
i enable file and folder compression everytime i format a partition. i don't know why it's off by default! i also check the box whenever i see a file or the folder with the black color instead of blue.
If you use this NTFS feature, this is the problem.
u mean if i'm not using version 9.04. right? if so, i use this version as i mentioned above. so this is not the problem. right?
and a question, can i convert the file system to reiser4? gparted doesn't bring up conversion for this fs though.
i hope once ubuntu be able to bring up the security tab for ntfs partitions.

Gimli[2BV!2B]
30-08-2009, 21:13
Another problem, that generated the SafeIO::IOFailure on normal (not compressed) NTFS directories is solved in Ubuntu 9.04 (as reported by Rot).
But you use NTFS compression, that is *NOT* fully supported by ntfs-3g drivers, independently by Ubuntu version.
So, if you are using 9.04, you're probably seeing the same error messages because you activated NTFS compression on eMule/aMule temporary folder.

To check if this hypothesis is correct you should try to disable compression only on the necessary folders (a/eMule temporary and, eventually, incoming).
If the error disappears, you will need to decide if permanently disable compression on this folders, or move them in a fully supported file system, or keep aMule and eMule folders separated, or use only eMule, or use only aMule...

Reiser4 is still not inside the kernel, so if you want to use it you need to patch the kernel sources and compile your own kernel. Perhaps, in a not very far future (http://www.spinics.net/lists/reiserfs-devel/msg01803.html), it will enter into the mainline kernel.

hamidi
30-08-2009, 21:35
thank u very much
i will examine it
just a question. i encountered some questions about ubuntu. where's the best place to discuss about them? they're separate and not relative to aMule.

Gimli[2BV!2B]
30-08-2009, 22:24
Well, I think that the best place for Ubuntu is Ubuntu Forums (http://ubuntuforums.org/)!

hamidi
01-09-2009, 00:30
yeah, i thought so at first
but i got some questions which never was answered by anyone there