LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-06-2004, 01:44 AM   #1
samnjengah
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Rep: Reputation: 0
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 .
 
Old 01-06-2004, 03:01 AM   #2
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
are you trying to boot the data you dumped to hdc1 ? Or do you now have issues booting your normal operating system?
 
Old 01-06-2004, 03:25 AM   #3
samnjengah
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Original Poster
Rep: Reputation: 0
am trying to boot from the new flash disk . The original flash disk boots ok
 
Old 01-06-2004, 03:24 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Is this a same make / model flash disk?
 
Old 01-06-2004, 05:30 PM   #5
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 32
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.
 
Old 01-06-2004, 06:43 PM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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
 
Old 01-06-2004, 06:48 PM   #7
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
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
 
Old 01-08-2004, 11:13 AM   #8
samnjengah
LQ Newbie
 
Registered: Jan 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks guys but I still cant get it right .Now am getting the error msg
NO ROM BASIC System halted
 
Old 01-08-2004, 01:49 PM   #9
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

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

Håkan
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'Operating System Missing' Eerath Linux - Newbie 6 02-24-2005 02:11 PM
Compaq Armada V300 'missing operating system' on startup ejner Linux - Laptop and Netbook 2 10-30-2004 06:46 AM
Missing operating system! SteveGodfrey Linux - Software 7 09-05-2004 02:14 PM
Missing operating system? Vid Slackware 4 03-26-2004 08:47 PM
Help!!! MISSING OPERATING SYSTEM paul.nel Linux - General 7 01-25-2004 12:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration