LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-26-2012, 11:11 AM   #1
penduleum
LQ Newbie
 
Registered: Mar 2009
Posts: 16

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


I have the folling issue...

I have a nas device (synology).
One of the disks has resently given me a bad blok.

Before i send it to rma, i need to try and recover as mutch as
possible.

The disk is at the moment out of the nas, and via esata connected
to my laptop.
Started a bootable cd, and i have tried to mount it via:

Code:
mount /dev/sdb3 /media/usb/
It gave me the following error:

Code:
mount: you must specify the filesystem type
root@ubuntu:/home/ubuntu# mount -t ext4 /dev/sdb3 /media/usb/
mount: wrong fs type, bad option, bad superblock on /dev/sdb3,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
after reading a bit this topic (similar issue), i did a fdisk -l /dev/sdb3, the output is:

Code:
Disk /dev/sdb3: 995.4 GB, 995370435072 bytes
255 heads, 63 sectors/track, 121013 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb3 doesn't contain a valid partition table
I can see the disk in disk utils. It is partitioned in 3 separated disks. The data is on the last partition sdb3.

How can i find out what kind of file system it is (most likely some sort of raid0) so i can mount it and retrieve the file?

If i do:

Code:
mount -t ext4 -o /dev/sdb3 /media/usb
i get:

Code:
mount: you must specify the file system type
is it better to try and find out what kind of file system it has, and rebuild the partition table, or do you advise other steps to follow?
 
Old 05-26-2012, 12:18 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,104

Rep: Reputation: Disabled
There's not supposed to be a partition table on /dev/sdb3. /dev/sdb, on the other hand, should contain one.

fdisk -l /dev/sdb will show you the partition ID, which may provide a clue to the identity of the file system.
 
Old 05-26-2012, 01:00 PM   #3
penduleum
LQ Newbie
 
Registered: Mar 2009
Posts: 16

Original Poster
Rep: Reputation: 0
lol. your right.
i totally forgot that, and saw the sdb3 as the main partition..

here is the outcome of fdisk -l:

Quote:
root@ubuntu:/home/ubuntu# fdisk -l /dev/sdb

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7e3b7243

Device Boot Start End Blocks Id System
/dev/sdb1 1 311 2490240 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2 311 572 2097152 fd Linux raid autodetect
Partition 2 does not end on cylinder boundary.
/dev/sdb3 588 121601 972041440+ fd Linux raid autodetect
root@ubuntu:/home/ubuntu# mount-t fd /dev/sdb3 /media/usb/
mount-t: command not found
root@ubuntu:/home/ubuntu# mount -t fd /dev/sdb3 /media/usb/
mount: unknown filesystem type 'fd'
root@ubuntu:/home/ubuntu#
if i do mount -t fd, i got this:

Quote:
root@ubuntu:/home/ubuntu# mount -t fd /dev/sdb3 /media/usb/
mount: unknown filesystem type 'fd'
root@ubuntu:/home/ubuntu#
i will search the net and hopefully get some answers, in the meantime, i appreciate any input.
 
Old 05-26-2012, 01:25 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,152

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
The partition ID has no real relationship with its file system type. Do you have any idea what type of RAID (0,1,2,3,4,5,6,10) is configured on your NAS?

I am not familiar with this device but you should be able to access its web configuration pages to determine RAID type.

Last edited by michaelk; 05-26-2012 at 01:37 PM.
 
Old 05-26-2012, 01:47 PM   #5
penduleum
LQ Newbie
 
Registered: Mar 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
The partition ID has no real relationship with its file system type. Do you have any idea what type of RAID (0,1,2,3,4,5,6,10) is configured on your NAS?

I am not familiar with this device but you should be able to access its web configuration pages to determine RAID type.

if i ame not mistaken, it was mounted just as jbdo.
I cannot rebuild this in to the dsm of the Synology, as it would not recognize this disk, as it has a bad-sector, and the Synology is just very sensitive to this.

the combinations of fdisk shows me this:
sfdisk -d /dev/sdb | sfdisk --force /dev/sdb

Code:
root@ubuntu:/home/ubuntu# sfdisk -d /dev/sdb | sfdisk --force /dev/sdb
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdb: 121601 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1          0+    310-    311-   2490240   fd  Linux raid autodetect
/dev/sdb2        310+    571-    262-   2097152   fd  Linux raid autodetect
/dev/sdb3        587+ 121600  121014- 972041440+  fd  Linux raid autodetect
/dev/sdb4          0       -       0          0    0  Empty
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sdb1           256   4980735    4980480  fd  Linux raid autodetect
/dev/sdb2       4980736   9175039    4194304  fd  Linux raid autodetect
/dev/sdb3       9437184 1953520064 1944082881  fd  Linux raid autodetect
/dev/sdb4             0         -          0   0  Empty
Warning: partition 1 does not end at a cylinder boundary
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
root@ubuntu:/home/ubuntu#
 
Old 05-26-2012, 01:49 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Before doing any further damage while attempting recovery, it is prudent to image the damaged partition to somewhere else and work on the copy. Some use plain dd to do that; others use ddrescue.

photorec has been recommended on LQ for recovering files from damaged file systems. Posts tagged with photorec are listed here.

foremost has also been recommended but less often.

In case it's a Windows file system, getdataback has been mentioned.
 
Old 05-26-2012, 02:02 PM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,104

Rep: Reputation: Disabled
Since the drive was part of a JBOD (Just a Bunch of Disks) set, it may not contain a valid file system at all.

If this was the second drive of a 2-drive setup, the file system bascally starts on drive 0 and proceeds past the end of drive 0 onto drive 1. Even if you could rescue a copy of the superblock, all references would be relative to the start of the RAID device. PhotoRec would be your best bet to recover any data from this disk.

I would agree with catkin that ddrescue is a stellar idea: Back up the entire drive to a (compressed) file, and dd everything back to the replacement drive when it arrives. You may then actually be able to salvage the JBOD RAID array.
 
Old 05-28-2012, 09:18 AM   #8
penduleum
LQ Newbie
 
Registered: Mar 2009
Posts: 16

Original Poster
Rep: Reputation: 0
thank both of you, catkin and Ser Olmy. Yes, it is a jbdo disk in a ary with 4 1 tb disk.
I have some experience with photorec, so i will try that one. ddrescue? Never heard of it. dd i heard off and played a bit arround.

It is just this disk that has a issue. the rest is just working fine (and already replaced the bad boy).
In any case, i just will try a bunche of tools and juse this disk as a tryout. Just to see what i am able to do with the tools. If i can recover somethin it will be nice, but not a mandatory.

Ho well, it will be a nice project for the 2 upcominhg weekends the rest of the time working...

thank you for your input.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk /dev/sdx doesn't contain a valid partition table worker Linux - Server 2 03-16-2012 04:45 PM
[SOLVED] Disk /dev/sdh doesn't contain a valid partition table Hypertenzion Linux - Hardware 2 11-10-2010 05:24 AM
Disk /dev/hdb doesn't contain a valid partition table LOLobo Linux - Hardware 11 11-06-2008 02:47 AM
Disk /dev/hdb doesn't contain a valid partition table manudath Linux - Hardware 2 09-01-2006 03:23 PM
Disk /dev/hdb doesn't contain a valid partition table rajeshdorai Linux - Hardware 1 04-12-2006 08:29 PM


All times are GMT -5. The time now is 08:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration