Dd to /dev/sda instead of /dev/sdb, how to restore /dev/sda
Hello,
yesterday I made a mistake, I did a dd to /dev/sda:
dd if=imagefile.img of=/dev/sda
Problem is my /dev/sda is my harddisk and it should have been /dev/sdb (usbstick).
Now my computer doesn't boot anymore.
How can I restore my harddisk without losing my data? The image file I copied was around 120MB.
Did dd than only overwrite the first 120MB or is there more?
Regards,
Roel
Thank You guys,
my arch-linux is up and running again in aprox. 1,5h time!!
First I tried to backup the harddisk with knoppix and saw my harddisk was empty, in gparted it seemed like it was never used... I was down, down, down... I didn't give up and downloaded systemrescuecd. Testdisk rstored my partition table and I saw it was my lucky day. The first partition on my harddrive was SWAP. All my files where intact and my stupid mistake only overwrote SWAP and MBR.
Reinstall grub would do the trick, i thought... but it didn't. Wy? Testdisk allocated my partitions to hda1 and hda2. In arch I had sda1 (swap); sda2 (/) and sda3 (/home). Now when I reinstalled grub the partition table didn't correspond to the ona in arch. A little bit fiddling in menu.lst, fstab and devices.map managed me to boot my arch system from fallback. My normal boot doesn't work though, I already changed everything to the right partitions but it keeps complaining about not finding my root partition. I already tried root=/dev/hda1; /sda1 and the whole rimram.
Can somebody tell me what's the problem?
It is probably my initrd file, isn't it?
Similar Messages
-
iMessage on MacBook Pro shows i'm my friend. My friend's photo and name shows in every conversation instead of mine. How do I fix this?
I am using my own Apple ID. (My father doesn't even have one). I seem to recall having to select a contact or something to assign to my iMessage app when I used it the first time on my iPad. I checked the settings and it is set to my apple ID and correct email address. Any other ideas?
-
I have 2 accounts in my family and would like to purchase some of the same songs for both accounts, however when I try to purchase a duplicate song from the second account the song says play instead of purchase. How can I get some of the same songs?
Drrhythm2 wrote:
What's the best solution for this? I
Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer. -
Now I have multiple folders in my external hard drive and want to know how to condense all folders into yearly folders instead. Anyone know how to do this?
anthonycancel wrote:
I want the folders I already backed up to come together into one folder when that year is over. Is there a way to manually do that or automatic through TM?
I'm quite sure there is no "automatic" way to do this. I've never heard of anyone trying it either. I suppose if you wanted try it, you could simply create a new folder in the same partition TM is on, label it for that year, then gather all the days for that year and drag/drop them into the folder. I suspect (but do not know) you'd be risking the continuity of your backups, meaning TM would simply start over again, meaning that next back up would start a new series of backups, with the first one roughly equalling the entire capacity of your internal HD, instead of adding only the new data to the previous backup. Once again, I would recommend against it, unless you're fine with TM starting a new series of backups if it doesn't work out the way you want it to. Hope you'll post back with results so we can learn from it. -
I would like to send pics from my windows computer to my iPhone using bluetooth. I had it paired but somehow it cannot the download the software and is asking me to usa a disk instead. Where or how can I download the software available for that, please reply... thaks. (",)
Bluetooth file transfer has never been supported with iOS devices.
-
I signed in as my dad's ID, and now, I'm signed in as my own ID. The problem is, when I try to verify any update, it asks for my dad's ID password instead of mine. How can I fix this? I've already tried to sign in and sign out, but it doesn't work...
You need to delete and redownload those applications. His Apple ID is stored inside them.
(115505) -
Just purchased Pages for our iMac. When I opened a resume template, it is in Spanish instead of English. How do I change it to English?
How many times can you ask the same question?
Just stick to the once.
Peter -
Facetime is using my husband's cell phone number instead of mine. How can I change the number to mine in face time?
You need to set up the accounts in System Preferences/Accounts, then activate Fast User Switching.
That way you can quickly log in to your own account - then back to his.
You should obviously have different passwords. -
I bought an app and was charged 19.99 instead of .99. How do I fix this? Thx.
Go to your list of purchases in your account on your computer and click Report a Problem.
-
When I update itunes it deletes the library file, and when I restore that file from the previous libraries or my backup, itunes will run but tell me "the iTunes library file cannot be saved. A folder was specified instead of a file" How do I fix this?
Hi there Br0x,
You may want to try rebuilding the iTunes library as an initial troubleshooting step. Take a look at the article below for more information.
iTunes: How to re-create your iTunes library and playlists
http://support.apple.com/kb/ht1451
-Griff W. -
Why are my iPhone 4S photos 2592x1936 instead of 3264x2448? How do I change the settings?
No worries, have now found what I needed in notifications.
-
I recently rebuilt my iphoto 09 library and now all the pics are in one folder instead of events. How do I get 20,000 pics back into the correct events?
I have a macbook pro Version 8.1.2 and I am using Iphoto 09
I rebuilt library because many pics were black and now they are in one folder labeled "Recovered"Do you have the original iPhoto Library (before you rebuilt it)?
If so, I suggest you rebuild it using iPhoto Library Manager, a program you can download. It does a better job of rebuilding. It also leaves your original intact and makes the rebuilt Library a new file (package).
If you don't have the original (say, from a backup), then you should probably first back up the library that you have before trying anything.
After making a backup of it, look along the left side, you will see Events and Photos. Is there anything in either of those areas?
If not, it sounds like all your photos were recovered and put in Recovered during the rebuild. iPhoto Library Manager might do a better job with this. In any case, if there are no photos in Events or in Photos, try selecting ~ 5 photos in Recovered and drag them to Photos. Do they then show up there with the correct dates? Do they also show up in Events after doing that? I am suggesting just a few photos before you try it with 20,000.
If the photos inside your "recovered" area are also in Photos, then don't do the above steps. I'm not sure I can help you if your 20,000 photos are in Photos but not Events. I'd try iPhoto Library Manager instead with its better rebuild.
If the 5 photos experiment works, then I would try it with ~ 200 photos at a time, going through your entire collection. You'll need to do this about 10 times if you really have 20,000 photos. Remember, don't do this if the "recovered" photos are already in "Photos." -
My photos from iPhone 6 appear in PNG format instead of JPG. How can that be changed?
When using iCloud to download them, you are going through the wrong procedure. That PNG file you are downloading is just the thumb nail. Open the image in the browser, then look to the menu at the top. you will see an icon that looks like a cloud with a downward pointing arrow. Click that to download the image.
Syncing with Windows I can't help you with. I don't directly sync my iOS devices. -
I am still having issues when visiting a website and then selecting the back icon and browsers is returning old data instead of current. How do I fix this?
found a solution thank you firefox live chat!!!
-
when i open .jpg picture in photoshop on MAC the the background thumbnail in the layers panel looks like a white box with the brush inside instead of picture thumbnail. how to fix it?
Very easy. That means you have a "no layer thumbnails" option selected.
Go into the Layers Panel menu at the upper right of the Panel, choose Panel Options and you will see Thumbnail sizes to choose from.
Select one, click OK.
Gene
Maybe you are looking for
-
Video white balance levels not showing, so video effects and color editing won't work
I've watched white balance tutorials, and I tried clicking the dropper onto the viewer to change the color. But, in the gray box above it there are normally red green and blue lines, but I have nothing there. I think this is preventing any edits to m
-
Can I use Hey Siri to silence the alarm after a timer finishes?
I can use Hey Siri to set a timer. But at the end of the timer, I have to walk over and touch the device to stop the alarm. Is there any command I can use after Hey Siri to tell the device to stop sounding the alarm? Before you reply, please note tha
-
LDAP search cannot find entry by user "defined attribute" or "sounds like
Hi, I have an JSP program that searches an LDAP Sun One Directory Server. All of my search filters ( by givenname,sn,mail and phone #) work fine with the search base set at the very top (root ) of my DIT tree. However with the same search base, searc
-
Vendor creation using fm 'Vendor_insert'
Hi experts, I want to create vendor using the FM 'VENDOR_INSERT'. But the problem is I am unable to know what are the required fields to be given in the import structures (ie LFA1,LFB1,LFM1) . Could you please suggest the way to run this FM with mini
-
Servlet cannot find local interface
I have created a session bean called "UsersManagementBean" and his local interface called "UsersManagement". After deploying the application on JBoss server i got the error "PackageName.UserManagement not bound". my jndi tree view shows (under global