unallocated ext4 partition (can't find/mount it)

My external usb harddrive has 3 parition. 2 of them is fat 32 and 1 is ext4. I had to reinstall windows vista and when I went back to suse it doesn’t auto mount.

I honestly don’t know exactly what happen to it.

i did a fdisk -l and i tried mounting sdb1 and 5 but doesn’t seem to work.

the external hard drive is the 999.5gb. the ext4 had around 90 gig of space set to it.

If anyone can help me out on getting my data back i would gladly apperciate it. ^___^

Device Boot Start End Blocks Id System
/dev/sda1 21861 30402 68602880 7 HPFS/NTFS
/dev/sda2 * 1 21861 175592448 f W95 Ext’d (LBA)
/dev/sda5 1 262 2102272 82 Linux swap / Solaris
/dev/sda6 263 2873 20971520 83 Linux
/dev/sda7 2874 21861 152515584 83 Linux

Partition table entries are not in disk order

Disk /dev/sdb: 999.5 GB, 999501594624 bytes
255 heads, 63 sectors/track, 121515 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: 0x000ee1ed

Device Boot Start End Blocks Id System
/dev/sdb1 1 13055 104855552 f W95 Ext’d (LBA)
/dev/sdb2 65272 121516 451784704 c W95 FAT32 (LBA)
/dev/sdb3 13055 65270 419424256 c W95 FAT32 (LBA)
/dev/sdb5 1 13054 104846336 83 Linux

On 2011-08-05 12:36, Miohotcakes wrote:
> i did a fdisk -l and i tried mounting sdb1 and 5 but doesn’t seem to
> work.

Show exact commands used with the output, between code tags (advanced
editor, #).

Try file -s /dev/sdb5

sdb1 is not mountable.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

i get some sort of error

linux-pv2k:/home/mio # file -s /dev/sdb5
/dev/sdb5: ERROR: cannot read `/dev/sdb5’ (Input/output error)
linux-pv2k:/home/mio #

On 2011-08-05 13:16, Miohotcakes wrote:
>
> i get some sort of error
>
>>
>> linux-pv2k:/home/mio # file -s /dev/sdb5
>> /dev/sdb5: ERROR: cannot read `/dev/sdb5’ (Input/output error)
>> linux-pv2k:/home/mio #

PLEASE: USE CODE TAGS!!!

I think you have a hardware problem with that disk. Cables or something.
Maybe there is more info in the log file. Otherwise, you will have to do a
hardware test, using the manufacturer test utility, or at least, smartctl.

** Do not attempt to post from that file without code tags **


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Posting in Code Tags - A Guide

We get the headache!

Ah I’m very sorry about the code tag i wasn’t very sure on how to use it.

I downloaded the Gui version of smartctl but unfortunately i think my hard drive needs a format because i can’t seem to be able to do any thing onto it. It just weird to me that when i switch back to windows my ext4 partition would failed. **** you windows ><.

We are still waiting for readable

fdisk -l

output.

Alright i hope i did it right this time.

fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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: 0xc0edc0ed

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1           21861       30402    68602880    7  HPFS/NTFS
/dev/sda2   *           1       21861   175592448    f  W95 Ext'd (LBA)
/dev/sda5               1         262     2102272   82  Linux swap / Solaris
/dev/sda6             263        2873    20971520   83  Linux
/dev/sda7            2874       21861   152515584   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 999.5 GB, 999501594624 bytes
255 heads, 63 sectors/track, 121515 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: 0x000ee1ed

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       13055   104855552    f  W95 Ext'd (LBA)
/dev/sdb2           65272      121516   451784704    c  W95 FAT32 (LBA)
/dev/sdb3           13055       65270   419424256    c  W95 FAT32 (LBA)
/dev/sdb5               1       13054   104846336   83  Linux

Partition table entries are not in disk order

**
file -s /dev/sdb5**

/dev/sdb5: ERROR: cannot read `/dev/sdb5' (Input/output error)

On 2011-08-05 22:36, Miohotcakes wrote:
> I downloaded the Gui version of smartctl but unfortunately i think my
> hard drive needs a format because i can’t seem to be able to do any
> thing onto it.

smartctl is part of the distribution. Don’t try to format your hard disk
yet. IMO you will not be able to do it.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Thanks for the readable output :wink:

You have a bit strange setup (though it is workable). You can not mount sdb1 because it is the extended partition, which means that it holds other, so called logical, partitions. In this case it holds sdb5 (and has no more space to hold more). Now the* file -s *shows that there seems not not be very much usefull on that *sdb5. *I do not know exactly what file does when it tries to read it, but it fails miserably. That would mean imho that no ext4 file system can be found on it (nor any other type of file system). I am afraid almost nobody canguess what hapenedd to this partition, but to me it looks that all data is gone. Thus apart from you creating a new ext4 file system on it (e.g. by using YaST) and restoring from your backup, not much can be done. I hope you did follow the genral rule of making backups in f=general and particular when you are going to mess around with partitions or are going to install operating systems.

For the record, you could post the output of

cat /etc/fstab

to show what the system intends to do with that partition on boot (and what now fails).

On 2011-08-06 17:56, hcvv wrote:
>
> Thanks for the readable output :wink:

Indeed :slight_smile:

> Now the- file -s -shows that there
> seems not not be very much usefull on that -sdb5. -I do not know exactly
> what -file- does when it tries to read it, but it fails miserably.

I expected something similar to this:


Telcontar:~ # file -s /dev/sda7
/dev/sda7: Linux rev 1.0 ext3 filesystem data (needs journal recovery)
(large files)

It recognizes the filesystem. He got a read error, which to me means
hardware error. He needs to run the long SMART test, or better, from the
test utility supplied by the manufacturer. Seagate, for example, publishes
a free to download iso image of a small bootable CD.

It would be unwise to try formating that partition before making certain
that it is a good disk.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Thankz for the in depth post.

I’m probably going to back up my stuff now and buy a new hard drive. (i had past partition problems with this drive a few months ago).

I’m quite sad because i had a lot of family photos on it.

I’m quite sad because i had a lot of family photos on it.

Try photorec PhotoRec Step By Step - CGSecurity It’s on the partedmagic liveCD Parted Magic | Download Parted Magic software for free at SourceForge.net
Start by saving the most important files first.

A further note, this thread does suggest a likely hardware issue with this hard disk, and you mention data that you have not backed up (your “family photos”),
At this point data recovery becomes more important than testing the hardware, you should only access this disk when attempting to save the data you need to another location.

Only when you have that data safely retrieved and stored should you run further tests on the disk.

On 2011-08-07 13:16, dvhenry wrote:
> Only when you have that data safely retrieved and stored should you run
> further tests on the disk.

That is wise.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)