From mboxrd@z Thu Jan 1 00:00:00 1970 From: chuck gelm Subject: Re: mbr dd'd Date: Mon, 13 Dec 2004 09:31:19 -0500 Message-ID: <41BDA7B7.4090708@gelm.net> References: <1102944601.2248.31.camel@Kaushal> Reply-To: chuck@gelm.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070805040604090602010900" Return-path: In-Reply-To: <1102944601.2248.31.camel@Kaushal> Sender: linux-admin-owner@vger.kernel.org List-Id: To: kaushal Cc: admin This is a multi-part message in MIME format. --------------070805040604090602010900 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit kaushal wrote: > hi, > My friends' system is in a critical situation. > Hdd. is /dev/hdc. > CD-WR is /dev/hdd. > created a bootable linux iso img. > MISTAKE part: > dd if=iso.img of=/dev/hdc.Instead of hdd. > > To retrive it back we tried the following: > > 1.)lilo: > 1st sector of the device doesn't has valid boot signature. > > 2.)grub-install /dev/hdc > the device doesn't has BIOS recognition. > > though multiboot,tried out this : > 3.)dd if=/boot/vmlinuz of=/dev/hdc > grub-install /dev/hdc > the device doesn't has BIOS recognition. > > 4.)backed up the /boot/grub > copied the grub of another sys in the network, > replaced the /boot/grub.conf with the backedup grub.conf(i.e old one) > again grub-install failed with the same reason. > > > Net connectivity is available.Is there anyway he can recover the mbr > ?Other os is windows 2000.He did backup the entire data and the system > is working fine now. > > Desperately waiting for a solution. > > Thanks a lot in advance. > > kaushal. Dear kaushal: I do not create a CD-ROM diskette from an .iso image using 'dd'. I "burn" .iso images to CD-ROM using 'cdrecord'. See attachment for an example bash script that copies an .iso image to CD-ROM diskette. HTH, Chuck --------------070805040604090602010900 Content-Type: text/plain; name="burncd.sh" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="burncd.sh" #!/bin/bash # # /usr/local/bin/burncd.sh # cat /usr/local/bin/burncd.sh echo "" echo " First argument is <$1>." echo "Second argument is <$2>." echo "" eject -t if [ -n $1 ] ; then if [ -n $2 ] ; then cdrecord -v dev=0,0,0 fs=64M speed=$2 driveropts=burnproof $1 else echo "Second argument is burn speed [1 - 52] and must not be null." fi else echo "" echo "First argument is filename.ext and must not be null." echo "" fi mount /mnt/cdrom && ls -l /mnt/cdrom && umount /mnt/cdrom echo $1 eject --------------070805040604090602010900--