LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-24-2007, 04:27 AM   #1
M D
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
C Drive "/dev/hda1" accidently used in dd command at "of=" switch


I have accidently used /dev/hda1 i.e. my C Drive, in dd command as "dd if=/dev/hda9 of=/dev/hda1 bs=512 count=1" where /dev/hda9 is "/boot" and /dev/hda1 is C Drive.
Now I can't able to boot my system. Kindly any one who knows how to resolve this problem, Please help me...
 
Old 04-24-2007, 04:34 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Nasty accident. I'd try simply reinstalling the bootloader, for example Grub, with grub-install:
Code:
man grub-install
.
 
Old 04-26-2007, 03:04 AM   #3
amatrix2k2
LQ Newbie
 
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
I have multi OS

Quote:
Originally Posted by b0uncer
Nasty accident. I'd try simply reinstalling the bootloader, for example Grub, with grub-install:
Code:
man grub-install
.
Thanks, but my C drive has Windows Xp Installed, D has Windows 2003 Enterprise and /dev/hda9 10 11 has Fedora Core.
 
Old 04-26-2007, 04:08 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,223

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
So ....
can you boot the system or not ???.
Which boot-loader are (were) you using ???.
 
Old 04-26-2007, 08:56 AM   #5
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
Chances are you've only destroyed the Windows XP volume or partition boot sector, I suppose this could make it so you can't boot depending on your setup. Here's a page that describes how to restore it: http://pcsupport.about.com/od/fixthe...bootsector.htm
Some more information about your setup would help us give you further instructions

Which bootloader do you use? LILO, GRUB, or the Windows one?
When you say you can't boot your system, what actually happens?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 09:33 PM
"NIM thread blocked" & "Deadman Switch (DMS) close to trigger" errors sosborne Linux - Networking 1 06-28-2006 02:07 PM
"NIM thread blocked" & "Deadman Switch" errors sosborne AIX 3 06-01-2006 11:21 AM
How do I switch the labels "/dev/sda1" with "/dev/sda3" vonst Linux - General 10 05-27-2006 10:48 PM


All times are GMT -5. The time now is 04:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration