LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2008, 06:14 AM   #1
fa_khan50
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Rep: Reputation: 0
Error while copying data to other Hard disk


When i copy the data folder to other hard disk so error occured"Read only file system".then i can not copy the folder.Kindly let me know the solution of this problem.

Regards,
Fawad
 
Old 03-17-2008, 06:40 AM   #2
Kenarkies
Member
 
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 80

Rep: Reputation: 23
Its because the other disk has been mounted as read only.

We really need to know some information about your setup as there are a great many ways this problem can occur. Is this a new disk you just installed? How did you format it? Is it on another computer?

Ken
 
Old 03-17-2008, 06:42 AM   #3
rmallins
LQ Newbie
 
Registered: Nov 2005
Location: Hatfield, Herts
Distribution: Ubuntu 10.10
Posts: 13

Rep: Reputation: 1
Your target disk may be mounted read-only. To check if the volume is mounted read only, type "mount" at the command line to give you a list of the mounted filesystems. If the one you're copying to says "ro" at the end then that's your problem. You need to google "linux mount filesystem" or similar to learn how to remount your target hard disk.

On the other hand the account you're using may not have permission to write to the disk. Supposing your target drive is mounted to /media/sda2, e.g.
> mount
...
/dev/sda2 on /media/sda2 type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
...
>

Then type
> ls -ld /media/sda2
to show the user permissions for the mount point. In order to interpret the results, this article may help you:

http://www.uic.edu/depts/accc/semina.../filemgmt.html
 
Old 03-17-2008, 09:34 AM   #4
fa_khan50
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
I used this command "mount -t ext3 /dev/sdb1 /dd"
After mounting the hard disk in dd whenever i copy folder from sda1 to sdb1 then read only file system message occured.
 
Old 03-19-2008, 01:39 PM   #5
Kenarkies
Member
 
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 80

Rep: Reputation: 23
I used this command "mount -t ext3 /dev/sdb1 /dd"
After mounting the hard disk in dd whenever i copy folder from sda1 to sdb1 then read only file system message occured.


It is still very unclear exactly what your system setup is. Normally when you issue this command the default is to make the filesystem read/write, and if the command worked without giving any errors, you should be able to copy. However I seem to recall that Knoppix live CD has the mount command default to be read only (to prevent accidental destruction of the target system). Try issuing:

mount -w -t ext3 /dev/sdb1 /dd

the w switch should make the target system read only.

If you still have difficulty, please post more information such as the Linux version you are using, whether errors occurred when you issued the mount command (if it was unable to mount then you will be left with an empty directory that may not be writable). Is it a new disk drive - was it formatted using ext3?

Ken
 
Old 03-20-2008, 01:58 AM   #6
fa_khan50
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Kenarkies View Post
I used this command "mount -t ext3 /dev/sdb1 /dd"
After mounting the hard disk in dd whenever i copy folder from sda1 to sdb1 then read only file system message occured.


It is still very unclear exactly what your system setup is. Normally when you issue this command the default is to make the filesystem read/write, and if the command worked without giving any errors, you should be able to copy. However I seem to recall that Knoppix live CD has the mount command default to be read only (to prevent accidental destruction of the target system). Try issuing:

mount -w -t ext3 /dev/sdb1 /dd

the w switch should make the target system read only.

If you still have difficulty, please post more information such as the Linux version you are using, whether errors occurred when you issued the mount command (if it was unable to mount then you will be left with an empty directory that may not be writable). Is it a new disk drive - was it formatted using ext3?

Ken
I am using Red Hat Enterprises 64 bit.Hard disk is formatted with ext3 filesystem.DD directory has full permission like 777 but the problem is still same.

Reports,
Fawad
 
Old 03-24-2008, 07:46 AM   #7
Kenarkies
Member
 
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 80

Rep: Reputation: 23
DD directory has full permission like 777 but the problem is still same.

If the disk was being mounted read-only then the permissions would not affect it. The ext3 filesystem can become read-only if there are problems with reading the disk, such as hardware problems. See what the following says:

dmesg|grep sdb

This may show up any problems that occurred when the disk is initialised. Try also checking the disk for errors: make sure that the disk drive is unmounted.

fsck /dev/sdb1

Also try reformatting the disk and see if any errors are shown.

Ken
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copying/migrating install to a new hard disk, couple questions hedpe Linux - General 1 03-01-2008 04:58 AM
I/O error while copying some data on to external HDD gary4gar Linux - Hardware 2 10-31-2007 04:50 AM
Copying one distro on a hard disk to another disk jimmy512 Linux - General 2 11-21-2006 02:19 PM
Running LIVE CD from hard disk, i.e. copying the iso on HD & then booting the same nitinatindore Linux - Newbie 13 03-12-2006 05:35 AM
dual boot hard disk copying manthram Linux - General 1 05-05-2002 11:08 AM


All times are GMT -5. The time now is 02:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration