LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   dd command - missing operating system (https://www.linuxquestions.org/questions/linux-general-1/dd-command-missing-operating-system-131948/)

samnjengah 01-06-2004 01:44 AM

dd command - missing operating system
 
hi
I have jus used the dd command on to flash disks

dd if=/dev/hda1 of=/dev/hdc1
it did not return any errors

when I mount hdc1 I can see all the content similar to that of hda1 but when i try to boot I get the msg "missing operating system .

ezra143 01-06-2004 03:01 AM

are you trying to boot the data you dumped to hdc1 ? Or do you now have issues booting your normal operating system?

samnjengah 01-06-2004 03:25 AM

am trying to boot from the new flash disk . The original flash disk boots ok

michaelk 01-06-2004 03:24 PM

Is this a same make / model flash disk?

ezra143 01-06-2004 05:30 PM

one thing i think is that dd does not write a MBR, which you may be missing... dunno but this could easily be why you are getting a no os error.

hw-tph 01-06-2004 06:43 PM

ezra143 is right on the money - when you have cloned a disk you still need to install a boot loader. Run grub-install /dev/hda or lilo, or whatever bootloader you use.

Håkan

lyle_s 01-06-2004 06:48 PM

dd doesn't copy the Master Boot Record (MBR) unless you ask it to.

dd if=/dev/hda1 of=/dev/hdc1 copies the first primary partition of /dev/hda, which is beyond the MBR.

In order to copy an MBR, use:

dd if=/dev/hda of=somefile bs=512 count=1

"somefile" could have been /dev/hdc, but I doubt that's what you want to do. If you're using lilo your lilo.conf file from /dev/hda1 may not be appropriate for /dev/hdc1 (I'm not sure how GRUB would be affected).

What I'd do in your situation is
- boot using your Slackware install disks
- mount /dev/hdc1 somewhere and edit any boot loader (GRUB or lilo) configuration files
- run lilo using chroot to write the MBR.
- Reboot and enjoy.

Lyle

samnjengah 01-08-2004 11:13 AM

Thanks guys but I still cant get it right .Now am getting the error msg
NO ROM BASIC System halted :(

hw-tph 01-08-2004 01:49 PM

Use fdisk to mark your root ("/") or boot ("/boot", if you have one) partition as active, that should solve that problem.

Håkan


All times are GMT -5. The time now is 03:41 AM.