LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-13-2006, 08:20 AM   #1
rajeshdorai
LQ Newbie
 
Registered: Sep 2003
Posts: 20

Rep: Reputation: 0
Disk /dev/hdb doesn't contain a valid partition table


Greetings!

I have a Linux Workstation running Red Hat Enterprise Linux ES (2.4.21-37.ELsmp). The system was working perfectly before until I moved it to a new place!!! Prior to the move, I had shut it down and it did so normally; I then moved it to a new location (I believe I took care not to be jerky while moving) and then plugged it in -- I initially got a "Fsck: Unexpected Inconsistency" error. I went through the recommended fsck routine and now I get the following error:

fsck.ext3: Attempt to read blcok from filesystem resulted in short read Could this bea zero-length partition?
while trying to open /dev/vg01/lv_data

[FAILED]...


I opened up the box to make sure the IDE cables to the HDDs are proper and then I rebooted the m/c. After checking a number of posts and doing various checks, these are what I found:

1. dmesg | less

...
...
hda: ST380011A, ATA DISK drive
hdb: Maxtor 6E040L0, ATA DISK drive
...
...
hda: 156250000 sectors (80000 MB) w/ 2048KiB Cache
CHS-9726/255/63, UDMA(100)
hdb: attached ide-disk driver.
hdb: host protected area => 1
hdb: 80293248 sectors (41110 MB) w/2048KiB Cache
CHS=4998/255/63, UDMA(100)
Partition check:
hda: hda1 hda2 hda3
hdb: unknown partition table
...
...
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: dma_intr: error=0x40 { UncorrectableError }, LBAsect=33160,
sector=33160
end_request: I/O error, dev 03:40 (hdb), sector 33160
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: dma_intr: error=0x40 { UncorrectableError }, LBAsect=33162
sector=33162
end_request: I/O error, dev 03:40 (hdb), sector 33162

Is there a way to recover my lost data? Any help is greatly appreciated.

Rajesh
 
Old 04-13-2006, 10:02 AM   #2
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
This doesn't look promising. Try a different IDE cable, if that doesn't work, comment out the mount points for that drive in your fstab, and try to mount it manually in single user mode. Get the data off, that you can, and run the manufacturer tests on the drive. This looks like a bad hard drive to me... Sorry, good luck with the recovery.

Mike.

P.S.
A thought just occured to me, if you can't mount the drive normally, try disabling DMA on the drive after reboot:
Code:
hdparm -d0 /dev/hdb
And then try to mount the drive and get your data (I have no reasoning for this really, but it might help).
 
Old 04-13-2006, 01:20 PM   #3
rajeshdorai
LQ Newbie
 
Registered: Sep 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you very much, Mike, for your reply and for your time.

I commented out the mount points for /dev/vg01/lv_data (which is a logical volume on /dev/hdb) in fstab; Now, I could boot the m/c up -- ofcouse I cannot access my data since it is on /dev/hdb. I ran some further diagnostics -- I append the output below. Any light that you could shed on the matter is greatly appreciated -- Thanks!

Rajesh
=================

fdisk -l
---------

Disk /dev/hda: 80.0 GB, ....
...
...
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9472 75979417+ 83 Linux
/dev/hda3 9473 9726 2040255 82 Linux swap

Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/hdb doesn't contain a valid partition table

lvscan
------

lvscan -- ACTIVE "/dev/vg01/lv_data" [38.27 GB]
lvscan -- 1 logical volumes with 38.27 GB total in 1 volume group
lvscan -- 1 active logical volumes

pvscan
------

pvscan -- reading all physical volumes ( this may take a while...)
pvscan -- ACTIVE PV "/dev/hdb" of VG "vg01" [38.27 GB / 0 free ]
pvscan -- total: 1 [38.29 GB] / in use: 1 [38.29 GB] / in no VG: 0 [0]

lvmdiskscan
-----------

lvmdiskscan -- reading all disks / partitions
lvmdiskscan -- /dev/hda1 [ 101.94 MB ] free whole disk
lvmdiskscan -- /dev/hdb [ 38.29 GB] USED LVM whole disk
lvmdiskscan -- 2 disks
lvmdiskscan -- 2 whole disks
lvmdiskscan -- 0 loop devices
lvmdiskscan -- 0 multiple devices
lvmdiskscan -- 0 network block devices
lvmdiskscan -- 3 partitions
lvmdiskscan -- 0 LVM physical volume partitions


vgscan
------

vgscan -- reading all physical volumes
vgscan -- found active volume group "vg01"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program doesnot do a VGDA backup of your volume group
 
Old 04-13-2006, 01:35 PM   #4
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
It looks like your Partition table is screwed up, I've never tried to recover one though. Search the forum for partition table recovery, and also google for that, and see what you come up with. If you find some stuff post your results here so others can benefit. Maybe somebody else will respond to your thread who has successfully done this... Wish I could help more, Good Luck!

Mike.
 
Old 04-13-2006, 01:48 PM   #5
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
What kind of data is on hdb?
mpg, avi, jpgs?
 
Old 04-13-2006, 03:13 PM   #6
rajeshdorai
LQ Newbie
 
Registered: Sep 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Most of the data files are text files (input to programs). There are also program files (source code + binaries).

Thanks,
Rajesh
 
Old 04-13-2006, 09:25 PM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
I agree; partition table problem. Study the docs that are available all over the net about partition recovery.
 
Old 04-13-2006, 11:13 PM   #8
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,589

Rep: Reputation: 161Reputation: 161
Get Spinrite
 
Old 04-14-2006, 06:27 AM   #9
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Try "gpart" or "testdisk" from a Knoppix LIVE CD.
If this doesn't work try this:
http://www.linuxquestions.org/questi...d.php?t=428962

Good Luck!!!
 
Old 04-14-2006, 01:12 PM   #10
rajeshdorai
LQ Newbie
 
Registered: Sep 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks so much for all the replies.

I downloaded and tried gpart.linux.

./gpart.linux /dev/hdb

Begin scan...

* Warning: short read near sector(33012), 43520 bytes instead of 66048. Skipping...

* Warning: read error (EIO) near sector(33097), skipping...

* Warning: short read near sector (47524), 64000 bytes instead of 66048. Skipping...
...
...
...
...
...
* Warning: short read near sector(71860476), 43520 bytes instead of 66048. Skipping...

* Warning: read error (EIO) near sector(71860561), skipping...
End scan.

Checking partitions...
ok.

Guessed primary partition table:
Primary partition(1)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(2)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(3)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

Primary partition(4)
type: 000(0x00)(unused)
size: 0mb #s(0) s(0-0)
chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

I am unable to decipher what this means. Should I read the above as "Kindly reformat"?

I am downloading Knoppix now and plan to test testdisk next...

Thanks once again for your help and your time,

Much appreciated,
Rajesh
 
Old 04-14-2006, 11:19 PM   #11
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Have a look at this:

http://www.tldp.org/HOWTO/LVM-HOWTO/

Chapter A 1

Good Luck!!!
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk /dev/hdb doesn't contain a valid partition table LOLobo Linux - Hardware 11 11-06-2008 01:47 AM
Not valid partition table temm Linux - Hardware 5 07-23-2008 04:28 AM
Disk /dev/hdb doesn't contain a valid partition table manudath Linux - Hardware 2 09-01-2006 02:23 PM
Disk /dev/hdb doesn't contain a valid partition table rajeshdorai Linux - Hardware 1 04-12-2006 07:29 PM
Warning: /dev/hdb is not on the first disk Valerie Linux - Newbie 9 07-03-2001 08:43 PM


All times are GMT -5. The time now is 09:01 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