Re: mbr dd'd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux