Categories

LINUX
Linux - Newbie
Linux - Software
Linux - Hardware
Linux - Laptop and Netbook
Linux - Mobile
Linux - Security
Linux - Server
Linux - Desktop
Linux - Networking
Linux - Distributions
Linux - Virtualization
Linux - General
Linux - Enterprise
*BSD
Solaris / OpenSolaris
AIX
Other *NIX
Programming
Linux User Groups (LUG)
General
LQ Suggestions & Feedback
Linux - News
LQ Job Marketplace
AndroidQuestions.org
Linux - Games
Linux - Kernel
Linux - Embedded & Single-board computer
Linux - Screenshots
Linux - Wireless Networking
Linux From Scratch
Slackware
Debian
Arch
Red Hat
Mandriva
VectorLinux
Fedora
DamnSmallLinux
ROCK
MEPIS
Ubuntu
Suse/Novell
Puppy
Zenwalk
Dreamlinux
Ultra X
Incognito
Linux Mint
Sabayon
Calculate
Gentoo
Bodhi
NetSecL
Linux Deepin
Studio 13.37
Fuduntu
Mageia
LinuxQuestions.org Member Success Stories
Linux - Certification
LQ Articles Discussion
LinuxAnswers Discussion
LinuxQuestions.org Member Intro
Community Bulletin Archive
Interviews
Syndicated Linux News
LQ Job Marketplace [Archive]

Resources

Java Database
Linux
Coding
Mobile
Hardware
Software Development
Software Development
iOS,OS X
iOS,OS X
ORACLE
IBM DEVELOPER
IBM DEVELOPER
MSDN
MSDN


Tags

Suse/Novell

This Forum is for the discussion of Suse Linux.

Change active MBR from /dev/sdb to /dev/sda. How?


I currently boot from sdb (because FreeBSD killed my boot from sda). I want to restore the GRUB-MBR to sda.  I tried "man grub-install" but the SuSE people sort of castrated that alleging that YAST could do all and more, better. Fine. When I use YAST's boot loader module it offers to restore the currently active MBR of sdb. No chance to change hard disks.   Any idea how to do it (short of using "dd")?

Unless you have / on sda, a script like yast will usually think it knows better than you.    There is some gimmick in grub.comf  map hd0 hd1  map hd1 hd0    To do exactly what you say in grub-speak. I would consider inserting it, or deleting it.    as for man grub-install, forget it. Grub thinks man pages don't exist; for you are the infinitely infuriating 'info grub' pages :-). Grub & tar are the only programs that come to mind which force users to use info pages. Info pages generally seem to be a maze with no way out.

Have you tried the standard method? Open a terminal as root user enter grub to get a grub prompt (grub>) then enter:      	Quote:  	  	  		  			  				root (hd1,3)  setup (hd0)  quit  			  		  	  	  The example above should install Grub to the mbr of sda pointing to the system partition with boot/kernel file on sdb4.  You can use the geometry command at the grub prompt and compare it to your fdisk output to assure that sda is the same as (hd0), which it should be but is not always the same.  geoemtry (hd0) at a grub prompt should show you info on partitions as grub sees them for sda.  This is for Grub Legacy which I believe Opensuse still uses?

  	Quote:  	  	  		  			  				  					Originally Posted by business_kid  					  				  				Unless you have / on sda, a script like yast will usually think it knows better than you...  			  		  	  	  Well, / is on sda, but I still don't have access to sda's MBR.       	Quote:  	  	  		  			  				  					Originally Posted by business_kid  					  				  				There is some gimmick in grub.conf...  			  		  	  	  No need, I can boot. I just want my MBR restored.       	Quote:  	  	  		  			  				  					Originally Posted by business_kid  					  				  				as for man grub-install, forget it. Grub thinks man pages don't exist; for you are the infinitely infuriating 'info grub' pages :-). Grub & tar are the only programs that come to mind which force users to use info pages. Info pages generally seem to be a maze with no way out.  			  		  	  	  Well and truly spoken . As an aside: the "man" and "info" texts are identical...     @ yancek Thanks a lot. I found that out after I posted  though I didn't know the geometry command. And yes, SuSE uses GRUB-legacy, they will probably switch with 12.2. Again, thanks.    Summing up: YAST can't deliver.


Related Links

Installing and Operating OpenMOSIX in OpenSuSE 10.2
High CPU Usage in OpenSuSE 10.2
Intel PRO/Wireless 3945ABG not working!!
Upgrade opeSuSe 10.2 to 10.3 ..?
Issue with rug delete service on SuSE 10 SP1
nvidia driver breaks my x-windows. why?
Can't access Yast
Problems with latest Updates
:0 Display in loop then terminated unexpectedly
"Hard Drive Failing" message when X starts
Problem with new installation of SUSE, gcc & make not found
Suse 10.3 and Samsung 245T
Getting all black screen with Suse 10.3
My Dell C610 doesnt like suse
Imaging dissimilar disks
Locking down Gnome