Error while copying linux

Debian User Forums

Input/Output error while copying from external drive

Input/Output error while copying from external drive

#1 Post by skipperx » 2009-05-24 19:01

I was trying to copy files from an ext3 partition on an external USB drive. I consistently get I/O errors. The external drive is mounted on /media/Linux

Machine1/media/Linux# cp -r Data /home/me/Target/. Message from syslogd@Machine1 at May 24 14:49:31 . kernel:[11465.440285] journal commit I/O error cp: reading `Data/Sourcefile1': Input/output error cp: cannot stat `Data/Sourcefile2': No such file or directory cp: cannot stat `Data/Sourcefile3': No such file or directory Machine1/media/Linux# ls ls: reading directory .: Input/output error

Re: Input/Output error while copying from external drive

#2 Post by pendrachken » 2009-05-24 21:53

Sounds like that drive you are trying to copy from is dirty / has inode and filesytem damage.

First thing first, try running fsck.ext3 -f /dev/YOUREXT3DRIVE

Just make SURE it is NOT MOUNTED when you run the command ( it will give a warning if the partition is mounted saying it is DANGEROUS and asking to continue if it is mounted)

Another thing you could try as a last resort is

dd if=/dev/MYDRIVE of=/home/USERNAME/backup.iso

that command will create a bit for bit backup of the external drive into a file in your home directory, but the external drive may be bigger than the space you have on /home or even on / so you have to be careful. for say a 350GB external drive you WILL get a 350GB backup.iso file.

fortune -o
Your love life will be. interesting.
How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches

Re: Input/Output error while copying from external drive

#3 Post by skipperx » 2009-05-25 00:33

I ran fsck.ext3 and here is what I got.

 fsck.ext3 -f /dev/sda2 e2fsck 1.41.3 (12-Oct-2008) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Linux: 6856/12066816 files (1.8% non-contiguous), 2852905/48249219 blocks 

sda2 was partitioned as primary, and formatted as ext3 with Lenny on the same computer yesterday.

Does it give you any clue? Please let me know if I can try other things.

Читайте также:  Linux создать интерфейс vlan

Re: Input/Output error while copying from external drive

#4 Post by pendrachken » 2009-05-25 01:32

This is on your external drive?

A few questions then. Is sda1 a different data partition? Some other type of partition ( NTFS or FAT32? ) have you verified that the files on the ext3 partition actually are there and are readable? what about permissions on the files that are giving you errors, does the user who is reading them have read permissions? And it seems kind of strange that the ext3 drive has nearly 2% non-contiguous files already, did you delete a bunch of files and copy new ones on the drive several times already?

Did you try the external drive with a different USB cable? or in a different USB port? Is it an hard disk or a USB thumb drive?

As you can see, there are a ton of possibilities for errors to crop up, never the less we should be able to get it straightened out for you.

fortune -o
Your love life will be. interesting.
How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches

Re: Input/Output error while copying from external drive

#5 Post by skipperx » 2009-05-25 02:00

Yes, this is on my external drive which is a Seagate FreeAgentGo USB, 250G drive.

There are 2 partitions. sda1 is NTFS and I partitioned and formatted with Windows XP. Then I used Lenny to partition and format the ext3 part. Both are primary partitions. The NTFS partition is 50G and the rest is all ext3. I have created and deleted the ext3 partition a few times because I was having difficulty partitioning. The problem was the automount option was turned on. I was later able to partition and format it. Then I wrote to the ext3 side once.

There is definitely about 8G of data on the ext3 side and NTFS side is empty.

As for ownership the user and group (both me and me of course) own the mount point folder and subfolders and files. I chowned me,me mount point before mounting. I saw something interesting though. The ownerships of the folders and files in partition after mounting are as follows:

For folders: drwxr-xr-x
For files: -r-xr-xr-x

Is that not good enough to copy them?

I have not tried switching the cables as I used the same cable to write the data to it from my notebook with Kubuntu.

Does it give you any clue now?

Re: Input/Output error while copying from external drive

#6 Post by pendrachken » 2009-05-25 02:17

skipperx wrote: Yes, this is on my external drive which is a Seagate FreeAgentGo USB, 250G drive.

Читайте также:  Преимущества и недостатки linux mint

