Hi there!
Some days ago i did a dd image write of a Linux Mint image. The command i used was the recommended in their page: sudo dd if=~/Desktop/linuxmint.iso of=/dev/sdb oflag=direct bs=1048576 The problem was that i was sleeping and mistaken the drive letter and writed the image to an External USB 2TB hard drive instead of the usb pen drive! This was not so much a problem because i had a backup of that drive. The real problem is, to put the data that i lost, again in that drive, i erased all partitions in gparted, created a new partition table, formated in NTFS (it has to be), then in windows did the same thing again just to be sure. Gparted, fdisk and windows disk management tool, all show me that the disk only has one partition (what i want). The problem is when i plug the drive into the PC, the Kde device notifier and Dolphin shows like 2 drives have been plugged ( One with the label "Store" with my files, and another with device name's label, with the files of the Mint image that i preveously writed). I can only mount one of that drives at a time. Fdisk-l output: Quote:
Thanks in advance |
Quote:
Quote:
Quote:
Quote:
|
Yeah my post seems a bit confusing. I will try to explain better.
Forget the data backup part. I did that already and its not the problem. I did that in windows ( i dont trust linux/fuse to copy/move data between ntfs partitions). They are to WD Caviar green 2 TB. Now i have 2 virtually identically drives with the same data. Virtually because, now in linux (dolphin) it is showing me one of the disks having 2 partitions. My only issue is that only dolphin and the kde device manager shows me that. Gparted and fdisk tells me that there is only one partition in that disk. Windows "sees" only one partition to. Thats what is confusing me (and maybe you). See the picture: http://img35.imageshack.us/img35/7858/dolphinuf.jpg WDC WD20EARS and Store is the same hard drive. This is the drive that i made the image copy with dd by accident. But on fdisk: Code:
Disk /dev/sdb: 2000.4 GB, 2000396746752 bytes But i can tell you something is wrong beacause if i try to boot the computer by the "Store" HD (selected it in BIOS) the computer seems to detect a bootloader and tries to boot it but it fails and hangs (have to do a reset). This doesnt happen with the "Backup" drive. Its stupid because neither hard drives have the "boot flag". I made a "chkdsk" to the "Store" HD in windows and all seems fine. No errors or bad sectors. When i made the data backup im pretty sure that i deleted the partition table and all partitions, and created only one partition. All of this with gparted. I think dd messed up this hard drive... Can you tell at least if there is any dd command that erases all data and all partitons (well, everything), like if it was new? So that i can start from scratch and make the backup again. Thanks |
Quote:
Several things. First, select the left menu (Places) and try pressing <F5>. This will re-read / refresh the data. If this doesn't work, try the other mode(s) of dolphin. There is not only "Places" but several more choices to be made from "view" (I think. My dolphin looks quite different, there I chose from an icon on the right side...). Play around with dolphin, from your screenshot one can see, that you are using only the barebone abilities of it. And thirdly, are you booting from "Backup"? If not, umount it and unplug it, then plug it in again. Let's see what then happens. Quote:
Quote:
Code:
dd if=/dev/zero of=/dev/sdb bs=1M If you just want the MBR cleaned use: Code:
dd if=/dev/zero of=/dev/sdb bs=512B count=1 |
Thanks a lot for this helpful thread. It's really helpful.. :) Hats off! :hattip:
|
Hi JZL240I-U.
Thank you very much!! Cleaning the MBR with the dd comand you posted did the trick! I didnt thought too much about the dd command i issued and i was not remembering an .iso is not organized like a hard disk. Thanks for remembering me that!!! Now dolphin shows me only the partition and not the device name, the normal way, the way i wanted it. I know how to use dolphin. I just like to get it simple ;). If i want something with more options i generaly use konqueror. Anyway, thank you very much for your help and time. Regards |
I don't understand why this thread hasn't been made a sticky,so that it's easily found by others. I myself have it bookmarked as there is a lot of information on a continuous basis.
|
Not Stickied
Quote:
|
Just a quick note regarding some posts above: If you image to both an internal drive and a USB drive, the USB drive will probably not boot correctly, because the device files are slightly different. But GRUB2 usually will work if the USB image is the entire drive.
|
Member response
Hi,
Quote:
Slackware®-Links references this thread: Learn the DD command. I think the thread could be used to create/generate a <Linux-Answer> topic. |
LOL its called truecrypt... try that instead of this "book" on how to do this...
|
Quote:
|
Hello,
I would much appreciate your assistance. I backuped mi /dev/sda5 partition with the following command: Code:
sudo dd if=/dev/sda5 > /media/discoduroexterno/imagenes/partitionimage.dd I tried to restore the partition (after repartitioning the disk) and with the command: Code:
sudo dd if=/media/Maxtor/partitionimage.dd of=/dev/sda5 Now I am trying to mount the .dd file with the following command: Code:
sudo mount -o loop -t auto /media/Maxtor/imagenes/partitionimage.dd /media/carpeta Code:
mount: tipo fs incorrecto, opción incorrecta, superbloque incorrecto en /dev/loop0, Code:
0.337:29): apparmor="STATUS" operation="profile_replace" name="/usr/bin/evince//launchpad_integration" pid=2554 comm="apparmor_parser" Now I am using testdisk on the .dd file in order to correct any wrong value, but there is no geometry correction related to blocks. So I am stuck here. At present I am analyzing the .dd with testdisk. Any help would be much appreciated. Thank you. |
Quote:
|
Surely the ">" symbol might be the problem. I could extract the files with photorec, but it's 47 GBytes of unordered files... :(
|
All times are GMT -5. The time now is 06:00 AM. |