LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   initialize ext3 disk by mistake (https://www.linuxquestions.org/questions/linux-hardware-18/initialize-ext3-disk-by-mistake-942588/)

antares4141 04-30-2012 12:18 PM

initialize ext3 disk by mistake
 
I'm not sure weather the drive I initialized:
http://i185.photobucket.com/albums/x...initialize.jpg
was ext3 or ntfs. I thought it was ntfs and that's why I clicked "ok". But now I'm not so sure. It shows up in drive manager as you can see from the link I provided. (since I clicked the ok button to this same dialogue once already)

On rare occasions in the past I've encountered this dialogue and I'm pretty sure I've clicked ok at least once and the system just recognized the drive it didn't format it or anything.

Searching windows forums for this hasn't provided much in the way of answers.

I've read conflicting post's, some say it formats the drive and others say it just makes it so the operating system can read it.

Does anyone know (for sure) what it does and what to do in a situation like this?

I can't see the drive (at all) in linux now, I've tried both f-disk -l and testdisk. With 3 physical drives attached I only see 2, (sda1 & sdb1) should be an sdc1 but there isn't.

Only thing I know to do now is try loading it up on windows and clicking "ok" to the initialize disk dialogue in drive manager.

drive obviously isn't dead, windows see's it, it's attached to the motherboard via sada port.
Robert Christ

syg00 04-30-2012 09:58 PM

Read this - are you sure you want that as (Windows) logical disk ?.

antares4141 05-01-2012 03:48 PM

Quote:

Originally Posted by syg00 (Post 4667207)
Read this - are you sure you want that as (Windows) logical disk ?.

No, I am not sure weather it's a ext3 or windows logical disk. I tried to find this out using the fdisk -l command but no trace of the drive. Same with testdisk, doesn't even aknowledge the drive exist's. But windows sees it and I have tried an external usb cable and even attached it directly to my motherboard via a sata cable so I am pretty sure it's not a hardware failure.

And as I stated in the first post my suspicion is that I tried to initialize the disk in windows "drive manager" when in fact it was an ext3 partition.

I'm looking for a way to see it on my linux platform so I can decide how I am going to rescue the data.

Robert Christ

unSpawn 05-01-2012 05:22 PM

Quote:

Originally Posted by antares4141 (Post 4667894)
I'm looking for a way to see it on my linux platform so I can decide how I am going to rescue the data.

Attach the disk to your motherboard via SATA, check your BIOS and ensure no drive detection is masked, run your Linux distro, once its running type 'dmesg > /tmp/dmesg.log' as root. Then run 'cd /tmp; testdisk /debug /log /dev/sdc' (provided the disk doesn't appear as /dev/sda or /dev/sdb) as root, select the disk, select "none", analyze, quick search, deep search (if available) and quit. Now you have two logs to post (pastebin them): /tmp/dmesg.log and /tmp/testdisk.log. BTW a way to quickly determine if a disk has Windows-like content could be to grep for strings. This one-liner greps /dev/sdc for strings:
Code:

egrep -a -m30 -e "(MSDOS|NTLDR|AUTOEXEC|CONFIG.SYS|NTFS|hiberfil.sys|pagefile.sys|System.Volume.Information|HKLM|HKCU)" /dev/sdc
It stops after finding max 30 occurrences which should be enough to show if the disk does or does not hold a Windows partition.

antares4141 05-02-2012 02:09 AM

Quote:

Originally Posted by unSpawn (Post 4667954)
Attach the disk to your motherboard via SATA...

Thanks, I'm out of town so it's going to be a day or two till I get around to it. Usually I can tell how the disk is formatted of course using fdisk -l. I'll post back after I've tried the things you mentioned.
Robert Christ

syg00 05-02-2012 03:01 AM

Never having used Windows Dynamic disks, but these sort of things (LVM e.g.) generally write meta-data all over the beginning of the extent. Which trashes the filesystem - at least.
Disk scrpaers (like that one unSpawn suggested) might be the only option. Linux has a few, but by nature they are slow, and require similar space to create the recovered files.
Could be ugly.

antares4141 05-05-2012 08:31 PM

Well it looks like it was a simple mixup with cables which I find hard to believe cause I first started with a usb cable (type) controller and when I didn't see it there (in linux) I went straight to the motherboard which didn't work either.

But I just tried hooking it to my thermotake (drive dock) and it's working now. It's a linux partition and it's mountable and everything is good.

I tried it back on the motherboard again and that works too but I'm guessing I grabbed (by mistake) a cable that went to my esata bracket instead of one that went to the motherboard.

Thanks for all the suggestions

Robert Christ

unSpawn 05-05-2012 09:46 PM

Hard to believe but mix up you did. Anyway, good to see you got it back.


All times are GMT -5. The time now is 11:32 AM.