Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntfs3g
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Thu Apr 24, 2008 5:51 pm    Post subject: ntfs3g Reply with quote

Hallo
Ich habe Probleme beim Zugriff auf ntfs-Partitionen mit der Kombination gentoo-sources-2.6.24-r3 + fuse-2.7.2 + ntfs3g(alle Versionen) Das System hängt sich auf. Habe im Log nichts gefunden. gentoo-sources-2.6.23-r3 + fuse-2.7.2 + ntfs3g(alle Versionen) funktioniert. Vielleicht liegt das an fuse. Die neueste Version ist ja nicht in Portage. Hat jemand diese Kombination gentoo-sources-2.6.24-r3 + fuse-2.7.2 + ntfs3g-1.2412 ohne Probleme in Nutzung? (Ich nutze z.Z. wieder gentoo-sources-2.6.23-r3 ohne Probleme.)
MfG
Back to top
View user's profile Send private message
Necoro
Veteran
Veteran


Joined: 18 Dec 2005
Posts: 1912
Location: Germany

PostPosted: Thu Apr 24, 2008 6:14 pm    Post subject: Reply with quote

Fuse-2.7.3 Release Notes wrote:
A bug in the fuse kernel module is fixed which could cause
a hang under linux-2.6.24. This bug only affects the fuse
kernel module built from this package, the module in the
linux tree is OK.

:arrow: installier das Modul im Kernel und stelle sicher, das nicht das externe geladen wird
_________________
Inter Deum Et Diabolum Semper Musica Est.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Thu Apr 24, 2008 6:42 pm    Post subject: Reply with quote

Ich kompillere also den kernel mit fuse als modul neu, installiere fuse, ignoriere die Fehlermeldung, daß das kernelmodul schon vorhanden ist und starte
Code:
fuse |      default
normal?
Back to top
View user's profile Send private message
Necoro
Veteran
Veteran


Joined: 18 Dec 2005
Posts: 1912
Location: Germany

PostPosted: Thu Apr 24, 2008 6:46 pm    Post subject: Reply with quote

flammenflitzer wrote:
Ich kompillere also den kernel mit fuse als modul neu, installiere fuse, ignoriere die Fehlermeldung, daß das kernelmodul schon vorhanden ist und starte
Code:
fuse |      default
normal?

Genau :)

und ich sehe das auch nicht so als "Fehlermeldung", sondern als "info" :)

btw: das /etc/init.d/fuse starten ist noch nicht mal nötig ;)

/edit: Ok - mit in-kernel-modul haut es hier hin
Code:
[ebuild   R   ] sys-kernel/tuxonice-sources-2.6.24-r4  USE="-build -symlink" 0 kB
[ebuild   R   ] sys-fs/ntfs3g-1.2310  USE="-debug -suid" 0 kB
[ebuild   R   ] sys-fs/fuse-2.7.2  0 kB

_________________
Inter Deum Et Diabolum Semper Musica Est.
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3369
Location: de

PostPosted: Thu Apr 24, 2008 10:20 pm    Post subject: Reply with quote

Gleich mal noch 'ne Ergänzungsfrage zu ntfs3g.

Wie kriegt man es hin, daß mount per default auf ntfs3g statt auf den Kernel-ntfs-Treiber zurückgreift? Wenn ich bis jetzt 'ne Ntfs-Partition mounten will, krieg ich 'ne Fehlermeldung, daß keine ntfs-Unterstützung vorhanden ist. Hat ja auch recht, weil ich den ntfs-Treiber im Kernel deaktivert hab.
Back to top
View user's profile Send private message
AmonAmarth
l33t
l33t


Joined: 03 Mar 2005
Posts: 727

PostPosted: Fri Apr 25, 2008 12:02 am    Post subject: Reply with quote

musv wrote:
Gleich mal noch 'ne Ergänzungsfrage zu ntfs3g.

Wie kriegt man es hin, daß mount per default auf ntfs3g statt auf den Kernel-ntfs-Treiber zurückgreift? Wenn ich bis jetzt 'ne Ntfs-Partition mounten will, krieg ich 'ne Fehlermeldung, daß keine ntfs-Unterstützung vorhanden ist. Hat ja auch recht, weil ich den ntfs-Treiber im Kernel deaktivert hab.


dirty hack?

Code:
# ln -s /usr/bin/ntfs-3g /sbin/mount.ntfs

quelle: http://gentoo-wiki.com/HOWTO_NTFS_write_with_ntfs-3g#Use_ntfs-3g_instead_of_kernel.27s_read-only_ntfs_driver_for_AutoMounting

