Re: boot0cfg -B can't work

2010-12-06 Thread Andriy Gapon
on 06/12/2010 08:48 Andrey V. Elsukov said the following:
 On 06.12.2010 3:37, Yue Wu wrote:
 Thanks, I remembered that boot0cfg in the previous version can do it
 without changing the sysctl parameter, maybe it's changed in newer
 version.
 
 It seems it was broken with r209469.
 

Something as simple as what Yue is trying to do could/should be done with gpart.
But boot0cfg has some additional features...

-- 
Andriy Gapon
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: boot0cfg -B can't work

2010-12-06 Thread Andrey V. Elsukov
On 06.12.2010 13:15, Andriy Gapon wrote:
 It seems it was broken with r209469.

 
 Something as simple as what Yue is trying to do could/should be done with 
 gpart.
 But boot0cfg has some additional features...

boot0cfg is already doing this via gpart's ioctl interface.
AFAIR, there is yet another issue with boot0cfg - it doesn't set active
attribute when `-s` option is used. But i'm not sure that it should do this.

-- 
WBR, Andrey V. Elsukov



signature.asc
Description: OpenPGP digital signature


boot0cfg -B can't work

2010-12-05 Thread Yue Wu
I want to rewrite boot0 into mbr but failed, infos follows:

# boot0cfg -B ad2
boot0cfg: write_mbr: /dev/ad2: Operation not permitted

# ls /dev/ad*
/dev/ad2 /dev/ad2s2   /dev/ad2s2b  /dev/ad2s2e  /dev/ad2s2g
/dev/ad2s1   /dev/ad2s2a  /dev/ad2s2d  /dev/ad2s2f  /dev/ad2s3

 uname -a
FreeBSD bsd.hasee.cpu 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Sun
Dec  5 19:14:33 CST 2010
r...@bsd.hasee.cpu:/usr/obj/usr/src/sys/HASEE  i386

-- 
Regards,
Yue Wu

Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: boot0cfg -B can't work

2010-12-05 Thread Yue Wu
On Sun, Dec 05, 2010 at 04:29:24PM -0800, David Wolfskill wrote:
 From boot0cfg(8):
 
 NOTE
  Protection mechanisms in the geom(4) subsystem might prevent boot0cfg
  from being able to update the MBR on a mounted disk.  Instructions for
  temporarily disabling these protection mechanisms can be found in the
  geom(4) manpage. Specifically, do a
 
sysctl kern.geom.debugflags=0x10
 
  to allow writing to the MBR, and restore it to 0 afterwards.
 

Thanks, I remembered that boot0cfg in the previous version can do it
without changing the sysctl parameter, maybe it's changed in newer
version.

-- 
Regards,
Yue Wu

Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: boot0cfg -B can't work

2010-12-05 Thread Andrey V. Elsukov
On 06.12.2010 3:37, Yue Wu wrote:
 Thanks, I remembered that boot0cfg in the previous version can do it
 without changing the sysctl parameter, maybe it's changed in newer
 version.

It seems it was broken with r209469.

-- 
WBR, Andrey V. Elsukov



signature.asc
Description: OpenPGP digital signature