There are 2 partitions. sda1 is NTFS and I partitioned and formatted with Windows XP. Then I used Lenny to partition and format the ext3 part. Both are primary partitions. The NTFS partition is 50G and the rest is all ext3. I have created and deleted the ext3 partition a few times because I was having difficulty partitioning. The problem was the automount option was turned on. I was later able to partition and format it. Then I wrote to the ext3 side once.

There is definitely about 8G of data on the ext3 side and NTFS side is empty.

As for ownership the user and group (both me and me of course) own the mount point folder and subfolders and files. I chowned me,me mount point before mounting. I saw something interesting though. The ownerships of the folders and files in partition after mounting are as follows:

For folders: drwxr-xr-x
For files: -r-xr-xr-x

Is that not good enough to copy them?

I have not tried switching the cables as I used the same cable to write the data to it from my notebook with Kubuntu.

Does it give you any clue now?

A few things first off, I may just be misunderstanding a bit from your post but the part about the mount point and SUBDIRS being owned by your user? You should only be mounting a partition in a empty folder. try one thing before we go any farther please. As root do this in a terminal:

 mkdir /mnt/test && mount /dev/sda2 /mnt/test 

Then still as root try to cp your data from the drive. If that works you will need to chown the files to your username again, but it will rule out the possibility thaat mounting in the /media area is affecting you ( personally I never mount stuff in /media, as far as I am concerned that is for desktop automounting only ) and this way you know there is absolutely nothing in the dir you are trying to mount into. Let me know how it goes, watching a movie with a browser open on another virt. desktop so I can respond if needed

fortune -o
Your love life will be. interesting.
How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches

Источник

Thread: «Error while copying.»

Rogue Yun is offlineSpilled the Beans

«Error while copying.»

‘The folder «Folder Name» cannot be handled because you do not have permissions to read it.’

Background: Ubuntu Crashed (probably not its’ fault but that of my ghetto computer) and I would like to copy the files from my old «/home» partition onto a separate external hard drive. So I booted with the desktop CD and trying to copy files over, some files are not «starred» and some are. What may I do to copy those files. (I have the option of installing Ubuntu again on the «/» and try to leave the «/home» partition alone. But being as I’ve never done that before I wanted to make sure the files we safe before I tried anything. Any suggestions? Thanks in advance.

Читайте также:  Linux заархивировать папку zip

Rogue Yun is offlineSpilled the Beans

Re: «Error while copying.»

I’m not one to bump threads, but there are some new circumstances. It seems reinstalling Ubuntu isn’t working either. So now I’m left to try to salvage the files from the drive I would do that, but.

I can’t figure out how to change the permissions. I’ll be monitoring this thread for the next 30 minutes. Please let me know if you have any suggestions. Thank you in advance.

An interesting note. I put in the warty warthog live cd (yes I still keep it around) and I was able to access all the files that I couldn’t before because of permissions. However, it seems as though I didn’t have my permissions on my Fat32 110.00 Gigabyte hard drive set right. Though I can access it fine and create new folders while using the ubuntu 8.04 desktop cd. Go figure (only if you want to though).

Источник

Thread: Error While Copying

BULLIT22 is offlineJust Give Me the Beans!

Error While Copying

I’m very new to Ubuntu. So please dumb things down a bit for me. I installed Ubuntu 9.10 server edition and everything went well when I found everything I needed. I currently have 4TB of storage on a FreeNAS server that I need copied over to my New Ubuntu server. I enabled the Ubuntu Desktop so it is a little easier for me to work with.

Anyway, I open 2 windows on my desktop. 1 is a drive on the Network from my FreeNAS machine. The other is a drive on my Ubuntu server. When I go to copy files from my freeNAS machine to a drive on Ubuntu I get this error,

«Error While Copying»
The Folder «folder name» cannot be copied because you do
not have permissions to create it in the destination.

Anyone know how to go about getting my stuff copied over?

Also, I don’t want to have to enter a password to enter my Samba shared drives on my network when all is said and done. Any way of doing that?

Anyway, thanks for any help in advance.

*Edit* Don’t know if it will make a difference or not, but I have all the extra drives in my Ubuntu Server auto mounting with a program called «Storage Device Manager». I think that’s what its called. I’m at work at the moment, I’ll check later.

Источник

Оцените статью
Adblock
detector