muggie
Anmeldungsdatum: 29. März 2015
Beiträge: Zähle...
|
Hallo zusammen, da ich nun leider nach langem probieren und Beiträge lesen nicht zum Ergebnis gekommen, schreibe ich nun doch hier. Ich habe (leider) eine EasyBox803 als Router und daran eine USB Festplatte hängen. Die Freigabe im Router kann ich mit und ohne Passwort angeben, jedoch ohne Username. Über den Browser mittels smb://RouterIP/meinOrdner kann ich auf die Festplatte zu greifen und in dem Zuge wird diese mir auch in dem Dateibrowser (Nautilus) eingehängt und ich kann darauf Dateien kopieren und löschen. Wenn ich nun aber versuche, den Netzwerkordner einzubinden (zunächst ohne die fstab) mittels sudo mount -t cifs //RouterIP/meinOrdner /home/ich/easy
(in /media/easy eigentlich gedacht) wird nach dem Passwort gefragt und es kommt keine Fehlermeldung, aber die Platte wird nicht eingehängt. Habe schon die Routereinstellungen mit und ohne Passwort probiert.
Die Konfiguration als FTP Server mittels curlftpsfs klappt, aber ist nicht meine Intention.
Der Weg über die fstab mit //RouterIP/meinOrdner /home/ich/easy cifs auto 0 0 funktioniert leider auch nicht. Also, prinzipiell kann ich auf die Festplatte zugreifen und diese auch verwalten, aber ich kann sie nicht einbinden zu /media/... Ich finde leider keinen Weg mehr. Bin aber auch noch nicht lange mit Ubuntu in Berührung ☺ Grüße
Dominik Moderiert von tomtomtom: Keine "Fortgeschrittene Netzwerkkonfiguration" vorhanden. Ins passende Forum verschoben. Bitte beachte Richtig fragen.
|
muggie
(Themenstarter)
Anmeldungsdatum: 29. März 2015
Beiträge: 3
|
Hallo, danke das war ein guter Hinweis, aber nur insofern, dass ich mir die Rechte meiner USB Festplatte, die am Router angeklemmt ist, angeschaut habe. Samba scheint erstmal richtig konfiguriert zu sein. Ich denke, das Problem liegt darin, dass die USB Ffestplatte NTFS formatiert ist und ich daher keinen richtigen Zugriff auf diese erhalte. Ich kann die Festplatte einbinden, jedoch sobald ich darauf zugreifen möchte, habe ich nur einen endlosen Ladevorgang bzw. Nautilus öffnet sich dann nicht. Ich habe an an mount noch die Option
-o gid=User,uid=User
wobei der User eben mein Nutzername ist, angehängt, da ich dachte, es würde mir Schreib- und Leserechte für die NTFS formatierte Festplate geben, aber das führte bislang nicht zum Erfolg. Also mit den korrekten "mount" Optionen müsste es irgendwie klappen, leider kriege ich es nicht heraus, welche es sein könnten. Grüße
Dominik
|
megavolt
Anmeldungsdatum: 9. März 2015
Beiträge: 80
Wohnort: Neustadt
|
In der manpage "man fuse" findest du so einige Optionen. 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273 | fuse(8) System Manager's Manual fuse(8)
NAME
fuse - format and options for the fuse file systems
DESCRIPTION
FUSE (Filesystem in Userspace) is a simple interface for userspace
programs to export a virtual filesystem to the Linux kernel. FUSE also
aims to provide a secure method for non privileged users to create and
mount their own filesystem implementations.
CONFIGURATION
Some options regarding mount policy can be set in the file
/etc/fuse.conf. Currently these options are:
mount_max = NNN
Set the maximum number of FUSE mounts allowed to non-root
users. The default is 1000.
user_allow_other
Allow non-root users to specify the allow_other or allow_root
mount options (see below).
OPTIONS
Most of the generic mount options described in mount are supported
(ro, rw, suid, nosuid, dev, nodev, exec, noexec, atime, noatime, sync,
async, dirsync). Filesystems are mounted with nodev,nosuid by default,
which can only be overridden by a privileged user.
General mount options:
These are FUSE specific mount options that can be specified for all
filesystems:
default_permissions
By default FUSE doesn't check file access permissions, the
filesystem is free to implement it's access policy or leave it
to the underlying file access mechanism (e.g. in case of net‐
work filesystems). This option enables permission checking,
restricting access based on file mode. This is option is usu‐
ally useful together with the allow_other mount option.
allow_other
This option overrides the security measure restricting file
access to the user mounting the filesystem. So all users
(including root) can access the files. This option is by
default only allowed to root, but this restriction can be
removed with a configuration option described in the previous
section.
allow_root
This option is similar to allow_other but file access is lim‐
ited to the user mounting the filesystem and root. This option
and allow_other are mutually exclusive.
kernel_cache
This option disables flushing the cache of the file contents on
every open(2). This should only be enabled on filesystems,
where the file data is never changed externally (not through
the mounted FUSE filesystem). Thus it is not suitable for net‐
work filesystems and other intermediate filesystems.
NOTE: if this option is not specified (and neither direct_io)
data is still cached after the open(2), so a read(2) system
call will not always initiate a read operation.
auto_cache
This option enables automatic flushing of the data cache on
open(2). The cache will only be flushed if the modification
time or the size of the file has changed.
large_read
Issue large read requests. This can improve performance for
some filesystems, but can also degrade performance. This option
is only useful on 2.4.X kernels, as on 2.6 kernels requests
size is automatically determined for optimum performance.
direct_io
This option disables the use of page cache (file content cache)
in the kernel for this filesystem. This has several affects:
1. Each read(2) or write(2) system call will initiate one or more
read or write operations, data will not be cached in the ker‐
nel.
2. The return value of the read() and write() system calls will
correspond to the return values of the read and write opera‐
tions. This is useful for example if the file size is not known
in advance (before reading it).
max_read=N
With this option the maximum size of read operations can be
set. The default is infinite. Note that the size of read
requests is limited anyway to 32 pages (which is 128kbyte on
i386).
max_readahead=N
Set the maximum number of bytes to read-ahead. The default is
determined by the kernel. On linux-2.6.22 or earlier it's
131072 (128kbytes)
max_write=N
Set the maximum number of bytes in a single write operation.
The default is 128kbytes. Note, that due to various limita‐
tions, the size of write requests can be much smaller
(4kbytes). This limitation will be removed in the future.
async_read
Perform reads asynchronously. This is the default
sync_read
Perform all reads (even read-ahead) synchronously.
hard_remove
The default behavior is that if an open file is deleted, the
file is renamed to a hidden file (.fuse_hiddenXXX), and only
removed when the file is finally released. This relieves the
filesystem implementation of having to deal with this problem.
This option disables the hiding behavior, and files are removed
immediately in an unlink operation (or in a rename operation
which overwrites an existing file).
It is recommended that you not use the hard_remove option. When
hard_remove is set, the following libc functions fail on
unlinked files (returning errno of ENOENT): read(2), write(2),
fsync(2), close(2), f*xattr(2), ftruncate(2), fstat(2), fch‐
mod(2), fchown(2)
debug Turns on debug information printing by the library.
fsname=NAME
Sets the filesystem source (first field in /etc/mtab). The
default is the mount program name.
subtype=TYPE
Sets the filesystem type (third field in /etc/mtab). The
default is the mount program name. If the kernel suppports it,
/etc/mtab and /proc/mounts will show the filesystem type as
fuse.TYPE
If the kernel doesn't support subtypes, the source filed will
be TYPE#NAME, or if fsname option is not specified, just TYPE.
use_ino
Honor the st_ino field in kernel functions getattr() and
fill_dir(). This value is used to fill in the st_ino field in
the stat(2), lstat(2), fstat(2) functions and the d_ino field
in the readdir(2) function. The filesystem does not have to
guarantee uniqueness, however some applications rely on this
value being unique for the whole filesystem.
readdir_ino
If use_ino option is not given, still try to fill in the d_ino
field in readdir(2). If the name was previously looked up, and
is still in the cache, the inode number found there will be
used. Otherwise it will be set to -1. If use_ino option is
given, this option is ignored.
nonempty
Allows mounts over a non-empty file or directory. By default
these mounts are rejected to prevent accidental covering up of
data, which could for example prevent automatic backup.
umask=M
Override the permission bits in st_mode set by the filesystem.
The resulting permission bits are the ones missing from the
given umask value. The value is given in octal representation.
uid=N Override the st_uid field set by the filesystem (N is numeric).
gid=N Override the st_gid field set by the filesystem (N is numeric).
blkdev Mount a filesystem backed by a block device. This is a privi‐
leged option. The device must be specified with the fsname=NAME
option.
entry_timeout=T
The timeout in seconds for which name lookups will be cached.
The default is 1.0 second. For all the timeout options, it is
possible to give fractions of a second as well (e.g.
entry_timeout=2.8)
negative_timeout=T
The timeout in seconds for which a negative lookup will be
cached. This means, that if file did not exist (lookup retuned
ENOENT), the lookup will only be redone after the timeout, and
the file/directory will be assumed to not exist until then.
The default is 0.0 second, meaning that caching negative
lookups are disabled.
attr_timeout=T
The timeout in seconds for which file/directory attributes are
cached. The default is 1.0 second.
ac_attr_timeout=T
The timeout in seconds for which file attributes are cached for
the purpose of checking if auto_cache should flush the file
data on open. The default is the value of attr_timeout
intr Allow requests to be interrupted. Turning on this option may
result in unexpected behavior, if the filesystem does not sup‐
port request interruption.
intr_signal=NUM
Specify which signal number to send to the filesystem when a
request is interrupted. The default is hardcoded to USR1.
modules=M1[:M2...]
Add modules to the filesystem stack. Modules are pushed in the
order they are specified, with the original filesystem being on
the bottom of the stack.
FUSE MODULES (STACKING)
Modules are filesystem stacking support to high level API. Filesystem
modules can be built into libfuse or loaded from shared object
iconv
Perform file name character set conversion. Options are:
from_code=CHARSET
Character set to convert from (see iconv -l for a list of pos‐
sible values). Default is UTF-8.
to_code=CHARSET
Character set to convert to. Default is determined by the cur‐
rent locale.
subdir
Prepend a given directory to each path. Options are:
subdir=DIR
Directory to prepend to all paths. This option is mandatory.
rellinks
Transform absolute symlinks into relative
norellinks
Do not transform absolute symlinks into relative. This is the
default.
SECURITY
The fusermount program is installed set-user-gid to fuse. This is done
to allow users from fuse group to mount their own filesystem implemen‐
tations. There must however be some limitations, in order to prevent
Bad User from doing nasty things. Currently those limitations are:
1. The user can only mount on a mountpoint, for which it has write
permission
2. The mountpoint is not a sticky directory which isn't owned by
the user (like /tmp usually is)
3. No other user (including root) can access the contents of the
mounted filesystem.
NOTE
FUSE filesystems are unmounted using the fusermount(1) command (fuser‐
mount -u mountpoint).
AUTHORS
The main author of FUSE is Miklos Szeredi <mszeredi@inf.bme.hu>.
This man page was written by Bastien Roucaries <rou‐
caries.bastien+debian@gmail.com> for the Debian GNU/Linux distribution
(but it may be used by others) from README file.
SEE ALSO
fusermount(1) mount(8)
fuse(8)
|
Es kann eigentlich nicht am NTFS liegen. Die Rechte verwaltet Samba.
Ich habe an an mount noch die Option -o gid=User,uid=User
richtig wäre für den ersten user
|
Max-Ulrich_Farber
Anmeldungsdatum: 23. Januar 2007
Beiträge: 7990
|
Den Mountpunkt /home/ich/easy hast Du vorher eingerichtet? Dann versuche mal, im Mount-Befehl bzw. in der fstab-Zeile noch die Option guest einzufügen, also z.B.
sudo mount -t cifs //RouterIP/meinOrdner /home/ich/easy -o guest,uid=1000
bzw.
//RouterIP/meinOrdner /home/ich/easy cifs guest,uid=1000 0 0 Gruß – Max-Ulrich
|
muggie
(Themenstarter)
Anmeldungsdatum: 29. März 2015
Beiträge: 3
|
Mit den Optionen -o guest,uid=1000 hängt sich Nautilus zumindest nicht mehr auf, aber auf die Festplatte zugreifen klappt leider noch nicht im /home/ich/easy Verzeichnis.
Das witzige ist ja, im Nautilus "Menü" Netzwerk, taucht die Festplatte eingehängt auf und ich kann auch Dateien kopieren und löschen nach belieben. Aber auch erst, nach dem ich im Browser smb://RouterIP/meinOrdner eingegeben habe. sudo mount -t cifs //RouterIP/meinOrdner /home/ich/easy -o guest,uid=1000 ist schon nah dran, aber es fehlt noch was 😀 Nachtrag: Die Easybox 803A ist einfach nicht richtig kompatibel mit cifs. Es macht aber auch grundsätzliche Probleme bei Freigaben unter zwei Rechnern.
Wie ich darauf komme? Habe mit meinem alten Router ein lokales Netzwerk angelegt und in dem funktioniert alles ohne Probleme... Fazit: Neuen Router/ Modem bestellt. Ggf. würde für die externe Festplatte Fat32 Formatierung an der Easyboy funktionieren. Aber das teste ich nicht, ich bin mit dem Teil durch 🙄
|