Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, Ive got this floppy disk with an important tar file on it. It tells me the correct file type and the correct size of the file. But it only can copy the first 8kb exactly. I really need this file. Any idea on how to force the file to copy?
I tried writing a program but it can only read the first 8192 bytes (8kb) of data. Is there a brute force method to copy the file?
Distribution: A mash of SourceMage, Lunar, Slack, Manny, and RedHat all smushed together
Posts: 94
Rep:
Are you absolutely sure that the disk is good? Just because you can retrieve the filetype/size doesn't mean that the disk, or file, is without errors. If the file can't be read or the disk is partially corrupted there is probably no way to copy the file, forced or otherwise, unless the problem on the disk is fixed (which would most likely make your file unusable). If this is the only copy of this particular file that you can get a hold of, and the disk is valuable, it would be worthwhile to try a different computer/drive to get to it (I have found that some disks unreadable by one drive may be readable by another). Instead of copying the file, have you tried to extract the tar to your hard drive? This would also give you some idea of whether or not the file is corrupted.
If your failure is due to a physical defect in the media (floppy), then you are likely out of luck. However, you might try using dd to copy the file as follows (assuming the floppy is mounted on /fd0): dd if=/fd0/filename of=newfilename bs=1024 count=XXX where XXX is the size in 1K blocks of the file. Note that some floppy errors can be corrected by rotating the disk media in the sleeve (worth a try, can't hurt anything).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.