Okee ik zit nu van een Kubuntu live cd te typen, omdat Slackware definitief ter ziele is.
Ik wil Kubuntu installeren, maar voor de zekerheid eerst /home op een usb stickje gooien.
(mounten van /home en de usbstick gaat gelukkig prima)
Maar cp kopieert met geen mogelijkheid al m'n bestanden (zoals hidden files), filemanagers als dolphin en konqueror helpen ook niet, ik heb gezocht op internet naar een oplossing maar ik krijg het niet voor elkaar!
Ik wil dus van /home/bert naar /mnt/usbstick kopieren. Nou dat kan prima.. maar niet alles en ik snap niet waarom.
- Uit frustratie alles uit /home/bert maar op 777 gezet
- Het laatste wat ik heb geprobeerd, is een cp commando dat een regexp heeft speciaal voor het kopieren van hidden files:
Zelfs dan wil ie nog de hidden files niet allemaal kopieren!
En dan ben ik ook nog niet zo handig met regexes dat ik mezelf vertrouw dat ik er een kan schrijven die zowel hidden als niet-hidden files meeneemt (deze is alleen voor hidden files.)
Tips om de directorynaam zonder sterretje aan te geven (/home/bert ipv /home/bert/*) hielpen niet. Of je -r of -rf gebruikt helpt ook niet.
Heb er al over gepost op kubuntuforums.net, maar nog geen antwoord.
Dit was m'n post op Kubuntuforums.net:
Ik wil Kubuntu installeren, maar voor de zekerheid eerst /home op een usb stickje gooien.
(mounten van /home en de usbstick gaat gelukkig prima)
Maar cp kopieert met geen mogelijkheid al m'n bestanden (zoals hidden files), filemanagers als dolphin en konqueror helpen ook niet, ik heb gezocht op internet naar een oplossing maar ik krijg het niet voor elkaar!
Ik wil dus van /home/bert naar /mnt/usbstick kopieren. Nou dat kan prima.. maar niet alles en ik snap niet waarom.
- Uit frustratie alles uit /home/bert maar op 777 gezet
- Het laatste wat ik heb geprobeerd, is een cp commando dat een regexp heeft speciaal voor het kopieren van hidden files:
code:
1
| cp -rf /home/bert/home/bert/.[a-zA-Z0-9]* /mnt/usbstick |
Zelfs dan wil ie nog de hidden files niet allemaal kopieren!
En dan ben ik ook nog niet zo handig met regexes dat ik mezelf vertrouw dat ik er een kan schrijven die zowel hidden als niet-hidden files meeneemt (deze is alleen voor hidden files.)
Tips om de directorynaam zonder sterretje aan te geven (/home/bert ipv /home/bert/*) hielpen niet. Of je -r of -rf gebruikt helpt ook niet.
Heb er al over gepost op kubuntuforums.net, maar nog geen antwoord.
Dit was m'n post op Kubuntuforums.net:
Hi!
I've been running Slackware for a long time but after years I got so fed up with it, and so enthused by friends who were using Kubuntu that I want to make the move.
(actually, the reason Slack degenerated continually, eventually to the point where it had no inittab anymore, and refused to boot, was when I realised the cpu temperature got too high in summer and crashed. The Asus Windows cpu temperature tool would have warned me, but they haven't ported that to Linux.)
I'm running off a live Kubuntu 8.04 cd now.
...
Just to be sure, I want to backup /home to a memory stick before I install Kubuntu, but I have a very basic problem with cp that'll probably make some of you laugh.
Ok I mount my old home directory (ReiserFS) .. no problem
I mount the USB memory stick (2Gb, fat32) .. no problem
But when I want to copy everything (I make sure to close any other windows/applications that have the stick/home partition open), cp doesn't help me.
I open the Konsole, type:
sudo cp -rf /home/bert/home/bert/.* /mnt/usbstick
Reading and writing to/from both filesystems goes well.
The dot in the cp-command is because I thought it would help with hidden files, but nah..
(I tried first without it.. same problem)
It does copy many files, but none of the hidden ones.
man cp is surprisingly unconcise and doesn't offer any help.
(and before anyone asks.. /home/bert is about 1.2 Gb large, so size is not the problem)
This is a sample of what I get when I execute the command:
code:
1 2 3 4 5 6 7 8 9 10 11 cp: cannot create regular file `/mnt/usbstick/bert/.kde/share/apps/kmail/allessal_henk:@pop.hartronics.nl:110': Invalid argument cp: cannot create regular file `/mnt/usbstick/bert/.kde/share/apps/kmail/b3rtdj:@pop.xs4all.nl:110': Invalid argument cp: cannot create regular file `/mnt/usbstick/bert/.kde/share/apps/kmail/sbizzb3r:@pop.xs4all.nl:110': Invalid argument cp: cannot create regular file `/mnt/usbstick/bert/.kde/share/apps/kmail/asrcmail:@pop.xs4all.nl:110': Invalid argument cp: cannot create regular file `/mnt/usbstick/bert/.kde/share/apps/kmail/allessal_lists:@pop.hartronics.nl:110': Invalid argument cp: cannot create regular file `/mnt/usbstick/bert/.kde/share/apps/kmail/alles_bert:@pop.hartronics.nl:110': Invalid argument cp: cannot create directory `/mnt/usbstick/bert/.kde/share/apps/RecentDocuments/http:': Invalid argument cp: cannot create regular file `/mnt/usbstick/bert/.kde/share/wallpapers/Debian borning.. Smiley--0': Invalid argument cp: cannot create symbolic link `/mnt/usbstick/bert/.kde/cache-uw-d3d8dbfc42d8': Operation not permitted cp: cannot create symbolic link `/mnt/usbstick/bert/.kde/socket-linux': Operation not permitted cp: cannot create symbolic link `/mnt/usbstick/bert/.kde/tmp-linux': Operation not permitted
Can anyone please help me with this?