Quote:
cp /opt/biweb/app/. /mnt/drive_c/ ***EDIT*** Just realized I made a typo (forgot the recursive option -r) ... The correct command is: cp -r /opt/biweb/app/. /mnt/drive_c/ |
Command ---cp /opt/biweb/app/. /mnt/drive_c/......output-- omitting directory.
|
Quote:
cp -r /opt/biweb/app/. /mnt/drive_c/ Cheers, |
Command- cp -r /opt/biweb/app/. /mnt/drive_c/-----operation not permitted.
|
Quote:
Could you post the output of these commands: ls -l /opt/biweb/app ... and ... ls -l /mnt/drive_c Thx. |
ls -l /opt/biweb/app has a total 160, the whole tree is there which im trying to copy, sorry there is a lot to type.
ls -l /mnt/drive_c total 4-----drwxrwxr-x 32 root 4096 Mar 29 10:17app And yes, i am logged in as root. |
Quote:
Those fields are organized in triads .. i.e. : rwx rwx rwx, even though there are no spaces in actuality. They specify the permissions for, respectively, the owner, the group, and everyone else. What is important, is that you have read (r) and execute (x) permissions. As root, you are probably the owner, so the first triad is likely to be the important one. |
The first triad is- drwxrwxr-x
|
I'm concerned about the owner and group for the mount directory.
However, for now, can you successfully do the following? Code:
# cd /mnt/drive_c |
Alright, I typed command cp -r /opt/biweb/app /mnt/drive_c/
it took a bit of time then i went through mnt root-cd /mnt mnt # ls drive_c sd1 sda1 sdb1 sdi sdn mnt# cd /drive_c drive_c # ls app drive_c # ls app All the files i need are copied, BUT when i unmount the device. umount /mnt/drive_c, Output- Device not mounted- Then plug the device into a windows machine, there is nothing there. |
Quote:
For now, concentrate on the tests that rtmistler has suggested - this will eliminate any possibility of insufficient permissions on the mount point (which is your USB drive). I also find the owner of the mount point (user "32", group "root") surprising ... |
Command---cd /mnt/drive_c
drive_c---mkdir temp drive_c---ls -l total 8 drwxrwxr-x 32 root root 4096 Mar 29 app drwxrwxr-x 2 root root 4096 Mar 29 temp |
Any ideas here, rtmistler ? The files and directories seemed to have been copied to the USB drive, but Chrisroot is then unable to see them when it is plugged into a Windows computer. Since the drive is formatted type c (FAT32 LBA W95), shouldn't this be possible ?
The result of the umount command is also surprising ... |
Quote:
Note that you need to wait for the umount command to complete, which is bring you back to the prompt, and that it should be "umount /mnt/drive_c" where you also are not within any directories under that hierarchy. And then when you put the disk back in, you'll need to mount it again using the mount command shown earlier by me. EDIT: I agree that the result of the umount command is a concern. This comes together with my notes to make sure you umount and then redo the mount as you unplug and re-plug the drive into your system. It will never auto-mount, you have to mount it each time you attach it. And before you detach it you should issue the umount command. I do apologize, I will be in meetings for a bit and then done for the day, I'll monitor this thread, but likely may not be able to return to it until the morning. Hopefully you get some success. |
The drive wasn't mounted at copy time, all files went into a subdirectory in /mnt/. And, FAT does not support symlinks ...
|
All times are GMT -5. The time now is 08:30 PM. |