[opensuse] Input/Ouput error when doing ll on drive mount?
One of the (desktop/home) computers I am supporting is having issues. We decided to back up all the data to an external 750GB USB drive and do a complete OS rebuild (it's running openSUSE 10.1 and it's time to update so something newer anyway) The USB drive was connected, and recognized fine. The drive was formatted as vfat (FAT32) because it needs to be easily accessed by other OSes. It as formatted as one big partition. We started copying files across, and this was working fine. Files were being copied, and checking on the USB drive showed them OK (files were verified as copied correctly, and then were removed from the source). Since this was working well we switched to moving instead of copying. The file move ran unattended for about 2 hours. Checking back, the USB drive was unmounted at some point - no idea why. Remounted the drive and went to check what was done... and this is what we see: ===================================== one@linux:/dev> cd /media/usbdisk one@linux:/media/usbdisk> ll total 48 drwxr-xr-x 2 one root 16384 2008-06-21 17:12 documents drwxr-xr-x 5 one root 16384 2008-06-21 17:28 Movies drwxr-xr-x 2 one root 16384 2008-06-21 17:11 pictures one@linux:/media/usbdisk> cd Movies one@linux:/media/usbdisk/Movies> ll /bin/ls: Clips: Input/output error /bin/ls: usa_1992: Input/output error /bin/ls: Video: Input/output error total 0 one@linux:/media/usbdisk/Movies> ===================================== This is not so good.. but I don't really know what it means. Anyone know what may have happened? Why is the listing of directories showing a directory size of 16384? I've never seen anything like this before... so a little puzzled here, and any help, ideas, thoughts etc would be more than welcome. Yes I know, we should have continued the copy and not done move, but... well... that is what was done. I just hope this can be sorted out and the files that in theory are in each directory are still there... and not lost... C. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2008-06-21 at 21:28 +0200, Clayton wrote:
One of the (desktop/home) computers I am supporting is having issues. We decided to back up all the data to an external 750GB USB drive and do a complete OS rebuild (it's running openSUSE 10.1 and it's time to update so something newer anyway)
The USB drive was connected, and recognized fine. The drive was formatted as vfat (FAT32) because it needs to be easily accessed by other OSes.
That's not good. It's not good because you are backing up a filesystem that uses different permission and ownership data, which simply a FAT filesystem can not store. You would need to store that data separately with a script, and another script to reconstruct them.
It as formatted as one big partition. We started copying files across, and this was working fine. Files were being copied, and checking on the USB drive showed them OK (files were verified as copied correctly, and then were removed from the source). Since this was working well we switched to moving instead of copying. The file move ran unattended for about 2 hours. Checking back, the USB drive was unmounted at some point - no idea why. Remounted the drive and went to check what was done... and this is what we see:
===================================== one@linux:/dev> cd /media/usbdisk one@linux:/media/usbdisk> ll total 48 drwxr-xr-x 2 one root 16384 2008-06-21 17:12 documents drwxr-xr-x 5 one root 16384 2008-06-21 17:28 Movies drwxr-xr-x 2 one root 16384 2008-06-21 17:11 pictures one@linux:/media/usbdisk> cd Movies one@linux:/media/usbdisk/Movies> ll /bin/ls: Clips: Input/output error /bin/ls: usa_1992: Input/output error /bin/ls: Video: Input/output error total 0 one@linux:/media/usbdisk/Movies> =====================================
I would run a fsck on that drive... as it a FAT, try it from windows. Maybe a cat unplugged the usb cable, the dog reconnected it, resulting in corruption. You may also learn a bit more about the error looking at the logs. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIXVyFtTMYHG2NR9URAksmAJ40ZqKK6W9R8lg1b1yVb/qBng52UQCgiAfu Djv/BGAutYcrsWn1+B5531k= =s9li -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
The USB drive was connected, and recognized fine. The drive was formatted as vfat (FAT32) because it needs to be easily accessed by other OSes.
That's not good.
It's not good because you are backing up a filesystem that uses different permission and ownership data, which simply a FAT filesystem can not store. You would need to store that data separately with a script, and another script to reconstruct them.
Done this many times before with other USB drives without any issues. The data is not anything special... in that it doesn't need any special handling as far as permissions and ownership other than that it can be read by anyone on any OS. That has always "just worked" for me when using a FAT32 formatted drive.
one@linux:/media/usbdisk/Movies> ll /bin/ls: Clips: Input/output error /bin/ls: usa_1992: Input/output error /bin/ls: Video: Input/output error total 0 one@linux:/media/usbdisk/Movies> =====================================
I would run a fsck on that drive... as it a FAT, try it from windows. Maybe a cat unplugged the usb cable, the dog reconnected it, resulting in corruption.
You may also learn a bit more about the error looking at the logs.
Tried looking at the drive from an XP install. That didn't go so well. XP didn't find the drive, and suggested to try reconnecting or replacing the device (that is actually what the error on XP said). No fsck was run on the drive yet.. either from XP or openSUSE. Connected back on Linux and again the same Input/Output error. Next is the logs of course... looking there now... (slow process since the machine is in a remote location, and I am doing the support over VoIP). C. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2008-06-21 at 22:12 +0200, Clayton wrote:
That's not good.
It's not good because you are backing up a filesystem that uses different permission and ownership data, which simply a FAT filesystem can not store. You would need to store that data separately with a script, and another script to reconstruct them.
Done this many times before with other USB drives without any issues. The data is not anything special... in that it doesn't need any special handling as far as permissions and ownership other than that it can be read by anyone on any OS. That has always "just worked" for me when using a FAT32 formatted drive.
Mmmm... if it is just data, ok.
Tried looking at the drive from an XP install. That didn't go so well. XP didn't find the drive, and suggested to try reconnecting or replacing the device (that is actually what the error on XP said). No fsck was run on the drive yet.. either from XP or openSUSE. Connected back on Linux and again the same Input/Output error. Next is the logs of course... looking there now... (slow process since the machine is in a remote location, and I am doing the support over VoIP).
In XP I think you have to go to "my computer", right click on the drive, and somewhere should be the check drive option. In Linux you need to manually umount it, noting first the device name, and then issue "fsck /dev/devicename". - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFIXWOetTMYHG2NR9URAqIoAJ98mMdI3q0NbKwdtR71HW/OsuuZCQCbBP1R CbOq1w+7Uks2vZnb7i2xe3Y= =uc1h -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, Jun 21, 2008 at 2:28 PM, Clayton
One of the (desktop/home) computers I am supporting is having issues. We decided to back up all the data to an external 750GB USB drive and do a complete OS rebuild (it's running openSUSE 10.1 and it's time to update so something newer anyway)
The USB drive was connected, and recognized fine. The drive was formatted as vfat (FAT32) because it needs to be easily accessed by other OSes.
I have a similar setup. However, I format the drive with reiserfs when I backup Linux. And then I switch back to NTFS when I need to write to it from Windows. I do this because the rule of thumb is not to create a FAT32 partition larger than 32GB. I never need to access the drive from two OSes at the same time. So this works for me. Also, I use rsync instead of cp or mv. One key advantage is that rsync can pick up where it left off even if the drive gets booted by the hotplugging system, which has happened to me. That is how I got turned onto rsync. Mike -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I do this because the rule of thumb is not to create a FAT32 partition larger than 32GB.
Why? FAT32 can handle a partition up to 2TB. I know Microsoft arbitrarily set a 32GB limit for formatting FAT32 in Windows XP, but this has noting to do with the capabilities of FAT32.
I never need to access the drive from two OSes at the same time. So this works for me.
In this case I do, and it's a lot of data that needs to be migrated from a mix of OSes to Linux. FAT32 was the easiest choice.
Also, I use rsync instead of cp or mv. One key advantage is that rsync can pick up where it left off even if the drive gets booted by the hotplugging system, which has happened to me. That is how I got turned onto rsync.
Hmmm good idea. Thanks... I will definitely switch ot that one once I get thigns back and working again We did an fsck.msdos on the drive, and it had mismatched FATs, and EOF probs on several files... then at some point in the fsck process it ends with a malloc error. Not much fun :-( all I want to do is pull off the files and reformat the drive. I don't know if that will ever be possible though. C. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
Clayton
-
Michael Mientus