bug-grub
[Top][All Lists]
Advanced

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

[bug #4245] Copying a hard drive and making the copy bootable is hard


From: nobody
Subject: [bug #4245] Copying a hard drive and making the copy bootable is hard
Date: Thu, 10 Jul 2003 12:49:02 -0400
User-agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux)

=================== BUG #4245: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4245&group_id=68

Changes by: Anonymous user        Date: jeu 10.07.2003 à 12:49

------------------ Additional Follow-up Comments ----------------------------
Just after this line:
 grub-install --root-directory=/mnt/hdb3 hdb
You can add this line:
 vi /mnt/hdb3/boot/grub/menu.lst
and change hdb3 to hda3 inside this file since your hard disk become hda when 
you remove the first disk.




=================== BUG #4245: FULL BUG SNAPSHOT ===================


Soumis par: None                      Projet: GNU GRUB                      
Signalé le: mer 09.07.2003 à 05:37
Category:  None                       Severity:  Major                      
Priority:  None                       Bug Group:  Software Error            
Resolution:  None                     Assigned to:  None                    
Status:  Open                         Release:  GNU GRUB 0.93               
Reproducibility:  Every Time          Planned Release:                      

Summary:  Copying a hard drive and making the copy bootable is hard

Original Submission:  I'm making copies of my hard drive.  To do this, I turn 
off my computer, plug in another hard drive, turn it on, and type:
  fdisk /dev/hdb  (create hdb1 (/boot), hdb3 (/))
  mke2fs -j /dev/hdb1  
  mke2fs -j /dev/hdb3
  mkdir /mnt/hdb3
  mount /dev/hdb3 /mnt/hdb3
  mkdir /mnt/hdb3/boot
  mount /dev/hdb1 /mnt/hdb3/boot
  tar cl / | (cd /mnt/hdb3; tar xp)
  cd /boot
  tar cl . | (cd /mnt/hdb3/boot; tar xp)
  grub-install --root-directory=/mnt/hdb3 hdb
  umount /mnt/hdb3/boot
  umount /mnt/hdb3
  shutdown -r 0

What I want to happen is for the new hard drive to become bootable when it's 
the only hard drive (hda).

What I sometimes get is an error saying that it can't find hdb in the bios 
list.  On other occasions, it clobbers the grub on hda hard disk so that it 
boots to the grub command line.  As these are serial-console machines, it 
appears that the machine just isn't booting at all, but in reality, it's 
booting to the non-existent screen on the non-existent graphics card.

What I'd like is a fool-proof method of making /dev/hdb  bootable when it 
becomes /dev/hda in a new computer.  A FAQ entry would be enough.

Thanks!
--
address@hidden

Follow-up Comments
*******************

-------------------------------------------------------
Date: jeu 10.07.2003 à 12:49        By: None
Just after this line:
 grub-install --root-directory=/mnt/hdb3 hdb
You can add this line:
 vi /mnt/hdb3/boot/grub/menu.lst
and change hdb3 to hda3 inside this file since your hard disk become hda when 
you remove the first disk.



La liste CC est vide


Il n'y a aucun fichier attaché actuellement


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4245&group_id=68

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]