Sponsored Content
Top Forums UNIX for Dummies Questions & Answers may a corrupted .gz file be repaired? Post 95555 by JohnTinker on Thursday 12th of January 2006 09:31:34 AM
Old 01-12-2006
dos2unix did not help

Thank you blowtorch for the suggestion. I tried dos2unix on the .gz files, and it did produce smaller files. But they were still unacceptable to gunzip. I guess it would only take one "legitimate" occurance of the byte pair 0D0A in the .gz file to make the approach I am taking not work, because dos2unix would replace it with 0A (I think). I would want that to happen most of the time, but not if the original 0D0A were in the original good .gz file.

I appreciate your help, though. You provided information that I had already wanted to try, but I didn't know the name dos2unix.

Since I can extract a few of my original files from the corrupted .gz files, I will keep them around. At this point I think I need to learn more about how .gz files are organized, and about how gunzip works.

(My files contain several million newsfeed blurbs related to over 8,000 topics. They represent a form of current events history, so I really want them back. But, at the same time, there is no real rush. )

Thanks again for your suggestion.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

corrupted tar file

Hi all, I've got a corrupted tar file with some filename being like ?a=n is it possible to get them repaired? (1 Reply)
Discussion started by: klintsovi
1 Replies

2. Shell Programming and Scripting

detecting corrupted file

Hello, Newbie question: How can I detect a corrupted file from a script (ksh)? Thank you, Martin (6 Replies)
Discussion started by: starless
6 Replies

3. HP-UX

passwd file corrupted

Good Day Our HP box was hacked and the passwd file has been altered,there are only 2 user accounts active,and these dont have any administrative rights.I need to edit the passwd file to correct the su and root entries. Does any body have any suggestions as to how i can do this with out the root... (10 Replies)
Discussion started by: cantona7
10 Replies

4. UNIX for Dummies Questions & Answers

Help! passwd file corrupted

Hi, I am new to UNIX, and have recently installed Suse 9.3. I have been experimenting with all of the commands and have somehow managed to modify the default shell of the root user to an invalid file. Consequently I cannot su to the root user as I receive the 'no such file or directory' error... (2 Replies)
Discussion started by: Tony Montana
2 Replies

5. HP-UX

Could be a corrupted file?

Hello! Do you know the meaning of... "crw-rw---- 1 informix informix 64 0x020001 Jan 21 2004 rifxroot" I don't know what the first "c" means. Furthermor, if I try to copy this file (rifxroot) it appears a message: "cp: cannot open rifxroot: No such device or address" I don't... (1 Reply)
Discussion started by: kaugrs
1 Replies

6. Solaris

WTMPX File corrupted

Hi All I work on solaris 8, 9 and 10 platforms and have encountered an error which is my wtmpx files appear to be corrupted as all entries contain the date 1970 (the birth of unix). Now this is obviously not the case, so my query is: 1 - Can the existing wtmpx files be manipulated to... (6 Replies)
Discussion started by: drestarr96
6 Replies

7. Red Hat

.bash_profile file corrupted

Hi, Unexpectedly i entered wrong entries in .bash_profile for my user which has administrative permissions. So, i am getting errors for every command. I dont have backup file also, so any body can help me how to recover it. Regards, Mastan (7 Replies)
Discussion started by: mastansaheb
7 Replies

8. Web Development

Mysql table is marked as crashed and should be repaired

140312 13:43:54 /usr/libexec/mysqld: Table './***/phpbb_posts' is marked as crashed and should be repaired Its mysqld.log in var/log alot of messages, but before around hour i tried to "repaid table" from within phpmyadmin, but appears it has no effect.. why? How to fix? (1 Reply)
Discussion started by: postcd
1 Replies

9. UNIX for Dummies Questions & Answers

After Ftp'ing file to destination how to check the file if it is in correct ASCII and not corrupted

Hi Folks, While transferring file from FTP software like Filezilla the files gets corrupted. Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary... (6 Replies)
Discussion started by: Khan28
6 Replies
OCE(4)							   BSD Kernel Interfaces Manual 						    OCE(4)

NAME
oce -- Device driver for Emulex OneConnect 10Gb network adapters SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device pci device oce Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): if_oce_load="YES" DESCRIPTION
Emulex OneConnect adapters come in various skews and with different combinations of NIC, FCoE and iSCSI functions. The oce driver claims the NIC functions in all these adapters. The oce driver supports VLAN Hardware offload, TCP checksum offload, TCP segmentation offload (TSO), Large receive offload (LRO), Bonding, Jumbo frames (from 1500 - 9000), Multiple TX queues, Receive-Side Scaling (RSS) and MSI-X interrupts. HARDWARE
The oce driver supports the following network adapters: o Emulex BladeEngine 2 o Emulex BladeEngine 3 o Emulex Lancer UPDATING FIRMWARE
Adapter firmware updates are persistent. Firmware can be updated by following the steps below: 1. Copy the below code to a Makefile: KMOD=elxflash FIRMWS=imagename.ufi:elxflash .include <bsd.kmod.mk> 2. Replace imagename in above with UFI file name 3. Copy Makefile and UFI file to a directory 4. Execute make & copy generated elxflash.ko to /lib/modules 5. sysctl dev.oce.<if_id>.fw_upgrade=elxflash 6. Reboot the machine In case of issues with supplied UFI, flashing fails with one of the following errors. 1. "Invalid BE3 firmware image" 2. "Invalid Cookie. Firmware image corrupted ?" 3. "cmd to write to flash rom failed." SUPPORT
For general information and support, go to the Emulex website at: http://www.Emulex.com/ or E-Mail at freebsd-drivers@emulex.com. SEE ALSO
ifconfig(8) AUTHORS
The oce driver was written by freebsd-drivers@emulex.com. BSD
February 19, 2012 BSD
All times are GMT -4. The time now is 09:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy