LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-10-2010, 08:28 PM   #1
filosofic
LQ Newbie
 
Registered: Dec 2005
Location: Morocco
Distribution: MInt 14
Posts: 11

Rep: Reputation: 0
Question Could zero-length partition error on ext4 ext HD be solved by switch to reiserfs?


I've a Western Digital Caviar Green WD10EADS 1TB external HD set up w/ SATA for storing mostly video that I've been using for the past 6 months. Lately, when trying to write large amounts of data to it using krusader or rsync the process would freeze and need to be killed. A fsck -f /dev/sdc1 of the file system resulted in: "Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc1 Could this be a zero-length partition?" I'm running Kubuntu 9.10 on an AMD64 machine.

Reading from this partition still worked so next I backed up all the data, rebooted, and tried to write again. The error repeated itself several times. I reformatted the HD using gparted, again as ext4. The same error message occurred. I've searched linuxquestions and googled the error, but nothing seems to answer this question:

Upon reformatting this drive as reiserfs it seems to write without errors; a bit slower I suppose due to the larger files sizes, but no more errors.

So my question is, is the aforementioned error message (the zero-length partition) due to a hardware malfunction or a problem with the ext4 format? I don't want to trust the drive with anything too valuable as my videos if the hardware or circuit board on it is going to give out anytime soon. Is it possible that simply by reformatting the HD as reiserfs, the problem solved itself? I'm going to take a wait and see attitude and back up back up back up... but if anyone has any other suggestions / ideas, I'd appreciate the feedback.

Cheers...
 
Old 01-11-2010, 09:27 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
#sudo parted

print all

post output

use parted magic or some other cd to fsck all partitions
 
Old 01-11-2010, 09:29 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
also mention bios settings

check with smartctl too
 
Old 01-11-2010, 04:12 PM   #4
filosofic
LQ Newbie
 
Registered: Dec 2005
Location: Morocco
Distribution: MInt 14
Posts: 11

Original Poster
Rep: Reputation: 0
Hi Amani:
Here's the output from parted'd print all:
Model: ATA WDC WD10EADS-65L (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 1000GB 1000GB extended
5 64.5kB 199GB 199GB logical ext4
6 199GB 398GB 199GB logical ext4
7 398GB 598GB 199GB logical ext4
8 598GB 797GB 199GB logical ext4
9 797GB 1000GB 203GB logical ext4


Model: ATA OCZ-VERTEX (scsi)
Disk /dev/sdb: 32.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 12.0GB 12.0GB primary ext4 boot
2 12.0GB 32.0GB 20.0GB extended
5 12.0GB 14.0GB 1999MB logical linux-swap(v1)
6 14.0GB 32.0GB 18.0GB logical ext4


Model: ATA WDC WD10EADS-00M (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 1000GB 1000GB primary reiserfs


Model: ATA WDC WD15EADS-00P (scsi)
Disk /dev/sdd: 1500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 1500GB 1500GB primary ext4


(parted)


I've written 697 GB to the new reisrfs and the disk has been running continuously without any problems.
That doesn't mean that if there is a problem with the circuit board, or something like that, that it has gone away.
I did a fdsk -f /dev/sdc1 on the reisrfs partition. It took forever, but came out clean as well.
I've just installed smartmontools and will see if that tells me anything as well.

So, so far, so good. But the underlying problem may still exist.
 
Old 01-11-2010, 08:37 PM   #5
filosofic
LQ Newbie
 
Registered: Dec 2005
Location: Morocco
Distribution: MInt 14
Posts: 11

Original Poster
Rep: Reputation: 0
More bad news...
After a crash course on smartctl and some oogles of googles...
Output of
root@david-desktop:/home/david# smartctl -A /dev/sdc
smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 111 108 021 Pre-fail Always - 7416
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 90
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 100 253 000 Old_age Always - 0
9 Power_On_Hours 0x0032 097 097 000 Old_age Always - 2265
10 Spin_Retry_Count 0x0032 100 253 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 58
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 55
193 Load_Cycle_Count 0x0032 189 189 000 Old_age Always - 34963
194 Temperature_Celsius 0x0022 119 097 000 Old_age Always - 28
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 2
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 1
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 1
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0

Which with a non-zero return of the Current_Pending_Sector, I gather, is a bad thing.

On top of that, the output of:

root@david-desktop:/home/david# smartctl -l selftest /dev/sdc
smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 2265 -
# 2 Extended offline Completed: read failure 90% 2261 1342408872


Are such errors "fixable" or should I chuck the drive and spend $100 on a new one?
And ideas?
 
Old 01-12-2010, 09:19 AM   #6
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
You need to

confirm with the tools provided by western digital before RMA or disposal

What is the output of

#lspci -v

(hard disk part)

For storage of large files, xfs is a better option.
 
1 members found this post helpful.
  


Reply

Tags
error, ext4, partition, reiserfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
( Solved ) slack 12.2 not see fs ext4 ...why? afreitascs Slackware 8 09-05-2009 12:43 PM
Ext4 partition corrupted by resized NTFS Vista C:\ partition? graviton-boson Linux - Newbie 2 03-16-2009 01:26 PM
Please help fix: sky2 error: rx length error: status 0x42c0500 length 600 trapix22 Linux - Wireless Networking 1 10-25-2008 07:50 AM
Filesystems: ext 2, ext 3, reiserfs. Which one? r3dhatter Linux - Newbie 12 07-15-2004 12:53 AM
Changing from ReiserFS to ext 3?? debloxie Mandriva 2 12-11-2003 09:46 AM


All times are GMT -5. The time now is 08:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration