linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: chuck gelm <chuck@gelm.net>
To: kaushal <kaushal@rocsys.com>
Cc: admin <linux-admin@vger.kernel.org>
Subject: Re: mbr dd'd
Date: Mon, 13 Dec 2004 09:31:19 -0500	[thread overview]
Message-ID: <41BDA7B7.4090708@gelm.net> (raw)
In-Reply-To: <1102944601.2248.31.camel@Kaushal>

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

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

[-- Attachment #2: burncd.sh --]
[-- Type: text/plain, Size: 509 bytes --]

#!/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

  reply	other threads:[~2004-12-13 14:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-13 13:30 mbr dd'd kaushal
2004-12-13 14:31 ` chuck gelm [this message]
2004-12-13 15:59 ` Jim C. Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41BDA7B7.4090708@gelm.net \
    --to=chuck@gelm.net \
    --cc=kaushal@rocsys.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).