OpenBSD installation notes for an IBM Thinkpad T43
I compiled my notes in this little howto during the installation of OpenBSD on my IBM Thinkpad T43. This procedure will normally work with most recent Thinkpad models.
1. Prepare the hard drive
- First, be sure your data are backed up!
Then, you must resize your windows partition without toutching the IBM rescue and recovery partition. You can use for example Partition Magic. Shrink the windows partition at your needs, and apply the modifications.
2. Bios configuration
- Now, set the correct time in the BIOS, ie. the UTC time. Other stupid operating systems consider the BIOS time as your local time, but this is not what you want.
- Set the IBM Predesktop Area to "Secure".
3. Installing OpenBSD
- Read carefully the section 5 of the faq. Just the most important things are detailed hier.
- Start the installation process.
- Don't use all the disk space for openbsd. Answer no or hit "enter" at the following stage:
Do you want to use *all* of wd0 for OpenBSD? [no] Enter
|
- Create your OpenBSD partition with fdisk.
- Once this is done, flag the OpenBSD partition as active, and save the changes:
fdisk:*1> f 1
Partition 1 marked active.
fdisk:*1> w
Writing MBR at offset 0.
wd0: no disk label
fdisk: 1> q
|
Note that to flag the disk, I assume that your OpenBSD partition has id 1.
- Label your newly created primary partition with disklabel.
- Follow the installation according to your needs. Once this is done, the system will reboot under OpenBSD.
- Log in as root, and save your PBR:
# dd if=/dev/rwd0a of=/openbsd.pbr bs=512 count=1
|
- Copy the saved PBR on an accessible media on windows (usb disk, key, ...) or an FTP directory.
-
Run fdisk and flag your windows partition:
# fdisk -eu wd0
Enter 'help' for information
fdisk: 1> f 0
Partition 0 marked active.
fdisk: *1> w
Writing MBR at offset 0.
fdisk: 1> q
|
- Reboot the system, it will reboot on windows.
- Copy openbsd.pbr into c:\
-
Edit your C:\BOOT.INI and add the line:
- Reboot the system, done : you can now choose which OS to use.
- The 'Access IBM' button should work.
4. Nice things to do after install
- Enable apmd(8), in cool running mode:
# echo 'apmd_flags="-C"' >> /etc/rc.conf.local
|
You can now retrieve informations from apmd(8) using apm(8):
$ apm
Battery state: high, 98% remaining, 0 minutes life estimate
A/C adapter state: connected
Performance adjustment mode: cool running (1867 MHz)
|
# echo 'hotplugd_flags=""' >> /etc/rc.conf.local
|
Note that you must add your scripts in /etc/hotplug/. Read the hotplugd(8) man page for a sample.
- Check sensors with sysctl(8):
$ sysctl hw.sensors
hw.sensors.0=aps0, X_ACCEL, 453 raw
hw.sensors.1=aps0, Y_ACCEL, 433 raw
hw.sensors.2=aps0, X_VAR, 453 raw
hw.sensors.3=aps0, Y_VAR, 433 raw
hw.sensors.4=aps0, Temp 1, 53.00 degC
hw.sensors.5=aps0, Temp 2, 53.00 degC
hw.sensors.6=aps0, Keyboard Active, 0 raw
hw.sensors.7=aps0, Mouse Active, 0 raw
hw.sensors.8=aps0, Lid Open, 1 raw
hw.sensors.9=aps0, unknown, 7 raw
|