How to remove boot manager in freebsd 8.0 ?

Installing and upgrading FreeBSD.

How to remove boot manager in freebsd 8.0 ?

Postby riku » 13 Apr 2010, 09:24

I can not use this command

Code: Select all
fdisk -B -b /boot/boot0 ad0


error info

Code: Select all
fdisk: Class not found
fdisk: Faild to write sector zero
User avatar
riku
Junior Member
 
Posts: 14
Joined: 06 Apr 2010, 09:05

Postby Bunyan » 13 Apr 2010, 09:48

You'll never do that as long as the filesystems are mounted (fdisk operates on unmounted filesystems only).
You need a FreeBSD LiveFS CD.
I am not sure whether it works in single-user mode.
User avatar
Bunyan
Member
 
Posts: 143
Joined: 23 Jan 2009, 20:51

Postby vermaden » 13 Apr 2010, 09:55

@riku

Try that:
Code: Select all
# sysctl kern.geom.debugflags=16
# kldload geom_mbr
# fdisk -B -b /boot/boot0 ad0
# sysctl kern.geom.debugflags=0
# kldunload geom_mbr


@Bunyan

fdisk(1) does not operate on filesystems ... no matter if mounted or unmounted.
Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
[FILE][color="DarkSlateBlue"]http://vermaden.blogspot.com[/color][/FILE]
User avatar
vermaden
Giant Locked
 
Posts: 2317
Joined: 16 Nov 2008, 19:37
Location: pl_PL.lodz

Postby Bunyan » 13 Apr 2010, 10:08

Perhaps I should have said devices i.e files that are in use.
User avatar
Bunyan
Member
 
Posts: 143
Joined: 23 Jan 2009, 20:51

Postby phoenix » 13 Apr 2010, 18:04

And, depending on the version of FreeBSD, you may need to set debugflags to 17 before you can manipulate an in-use device.
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
phoenix
MFC'd
 
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada

Postby riku » 14 Apr 2010, 03:28

vermaden wrote:@riku

Try that:
Code: Select all
# sysctl kern.geom.debugflags=16
# kldload geom_mbr
# fdisk -B -b /boot/boot0 ad0
# sysctl kern.geom.debugflags=0
# kldunload geom_mbr


@Bunyan

fdisk(1) does not operate on filesystems ... no matter if mounted or unmounted.


Thanks !
User avatar
riku
Junior Member
 
Posts: 14
Joined: 06 Apr 2010, 09:05


Return to Installing & Upgrading

Who is online

Users browsing this forum: No registered users and 1 guest