![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Hi everyone,
I have added HD to my system. But here is what i get: Code:
# fdisk -i wd0 Do you wish to write new MBR and partition table? [n] y fdisk: wd0: Operation not permitted |
|
||||
|
Several guesses, since we don't have a dmesg or any other information:
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Quote:
wd0 is new HD, I am booted from wd1 right now. I run OpenBSD on real server. What other info do you need ? maybe logs etc. ? Quote:
Last edited by White; 26th August 2009 at 05:14 PM. |
|
||||
|
You have *still* not supplied a dmesg.
![]() According to the limited information you've supplied so far, this is a used drive (with a valid MBR on it), and you failed to write to the drive while running fdisk as root. Assuming that the above is true, wd0 is configured to be read-only. This is either by pin configuration on the drive electronics, or a setting in your BIOS, or some other hardware issue, such as a drive controller or drive configuration problem. It is not an ATA security setting, as you can read the MBR sector. Check your BIOS settings. Check your pin configuration on the drive. Post a dmesg. Post the output of # atactl wd0 identify.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Quote:
Drive was working on other server, I just took it out of other server, that's why there is FreeBSD partition ... Quote:
Quote:
|
|
|||
|
Can you please post the output of the following commands?
$ sysctl kern.securelevel$ ls -l /dev/{,r}wd0?Thanks. |
|
||||
|
OK, now we're getting somewhere:
Code:
wd0 at pciide0 channel 0 drive 0: <ST340015A> Here's something to note, though Googling tends to indicate this warning may be ignored. It is produced during PIIX compatibility handling in src/sys/dev/pci/pciide.c, and may be specific to the 82801FB chipset on your server's motherboard: Code:
pciide0: channel 1 ignored (disabled) Please test with ACPI disabled -- it's a guess, but ACPI compatability issues can sometimes get in the way of proper hardware function. Boot with -c, and at the UKC prompts type "disable acpi" and "quit".
__________________
OpenBSD LiveCDs/LiveDVDs |
|
||||
|
Quote:
Quote:
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
@jggimi: That pciide0 warning indicates that the second channel isn't in use.. an IDE controller has 2 channels, a channel can have 2 devices (master/slave).
Code:
wd0 at pciide0 channel 0 drive 0: <ST340015A>
|
|
||||
|
Re: IDE channels -- yes, one may have one or both empty and unused. But, as I understand pciide.c you only get that particular warning message for controllers which are Intel 82371-compatible. That section of the code is from 1999, so it's been that way a long time.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Quote:
Quote:
![]() Quote:
![]() EDIT: I'm finding that warning message in at least 10 different chipset handlers in pciide.c.. guess the developers find it useful under some circumstances. Last edited by BSDfan666; 26th August 2009 at 07:22 PM. |
|
|||
|
Quote:
Quote:
Quote:
|
|
|||
|
Then kern.securelevel=2 is your problem, you cannot write directly to raw disk device with this secure level.
As for the modified kernel confession.. this is frowned upon in the OpenBSD community, especially when asking for support. Either remove the securelevel setting in your initialization scripts, or boot into single user mode to prepare this disk. |
|
||||
|
Great catch, Bsdfan! (as usual
)And thanks for the clarification re: level 2 I/O.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Quote:
That did it
|
|
||||
|
Quote:
Editing GENERIC complicates the upgrade process, since GENERIC changes constantly -- on i386, there have been 688 changes to GENERIC to-date. You may miss newer source required for the next -release, or make some other mistake due to local changes. The best practice is to copy GENERIC to another file, WHITE, for example, then build WHITE kernels. Using GENERIC for custom kernels may hide possible problems from someone trying to diagnose a problem you report. Custom kernels are fine, if you have the appropriate knowledge to use them properly, and a need that isn't met by GENERIC. Just don't report problems with them unless you can re-create the problem with an actual GENERIC kernel.
__________________
OpenBSD LiveCDs/LiveDVDs |
![]() |
| Thread Tools | |
| Display Modes | |
|
|