You are not logged in.
When writing an Arch .iso to a USB in Debian I accidently wrote it to my external HDD. Completely my fault, I didn't check the link before writing to "dev/sdb" (which is where my USB is always linked, unless I have my external HDD mounted) and wrote to my external HDD.
Since I reformatted, the drive has gone from 1TB to 1GB in size. I was wondering how to recover my size and if possible data. I have googled and looked at the wiki but couldn't find anything other than Windoze NTFS / FAT32 guides.
So if I can recover data and even 1/2 my space I will be happy.
Any advice will be appreciated,
Thank you
*edited for awful spelling*
Last edited by HungGarTiger (2012-07-09 15:18:46)
"No sympathy for the devil. If you buy the ticket, take the ride."
- Hunter S. Thompson
Offline
are you sure you aren't looking at the wrong drive again?
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
...Since I reformatted, the drive has gone from 1TB to 1GB in size...
Do you recall, specifically, how you formatted it?,
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
are you sure you aren't looking at the wrong drive again?
No I am only connecting one at a time, so I am sure I am looking in the right place.
I have nothing that is sized 1.1GB anyway, USB's and such are mounting properly under Thunar. It is only this drive that is causing me ball-ache
"No sympathy for the devil. If you buy the ticket, take the ride."
- Hunter S. Thompson
Offline
HungGarTiger wrote:...Since I reformatted, the drive has gone from 1TB to 1GB in size...
Do you recall, specifically, how you formatted it?,
I used Debians (gnomes) "right click format" NTFS system, which I have never had problems with. It seems that the issue is only after having written the .iso to the drive
"No sympathy for the devil. If you buy the ticket, take the ride."
- Hunter S. Thompson
Offline
Do this:
sudo dd if=/dev/zero of=/dev/sdX bs=1024k count=1Where X is the letter of the USB flash drive/hard drive that you want its partition tables totally erased.
Be sure to type the correct letter, otherwise you might erase your system hard drive and lose data!
Afterwards, be sure to reboot the PC and then check out if Gparted shows the capacity correctly.
asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox
Offline
If you create a new partition table, that should solve your first issue (in gparted this is under Device->Create Partition Table).
First though before messing around with the hard drive too much, you should attempt to recover what data you need off of it (If any. Hopefully you have backups). The Arch ISO should only have overwritten the first 300MB or so of the drive, so you should be able to recover most of it with a tool like photorec or foremost. If you can, it would be better to make a dd backup of the entire drive first to work with (in case you mess anything up even more), though with 1TB of space that might be too much.
Offline
Offline
I realise that it is too late for this now, but if you screw something up like this and might want to recover data, you should not touch the hard drive further before recovery. For example, don't reformat it... I don't mean there's no hope. Just the less you do to it, the better the chances of recovering what you need from it. As Pres says, copying the drive and working on the copy is safest.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline