![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
I recently bought myself a sata pcicard and 3 new harddrives. After inserting them into my box and booting my server doesnt work anymore and i noticed that somehow these new disks shows as wd0 wd1 and wd2.
Sounds like I found the problem but i dont know what to do. Been trying to find something on google and been looking into the bios if i could change the order they detect somehow, but nothing. What do i need to do? |
|
||||
|
Disks are assigned numbers in the order found by the hardware. In the case of i386 or amd64 architecture, this is determined by the BIOS.
Assuming your system is i386 or amd64: Your BIOS is in charge of picking the disk that is used to boot an OS. If you've told your BIOS to do that properly, you will get a boot> prompt. At that boot> prompt, you can issue the "machine diskinfo" command to see what hard drives are detected, and then issue a "boot" command to select the specific device with a BSD disklabel partition and kernel. If you boot in single-user mode (hint: using a "boot" command at the boot prompt with the "-s" option), you can then mount enough of your partitions to be able to run an editor and edit your /etc/fstab as necessary, and add an /etc/boot.conf if necessary. To understand both the commands you may type at the boot> prompt, and what an /etc/boot.conf file is used for, start with the boot(8) man page.
__________________
OpenBSD LiveCDs/LiveDVDs Last edited by jggimi; 21st May 2008 at 12:14 AM. |
|
|||
|
So what you are saying is 2 options:
1: make bios boot the right disk. Well i got 3 idedrives connected to the "main" ide connectors, then the motherboard has a raidcontroller(ide) which i have 2 other disks and now i just added the sata pcicard with 3 additional drives, so unless i missing something i cannot tell bios which of these 3 controllers to use "first". Any logic would add disks as wdx where x is last and not before others but hey i guess that would be to conveniant. 2: edit fstab? is it just to change it to the new assigned drive? Im very thankful for help but telling me to read manpages without telling me what i need understand/fix. |
|
||||
|
Let's step back, then, and first look at the boot process. Simplified:
At this point, you will need to figure out what device you have booted, and manually mount partitions, and then edit your /etc/fstab to point to that device. You will need to mount your root partition "/", and depending on how you have partitioned OpenBSD, you will need to mount "/usr" and perhaps "/var" in order to use a text editor such as vi(1) or mg(1).
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Well its fun to realize after a couple of hours that i dont have /wd5* or higher under /dev/ so i assume solving how to add them will take a giant leap forward
|
|
||||
|
# cd /dev
# sh MAKEDEV wd5
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
If this works for the OP, great! However, if there are errors generated when running the MAKEDEV script, the solution is to explicitly specify the path:
Code:
# cd /dev # sh ./MAKEDEV
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Disk geometry for Seagate disk | phreud | FreeBSD Installation and Upgrading | 5 | 8th November 2008 09:51 PM |
| Adding drives annoys OpenBSD. | diw | OpenBSD General | 4 | 4th September 2008 02:14 AM |
| Adding a separate /home | JMJ_coder | NetBSD General | 2 | 29th August 2008 10:45 AM |
| Dump dates wrong? | cwhitmore | FreeBSD General | 2 | 17th August 2008 08:49 PM |
| Having trouble adding 7.0 to GRUB 0.97 | Arenlor | FreeBSD General | 4 | 26th June 2008 01:02 AM |