LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-19-2005, 08:32 PM   #1
hoffmanyew
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Rep: Reputation: 15
Question solaris bootloader


Hello guys! Is there anyone out there know how to remove solaris bootloader? cause i want to use other distro and didn't manage to solaris bootloader. help please!
 
Old 05-19-2005, 08:50 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You can overwrite any bootloader by any other one.
 
Old 05-19-2005, 09:01 PM   #3
hoffmanyew
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
i know that. but the thing is i can't remove it. any idea why and how to resolve this issue. errors state couldn't find mbr.
 
Old 05-19-2005, 09:08 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You cannot "remove" a bootloader, that doesn't make sense.
What you can do is overwrite it by something else.
 
Old 05-20-2005, 06:49 AM   #5
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Grab a linux CD such as a live cd (knoppix, slax, et all) or even the slackware install cd and issue the command:
Code:
dd if=/dev/zero of=/dev/hdx bs=512 count=1
where X is the letter for the hard disk ie /dev/hda = IDE primary master /dev/hdb = IDE primary slave

Alternativly, you can boot up off a DOS disk with the fdisk utility on it and issue the DOS command:
Code:
fdisk /mbr
This is assuming you are talking about an x86 PC.

If you are still having problems, could you please explain more of what you are trying or have tried to do that isn't working?
 
Old 05-20-2005, 02:12 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
With your dd command, the partition table will be cleared
Quote:
An MBR has 3 parts:

1. (000000 - 0001bd) The boot code which is 446 bytes long
2. (0001be - 0001fd) The partition table which is 64 bytes long
3. (0001fe - 0001ff) The boot code signature of 55aa which is 2 bytes long and goes at the very end
see http://www.cpqlinux.com/mbr.html
Try this instead :
Code:
dd if=/dev/zero of=/dev/hdx bs=446 count=1
Thats way you just overwrite the disk space where the bootloader is
 
Old 05-20-2005, 02:29 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
And of course, this can be done under Solaris too, the device name is the only part differing:
Code:
dd if=/dev/zero of=/dev/dsk/cx[ty]dzp0 bs=446 count=1
With
x = controler number (starting from 0)
y = target for SCSI and SCSI emulated drives
z = disk number on that controler (from 0 too)

It would help if you explain what you mean with:
Quote:
cause i want to use other distro and didn't manage to solaris bootloader.
Blanking the Solaris boot loader as suggested is very unlikely to fix the problem you are trying to share with us.
 
Old 05-20-2005, 04:58 PM   #8
Maidros
Member
 
Registered: Jan 2004
Location: Haifa, Israel
Distribution: Debian, FreeBSD, Solaris
Posts: 101

Rep: Reputation: 15
Re: solaris bootloader

Quote:
Originally posted by hoffmanyew
Hello guys! Is there anyone out there know how to remove solaris bootloader? cause i want to use other distro and didn't manage to solaris bootloader. help please!
You could easily boot with LILO or grub - installing them is very easy and there are quite a few threads describing how to boot using them.
Regards,
Maidros
 
Old 05-20-2005, 09:26 PM   #9
JrLz
Member
 
Registered: Mar 2004
Location: Jakarta
Posts: 164

Rep: Reputation: 30
yup, just don't get why you want to remove it.....
you can easily rewrite it with your distro's one.....
you can boot your distro's installation right??
 
Old 05-21-2005, 08:03 AM   #10
hoffmanyew
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Smile

thanks for all your replies. i managed to used to freebsd cd to remove the bootloader. Apparently, the bootloader cannot be removed by using the windows fdisk /mbr or fixboot or fixmbr or even linux cd to remove it. So, i though of using freebsd to remove it by using sysinstall / removable tool (include in the cd) since i couldn't figure anyway to solve. Btw, i think freebsd and solaris are very closed to each others since both are from pure "unixing" and that's why the both cd can be used to repair the bootloader (i guess so).
 
Old 05-21-2005, 11:09 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I would be interested to know how you were unable to use the dd command to blank the mbr with either linux or solaris ...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
great solaris website for newbies http://solaris-x86.org/ feetyouwell Solaris / OpenSolaris 2 12-06-2006 12:14 AM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
Windows and FC3 and Solaris V10 and the bootloader zillah Fedora - Installation 3 07-06-2005 09:31 AM
I need create bootloader. How make bootloader? swipple Fedora - Installation 3 01-23-2005 12:22 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:21 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