moving stuffs between harddisk

Matthew Carpenter matt
Tue Feb 8 06:37:00 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Actually, there are a few other things to be aware of.
/boot/grub/device.map needs to have the following:
(hd2)	/dev/hdc

And the grub commands are basically:
| root (hd2,0)  # or wherever the /boot/grub directory will live
| setup (hd2)	# this actually writes the MBR.  If PBR is preferred, use
(hd2,0) or whatever.

Ooops.  Looks like that part was already covered.

Roger Oberholtzer wrote:
| On Mon, 2005-02-07 at 11:44, Man-wai Chang wrote:
|
|>Roger Oberholtzer wrote:
|>
|>>On Mon, 2005-02-07 at 03:56, Man-wai Chang wrote:
|>>
|>>>how do you copy the MBR if you don't use dd?
|>>
|>>You don't. If you use GRUB, you issue the very simple GRUB commands to
|>>do this. Either to the disk as a whole or to a particular partition. I
|>>would imagine that there is a LILO counterpart.
|>>
|>>For GRUB:
|>>
|>>	root (hd0,0)		# Or whatever your disk is
|>>
|>>	find /boot/grub/stage1	# Verify that the root command is 				# correct.
|>>This will list the ones
|>>				# found.
|>>
|>>	setup (hd0)		# Install GRUB on disk's MBR.
|>>
|>>	- or -
|>>
|>>	setup (hd0,0)		# Install GRUB on disk's first
|>>				# partition.
|>
|>I guess I knew how to do it in lilo (via the boot parameter), but not
|>with grub. SO in your example, if I want to write the mbr to /dev/hdc, I
|>only need to change:
|>
|>"setup (hd0)" to "setup (hd2)"
|
|
| Assuming that the /boot/grub files are on /dev/hdc, yes.
|
| +????????????????????????????+???????????????????????????????+
| ? Roger Oberholtzer          ?   E-mail: roger at opq.se        ?
| ? OPQ Systems AB             ?      WWW: http://www.opq.se/  ?
| ? Nybrogatan 66 nb           ?    Phone: Int + 46 8   314223 ?
| ? 114 41 Stockholm           ?   Mobile: Int + 46 733 621657 ?
| ? Sweden                     ?      Fax: Int + 46 8   314223 ?
| +????????????????????????????+???????????????????????????????+
|
| _______________________________________________
| Linux-users mailing list
| Linux-users at linux-sxs.org
| http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
|
| Need to chat further on this subject? Check out #linux-users on
irc.linux-sxs.org !
|
|
|

- --
Matthew Carpenter
matt at eisgr.com                          http://www.eisgr.com/

Enterprise Information Systems
* Network Server Appliances
* Security Consulting, Incident Handling & Forensics
* Network Consulting, Integration & Support
* Web Integration and E-Business
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCB+/Hso9lqh4MragRAnaQAKCv7TB6t4aMPYb7rmjv9HT399aSKgCgws6r
5Xs6Si2mSCUTZGPYY07gtYo=
=mPaf
-----END PGP SIGNATURE-----



More information about the Linux-users mailing list