dort gibts auch noch mehr infos.


mfg
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Fri Apr 25, 2008 1:29 pm    Post subject: Reply with quote

Das funktioniert aber mit der neuen Version nicht mehr so schön. Bis zur vorletzten Version habe ich das so gemacht. Ich hatte alle ntfs Partitionen aus der fstab entfernt und konnte mit kde 3.5.9 die Medien im Konqueror -> Speichermedien automatisch mit Schreibzugriff einbinden. Für die letzte Version von ntfs-3g brauche ich wieder die Einträge in der fstab. mittlerweile funktioniert nicht einmal mehr
Code:
/dev/sdb1  /mnt/Samsung-1             ntfs-3g noauto,users,uid=1000,gid=1000,nls=utf8 0 0
Code:
drwxrwxrwx  2 olaf users  4096 13. Mär 10:40 Samsung-1
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Sat Apr 26, 2008 3:59 pm    Post subject: Reply with quote

definiere neue Version (stable in Portage oder wirklich die neuste Version)
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
ph03n1x
l33t
l33t


Joined: 06 Feb 2003
Posts: 756

PostPosted: Sat Apr 26, 2008 9:45 pm    Post subject: Reply with quote

Also ich weiss nicht, was ihr da macht...

Fuse: Hab ich nicht explizit installiert, im kernel aktiviert, deinstallieren
ntfs: Im Kernel den Treiber rausnehmen, brauchst du ja nicht, da du das ntfs3g modul benutzen willst
ntfs3g: emergen

Klappt super und automounted mir auch gleich alle ntfs laufwerke bereits mit meinen standardsettings in gnome. Bin echt überrascht, wie gut die ntfs treiber geworden sind. Bis jetzt sehr schnell und zuverlässig, vor 2 Jahren war das noch nicht der Fall...

Klappte bei mir für:
- gentoo-sources-2.6.24-r4
- gentoo-sources-2.6.25-r1
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Sun Apr 27, 2008 5:33 am    Post subject: Reply with quote

Welche ntfs3g Version?
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Sun Apr 27, 2008 9:09 am    Post subject: Reply with quote

flammenflitzer wrote:
Welche ntfs3g Version?

meine Frage überlesen?
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Sun Apr 27, 2008 11:27 am    Post subject: Reply with quote

Bei mir
Code:
sys-fs/ntfs3g-1.2412  USE="-debug suid"
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Sun Apr 27, 2008 11:50 am    Post subject: Reply with quote

was sagt ntfs-3g wenn du die ntfs-partition direkt mit ntfs-3g mounten möchtest?

Code:
ntfs-3g /dev/sdb1 "/mnt/Samsung-1"

_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
maggu2810
n00b
n00b


Joined: 27 Sep 2005
Posts: 20

PostPosted: Sun Apr 27, 2008 12:57 pm    Post subject: Reply with quote

Man kann sich auch einfach eine hal policy erstellen, um zu sagen, dass für ntfs ntfs-3g verwendet werden soll.
So spart man sich den Link (mount.ntfs -> mount.ntfs-3g)
Auszug:
Code:
      <match key="volume.fstype" string="ntfs">
        <merge key="volume.fstype" type="string">ntfs-3g</merge>
        <merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>

_________________
--- sorry for the bad english ---
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Sun Apr 27, 2008 1:22 pm    Post subject: Reply with quote

firefly wrote:
was sagt ntfs-3g wenn du die ntfs-partition direkt mit ntfs-3g mounten möchtest?

Code:
ntfs-3g /dev/sdb1 "/mnt/Samsung-1"

Link mount.ntfs -> mount.ntfs-3g
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Sun Apr 27, 2008 1:41 pm    Post subject: Reply with quote

flammenflitzer wrote:
firefly wrote:
was sagt ntfs-3g wenn du die ntfs-partition direkt mit ntfs-3g mounten möchtest?

Code:
ntfs-3g /dev/sdb1 "/mnt/Samsung-1"

Link mount.ntfs -> mount.ntfs-3g

??
ich wollte das du die partition direkt mit ntfs-3g mountest anstelle mit mount.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Sun Apr 27, 2008 3:30 pm    Post subject: Reply with quote

als root wird sie eingebunden. Als user
Code:
olaf@localhost ~ $ ntfs-3g /dev/sdb1 "/mnt/Samsung-1"
Error opening '/dev/sdb1': Keine Berechtigung
Failed to mount '/dev/sdb1': Keine Berechtigung
Please check '/dev/sdb1' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unprivileged

