Can't fdisk newly installed disks

Simon Gao gao at schrodinger.com
Tue Aug 14 12:26:31 PDT 2007


Jerry McAllister wrote:
> On Tue, Aug 14, 2007 at 11:48:29AM -0700, Simon Gao wrote:
>
>   
>> illoai at gmail.com wrote:
>>     
>>> On 13/08/07, Simon Gao <gao at schrodinger.com> wrote:
>>>   
>>>       
>>>> Hi,
>>>>
>>>> I am running into some problem with fdisk newly installed drives.
>>>>     
>>>>         
>>> . . .
>>>   
>>>       
>>>> # fdisk -BI da5
>>>> fdisk: cannot open disk /dev/da5: No such file or directory
>>>>     
>>>>         
>>> What is your securelevel?
>>>
>>> For example:
>>> % sysctl kern.securelevel
>>> kern.securelevel: -1
>>>
>>> man init for more about securelevels.
>>>
>>>   
>>>       
>> # sysctl kern.securelevel
>> kern.securelevel: 3
>>
>> Does higher security level prevent one from adding new file system?
>>     
>
> It can prevent you from making almost any changes.  A secure level of 3
> is very high and may be what you want for your production - depending
> on what you are doing, but will make any installation or development
> very difficult or impossible.
>
> ////jerry
>
>   

Thanks, Jerry.

I tried to lower secure level, but still run into similar error:

# sysctl kern.securelevel=-1
kern.securelevel: 3
sysctl: kern.securelevel: Operation not permitted

Is there other way to reduce secure level to -1 without reboot the
machine or drop into single user mode?

Simon


More information about the freebsd-questions mailing list