View previous topic :: View next topic |
Author |
Message |
sYnopsis n00b
Joined: 21 Nov 2004 Posts: 26
|
Posted: Sat Dec 18, 2004 7:10 pm Post subject: Kein Kopieren aus home nach fat 32 Partition? |
|
|
Ich habe ein großes Problem.
Ich will den Ordner samt Inhalt ( /home/michael/daten ) nach /mnt/win_d kopieren.
Der Ordner daten gehört dem Benutzer michael und zur Gruppe users. (Standard)
Wenn ich jetzt kopieren will mit cp -R /home/michael/daten /mnt/win_d bekomme ich einen Fehler:
Code: |
cp: setting permissions for `/mnt/win_d/datem': Operation not permitted.
|
An was könnte das liegen, ich habe als root kopiert! |
|
Back to top |
|
|
Sandal Tolk n00b
Joined: 30 Oct 2004 Posts: 62
|
Posted: Sat Dec 18, 2004 7:16 pm Post subject: |
|
|
hast du die platte / partition überhaupt schreibbar gemounted? |
|
Back to top |
|
|
psyqil Advocate
Joined: 26 May 2003 Posts: 2767
|
Posted: Sat Dec 18, 2004 7:21 pm Post subject: |
|
|
umask nicht gesetzt? Code: | /dev/hdd2 /mnt/fat vfat umask=000 0 0 |
|
|
Back to top |
|
|
DeathAngel n00b
Joined: 16 Nov 2004 Posts: 58
|
Posted: Sat Dec 18, 2004 9:35 pm Post subject: |
|
|
Hi,
bin in umask zwar nicht sonderlich gewandt, aber folgender Eintrag in der fstab sollte ebenfalls völlig "ausreichend" sein :
Code: | /dev/hd?? /mnt/win_d/ vfat user,noauto,rw 0 0 |
Wobei natürlich /dev/hd?? durch die richtige Partition ersetzt werden sollte ... |
|
Back to top |
|
|
boris64 Veteran
Joined: 04 Oct 2003 Posts: 1770 Location: Vechelde/Peine
|
Posted: Sat Dec 18, 2004 9:50 pm Post subject: |
|
|
ich nehme mal stark an, dass das zieldateisystem (/mnt/win_d)
fat32 ist, gelle?
das unterstützt leider keine dateirechte, folglich können auch keine gesetzt werden.
falls dich die nachricht nervt, pack einfach ein "quiet" zu den
mount-optionen in der fstab hinzu, siehe beispiel:
Code: | /dev/hdd5 /mnt/knotty vfat iocharset=iso8859-1,codepage=850,quiet,users,umask=0 0 0 0 0
|
_________________ boris64.net 200x / visit my desktop / try these tiny kernel patches |
|
Back to top |
|
|
sYnopsis n00b
Joined: 21 Nov 2004 Posts: 26
|
Posted: Sun Dec 19, 2004 8:08 am Post subject: |
|
|
/etc/fstab:
Code: |
/dev/hda7 /mnt/win_d vfat defaults,umask=000 0 0
|
|
|
Back to top |
|
|
DeathAngel n00b
Joined: 16 Nov 2004 Posts: 58
|
Posted: Sun Dec 19, 2004 9:48 am Post subject: |
|
|
WIe schon borisdigital richtig gesehen hat handelt es sich um fat32 und dort gibbet keine Berechtigungen wie du es von ext2/ext3 etc. kennst ...
Also die Benachrichtigung ist vollkommen normal...
Gruß |
|
Back to top |
|
|
sYnopsis n00b
Joined: 21 Nov 2004 Posts: 26
|
Posted: Sun Dec 19, 2004 10:48 am Post subject: |
|
|
öhm?
Es muss doch aber eine Möglichkeit geben Daten auf ne Fat32 Partition zu kopieren? |
|
Back to top |
|
|
toskala Advocate
Joined: 14 Dec 2002 Posts: 2080 Location: hamburg, germany
|
Posted: Sun Dec 19, 2004 10:55 am Post subject: |
|
|
ja, natürlich gibt es die. das problem hierbei ist, dass alle berechtigungsattribute verloren gehen. das solltest du tunlichst lassen wenn du später wieder etwas damit anfangen willst.
mach am besten ein tar-archiv daraus, das merkt sich dann die attribute im archiv und du kannst es ohne probleme irgendwo anders ablegen.
und wenns doch mit cp gehen soll kuckst du die manpage von cp an:
Code: | --no-preserve=ATTRIBUTES (since file-utils 4.1)
Do not preserve the specified attributes. See the --preserve option below.
-p, --preserve
Preserve the original files' owner, group, permissions, and timestamps.
--preserve=ATTRIBUTES (since file-utils 4.1)
Here ATTRIBUTES can be one of "mode" (permissions), "ownership" (owner and group), "timestamps", "links", "all" (all of the
foregoing). |
_________________ adopt an unanswered post
erst denken, dann posten |
|
Back to top |
|
|
wuschel Apprentice
Joined: 27 Dec 2002 Posts: 177 Location: Rodenbach, Germany
|
Posted: Sun Dec 19, 2004 10:58 am Post subject: |
|
|
Quote: | öhm?
Es muss doch aber eine Möglichkeit geben Daten auf ne Fat32 Partition zu kopieren? |
Klar, das ist normalerweise überhaupt kein Problem.
Aber was hältst du davon hier einfach mal deine /etc/fstab und die Ausgabe von "ls -l / /mnt /mnt/win_d" hier mal rauszurücken? _________________ Never run a changing system!
Epox 8rda+ (NForce2), Barton2500, 1GB, Sapphire ATI Radeon 9500Pro, WD800JB |
|
Back to top |
|
|
sYnopsis n00b
Joined: 21 Nov 2004 Posts: 26
|
Posted: Sun Dec 19, 2004 11:04 am Post subject: |
|
|
ganze fstab (der Eintrag der wichtig ist steht ja schon im Thread)
Code: |
## /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda6 / ext3 noatime 0 0
/dev/hda5 none swap sw 0 0
/dev/hdc /mnt/dvd-rw iso9660 noauto,user 0 0
/dev/hdd /mnt/dvd iso9660 noauto,user 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
/dev/hda1 /mnt/win_c ntfs defaults,umask=000,ro 0 0
/dev/hda7 /mnt/win_d vfat defaults,umask=000 0 0
|
ls -l / /mnt /mnt/win_d:
Code: |
/:
total 64
drwxr-xr-x 2 root root 4096 Dec 16 15:18 bin
drwxr-xr-x 2 root root 4096 Dec 17 18:10 boot
drwxr-xr-x 1 root root 0 Jan 1 1970 dev
drwxr-xr-x 61 root root 4096 Dec 19 11:53 etc
drwxr-xr-x 3 root root 4096 Dec 18 17:57 home
drwxr-xr-x 8 root root 4096 Dec 17 17:35 lib
drwx------ 2 root root 16384 Nov 14 17:01 lost+found
drwxr-xr-x 8 root root 4096 Nov 23 21:01 mnt
drwxr-xr-x 6 root root 4096 Nov 17 16:15 opt
dr-xr-xr-x 89 root root 0 Dec 19 2004 proc
drwx------ 13 root root 4096 Dec 19 11:59 root
drwxr-xr-x 2 root root 4096 Dec 19 09:21 sbin
drwxr-xr-x 9 root root 0 Dec 19 2004 sys
drwxrwxrwt 19 root root 4096 Dec 19 11:54 tmp
drwxr-xr-x 18 root root 4096 Dec 11 13:46 usr
drwxr-xr-x 14 root root 4096 Dec 16 15:26 var
/mnt:
total 100
drwx------ 2 root root 4096 Jul 14 21:09 cdrom
drwxr-xr-x 2 root root 4096 Nov 23 21:01 dvd
drwxr-xr-x 2 root root 4096 Nov 23 21:01 dvd-rw
drwx------ 2 root root 4096 Jul 14 21:09 floppy
dr-xr-xr-x 1 root root 69632 Dec 5 18:11 win_c
drwxrwxrwx 15 root root 16384 Jan 1 1970 win_d
/mnt/win_d:
total 304
drwxrwxrwx 4 root root 16384 Dec 15 18:14 Delphi
drwxrwxrwx 5 root root 16384 Nov 17 14:24 Filme
drwxrwxrwx 5 root root 16384 Nov 17 14:24 Freizeit
-rwxrwxrwx 1 root root 1160 Dec 4 11:19 IRC.txt
drwxrwxrwx 47 root root 16384 Dec 19 11:57 Musik
drwxrwxrwx 2 root root 16384 Nov 17 14:24 Musik Videos
drwxrwxrwx 4 root root 16384 Nov 22 16:46 Netzwerk
-rwxrwxrwx 1 root root 94 Nov 17 15:27 Passw?rter.txt
drwxrwxrwx 2 root root 16384 Dec 5 18:08 Recycled
drwxrwxrwx 4 root root 16384 Dec 4 16:14 Schule
drwxrwxrwx 4 root root 16384 Nov 22 16:40 Server
drwxrwxrwx 3 root root 16384 Dec 5 18:08 System Volume Information
drwxrwxrwx 3 root root 16384 Dec 18 17:58 Wallpapers
drwxrwxrwx 13 root root 16384 Nov 22 14:48 Webprojekte
drwxrwxrwx 4 root root 16384 Nov 22 16:51 Windows
-rwxrwxrwx 1 root root 41952 Nov 17 15:27 vertrag.pdf
-rwxrwxrwx 1 root root 1 Dec 17 17:49 vertrag.sxw
|
Achso, das mit dem quiet hat nix geändert und das mit dem packen ging. Also ein tar Archiv kann ich rüberkopieren. Ich entpack es jetzt einfach da und schon sind die Ordner auf der Fat Partition
Wäre aber schnukelig wenn es einfacher gehen würde |
|
Back to top |
|
|
wuschel Apprentice
Joined: 27 Dec 2002 Posts: 177 Location: Rodenbach, Germany
|
Posted: Sun Dec 19, 2004 11:18 am Post subject: |
|
|
sYnopsis wrote: | ...(der Eintrag der wichtig ist steht ja schon im Thread) | Ähm... tja... bin wohl noch nicht richtig wach.
sYnopsis wrote: | Achso, das mit dem quiet hat nix geändert und das mit dem packen ging. Also ein tar Archiv kann ich rüberkopieren. Ich entpack es jetzt einfach da und schon sind die Ordner auf der Fat Partition
Wäre aber schnukelig wenn es einfacher gehen würde |
Hast du mal nachgesehen, ob die Dateien nicht doch auf die Partition kopiert wurden?
Diese Fehlermeldung bezieht sich IMHO nur auf das nicht mögliche Vergeben von Userrechten auf der FAT32-Partition. Aber die Dateien sollten trotzdem kopiert worden sein.
Edit: die Meldung hatte ich früher auch mal, keine Ahnung warum die jetzt nicht mehr kommt.
Meine relevante fstab-Zeile: Code: | /dev/hda14 /mnt/hda14 auto noauto,user 0 0 |
_________________ Never run a changing system!
Epox 8rda+ (NForce2), Barton2500, 1GB, Sapphire ATI Radeon 9500Pro, WD800JB |
|
Back to top |
|
|
sYnopsis n00b
Joined: 21 Nov 2004 Posts: 26
|
Posted: Sun Dec 19, 2004 12:11 pm Post subject: |
|
|
öhm, man sollte einfach keine Dateien, die als Namen Sonderzeichen haben, versuchen zu kopieren. Dann klappt es eigentlich ganz gut
Also, mein problem wäre dann behoben |
|
Back to top |
|
|
|