LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copy Problem. (https://www.linuxquestions.org/questions/linux-newbie-8/copy-problem-486304/)

rvijay 09-23-2006 01:59 PM

Copy Problem.
 
Unable to Copy Files/Directories from one partition to another. Mounted both partitions, choose chmod 777 for the related directories, partitions, files, still issue persists. Please assist.

Thanks.

Vijay

flipwhy 09-23-2006 02:18 PM

what exactly are you typing to copy it? just to make sure

rvijay 09-23-2006 03:22 PM

First I tried to drag and drop from KDE browsers. this failed. Then I used the cp command as root. Even tried a simple text file. Copy for this also failed. Am able to copy within the same partition but not from one partition to another. Just an idea, can this be something to do with either /etc/fstab or mtab ?

Valkyrie_of_valhalla 09-23-2006 03:44 PM

What type of partitions are these? Are you sure you have read-write access? If one is a windows partition, check the mount parameters.

J.W. 09-23-2006 05:43 PM

Please be a lot more specific about what you are trying to do, and include some specific examples. If you only describe things in generalities, the only answers you'll get will be guesses.

rvijay 09-23-2006 07:56 PM

Here are the related lines:

drwxrwxrwx 2 root root 48 Sep 23 12:20 hda6
drwxrwxrwx 4 root root 4096 Sep 23 11:42 hda7
root@box:/media# cp /media/hda6/home/vijay/Desktop/Notes /media/hda7
cp: cannot create regular file `/media/hda7/Notes': Read-only file system
root@box:/media#

rvijay 09-23-2006 08:05 PM

/etc/fstab

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / reiserfs defaults 0 1

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbfs /proc/bus/usb usbfs devmode=0666 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
/dev/cdrom /media/cdrom iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/cdrom1 /media/cdrom1 iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/dvd /media/dvd iso9660 defaults,ro,users,noexec,noauto 0 0
# Added by KNOPPIX
/dev/hda1 /media/hda1 ntfs noauto,users,exec,umask=000 0 0
# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0
# Added by KNOPPIX
/dev/hda6 /media/hda6 reiserfs noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda7 /media/hda7 ext2 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda8 /media/hda8 reiserfs noauto,users,exec 0 0

Here is /etc/mtab

/dev/hda5 / reiserfs rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
usbfs /proc/bus/usb usbfs rw,devmode=0666 0 0
tmpfs /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
automount(pid6078) /mnt/auto autofs rw,fd=4,pgrp=6078,minproto=2,maxproto=4 0 0
/dev/hda7 /media/hda7 ext2 ro,nosuid,nodev 0 0
/dev/hda6 /media/hda6 reiserfs rw,nosuid,nodev 0 0

rvijay 09-23-2006 08:20 PM

/dev/hda7 /media/hda7 ext2 ro,nosuid,nodev 0 0

I changed the ro to rw in the above line after changing permissions of /etc/mtab and then saved this file. Next time I get a chance, I will reboot my machine and see if this solves the problem.

rvijay 09-23-2006 09:13 PM

I had a chance to reboot. The above solved the problem. It is hard to remember all the Linux basics and use them appropriately in context. Hence, when there is an issue, reflecting here with others helps. Thanks for the support everyone. :)

J.W. 09-24-2006 12:20 PM

That's great news. Congrats rvijay on solving the problem and thank you for posting back with the followup

rvijay 09-24-2006 12:35 PM

Quote:

Originally Posted by J.W.
That's great news. Congrats rvijay on solving the problem and thank you for posting back with the followup

Thank You. You are welcome. :)

Vijay


All times are GMT -5. The time now is 07:27 PM.