Bin ein bißchen unaufmerksam. Steige gerade von kde 3 auf kde 4 um.
MfG
Back to top
View user's profile Send private message
maggu2810
n00b
n00b


Joined: 27 Sep 2005
Posts: 20

PostPosted: Sun Apr 27, 2008 3:36 pm    Post subject: Reply with quote

In der Meldung steht ja schon der Link, der alles erklären sollte: http://ntfs-3g.org/support.html#unprivileged
Oder?

Du kannst beispielsweise einfach ntfs3g mit USE-Flag "suid" übersetzen.
_________________
--- sorry for the bad english ---
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Sun Apr 27, 2008 3:43 pm    Post subject: Reply with quote

flammenflitzer wrote:
als root wird sie eingebunden. Als user
Code:
olaf@localhost ~ $ ntfs-3g /dev/sdb1 "/mnt/Samsung-1"
Error opening '/dev/sdb1': Keine Berechtigung
Failed to mount '/dev/sdb1': Keine Berechtigung
Please check '/dev/sdb1' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unprivileged

Bin ein bißchen unaufmerksam. Steige gerade von kde 3 auf kde 4 um.
MfG


was sagt
Code:
ls -l /dev/sdb*


ich vermute die rechte stehen auf 640 und root:disk
die Device-node für die NTFS partition muss leider die Rechte 660 haben sprich die Gruppe darf auch darauf schreibend zugreifen.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Sun Apr 27, 2008 4:32 pm    Post subject: Reply with quote

Code:
olaf@localhost ~ $ ls -l /dev/sdb*
brw-r----- 1 root disk 8, 16 27. Apr 17:09 /dev/sdb
brw-r----- 1 root disk 8, 17 27. Apr 17:09 /dev/sdb1
brw-r----- 1 root disk 8, 26 27. Apr 17:09 /dev/sdb10
brw-r----- 1 root disk 8, 27 27. Apr 17:09 /dev/sdb11
brw-r----- 1 root disk 8, 18 27. Apr 17:09 /dev/sdb2
brw-r----- 1 root disk 8, 21 27. Apr 17:09 /dev/sdb5
brw-r----- 1 root disk 8, 22 27. Apr 17:09 /dev/sdb6
brw-r----- 1 root disk 8, 23 27. Apr 17:09 /dev/sdb7
brw-r----- 1 root disk 8, 24 27. Apr 15:21 /dev/sdb8
brw-r----- 1 root disk 8, 25 27. Apr 16:42 /dev/sdb9

Das müsste ich wohl irgendwo in den udev-rules ändern?
Back to top
View user's profile Send private message
maggu2810
n00b
n00b


Joined: 27 Sep 2005
Posts: 20

PostPosted: Sun Apr 27, 2008 4:39 pm    Post subject: Reply with quote

Davon würde ich sehr abraten
_________________
--- sorry for the bad english ---
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Sun Apr 27, 2008 5:17 pm    Post subject: Reply with quote

und wie soll es man sonst machen, wenn man ntfs-3g als user verwenden möchte?
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Sun Apr 27, 2008 5:29 pm    Post subject: Reply with quote

Bin offen für Vorschläge.
Weiß jemand auf Anhieb, wo ich das einfügen muß? Sonst bleibt bloß das erstellen neuer Regeln oder stundenlanges recherchieren.
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5329

PostPosted: Sun Apr 27, 2008 5:36 pm    Post subject: Reply with quote

ich habe hier eine generelle udev-Regel, welche für alle ntfs-partitionen gilt, solange diese als /dev/sd* auftauchen.

76-ntfs.rules wrote:
# change mode to 0660 for ntfs-partition so mounting via ntfs-3g works
KERNEL=="sd*" , ENV{ID_FS_TYPE}=="ntfs", MODE="0660"


Aber Achtung: Dadurch wird dem Benutzer ermöglicht direkt auf das device zu schreiben. Ein Schadprogram könnte dadurch diese Partition zerstören
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
maggu2810
n00b
n00b


Joined: 27 Sep 2005
Posts: 20

PostPosted: Sun Apr 27, 2008 6:35 pm    Post subject: Reply with quote

maggu2810 wrote:
In der Meldung steht ja schon der Link, der alles erklären sollte: http://ntfs-3g.org/support.html#unprivileged
Oder?

Du kannst beispielsweise einfach ntfs3g mit USE-Flag "suid" übersetzen.


firefly wrote:
und wie soll es man sonst machen, wenn man ntfs-3g als user verwenden möchte?


Siehe oben
_________________
--- sorry for the bad english ---
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum