LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-21-2008, 02:59 PM   #1
emmendes
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
could this be a zero-length partition?


Hello

Yesterday there was a shortage of electricity in my office and as a
consequence my linux didn't shutdown properly. Today when trying to
switch on the machine, linux complained about some problems with /dev/
hdb6 (/usr).

I have tried e2fsck -p /dev/hdb6 but the system returned "could this
be a zero-length partition?" . fdisk /dev/hdb showed the partition
as it supposed to be. I have also tried e2fsck -b xxxx to recover the
superblocks but to no avail. Even dd if=/dev/hdb6 of=/usr.img didn't work. Same error msg.

I have deleted the partition and re-created with the same size. This time I managed to get e2fsck to say that the (partition) system couldn't be recovered since blocks 0 to 3 were damaged, dd is working very very slow right now.

testdisk shows the partition and the superblocks but option p doesn't list any files (no file structure).

Is there anything else I can do to get it back to normal? I just need to copy a few files from it.

Is there anything else I can do?

Suggestions are most welcome.

Cheers

Ed
 
Old 11-21-2008, 03:36 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Depending on what type of files, you may be able to use testdisk's buddy, photorec, to recover the files from the drive image.
 
  


Reply



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
Please help fix: sky2 error: rx length error: status 0x42c0500 length 600 trapix22 Linux - Wireless Networking 1 10-25-2008 07:50 AM
LFS boot failure zero length partition cuco76 Linux From Scratch 6 02-01-2007 11:48 AM
fsck: could this be a zero-length partition? zlya Linux - Hardware 2 12-10-2006 08:15 PM
Name length Slamtilt Linux - Newbie 2 03-22-2006 05:16 PM
message length boku LQ Suggestions & Feedback 2 08-05-2002 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:26 AM.

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
Open Source Consulting | Domain Registration