[CDBUG-talk] Phoenix Bios Suspend HOWTO

D DD ddeldebb at gmail.com
Thu Sep 6 11:19:39 EDT 2007


Hi again,

This is the other thing that I messed with for awhile but it works great
now.  If you search online about using tphdisk, there are lots of people
whom are using the suspend to disk but it doesn't work all the time.  When I
first starting suspending the laptop I mistakenly thought it only worked
when the laptop was not docked.  Where I screwed up was when I made my first
MBR partition I used fdisk.  I didn't realize that fdisk does NOT create the
file system that  corresponds to the partition ID.

So yeah this is probabily a newbie problem but when I googled I never found
a webpage that showed where I went wrong.  The following example is with
Openbsd.  I don't know if it applies to the other *BSDs.

I now always start by using Windows to create the initial partition using a
Windows XP upgrade disk.  I kept changing the partition ID to 16 which is
where I went wrong.  I should have kept it to "0B" until I finished
installing OpenBSD on the second MBR partition.  I hope this helps someone
because I wasted a LOT of time on this before I got it right...


*Do not *change the MBR partition ID (*0B*) before initial OpenBSD ramdisk
install!



Disk: wd0       geometry: 10337/240/63 [156295440 Sectors]

Offset: 0       Signature: 0xAA55

         Starting       Ending       LBA Info:

 #: id    C   H  S -    C   H  S [       start:      size   ]

------------------------------------------------------------------------

 0: 0B    0   1  1 -  346 239 63 [          63:     5246577 ] Win95 FAT-32

*1: A6  347   0  1 -10336 239 63 [     5246640:   151048800 ] OpenBSD

 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused

 3: 00    0   0  0 -    0   0  0 [           0:           0 ] unused



1.) Issue the following commands:



      *# newfs_msdos –F 16 /dev/rwd0i*

*      # mount –t msdos /dev/wd0i /mnt*

*      # cd /mnt*

*      # tphdisk 2048 > save2dsk.bin*

*      # cd ~*

*      # umount /mnt*

*      # halt*



Log back in OpenBSD as root, and issue the following commands:



      *# fdisk –e wd0*

  fdisk: 1> *e 0*

         Starting       Ending       LBA Info:

 #: id    C   H  S -    C   H  S [       start:      size   ]

------------------------------------------------------------------------

 0: 0B    0   1  1 -  346 239 63 [          63:     5246577 ] Win95 FAT-32

  Partition id ('0' to disable)  [0 - FF]: [0] (? for help) *16*

Do you wish to edit in CHS mode? [n] *[Enter]*

offset: [63] *[Enter]*

size: [5246577] *[Enter]*

fdisk:*1> *w*

Writing MBR at offset 0.

fdisk: 1> *q*



      *# fdisk –u wd0*

 0: 16    0   1  1 -  346 239 63 [          63:     5246577 ] OS/2 hidden

*1: A6  347   0  1 -10336 239 63 [     5246640:   151048800 ] OpenBSD

 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused

 3: 00    0   0  0 -    0   0  0 [           0:           0 ] unused



*      -----------------------------------------------------*

*      --------ATTENTION – UPDATING MASTER BOOT RECORD -----*

*      -----------------------------------------------------*



Do you wish to write new MBR? [n] *y*

      *# halt*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nycbug.org/pipermail/cdbug-talk/attachments/20070906/41fa39b7/attachment.html>


More information about the CDBUG-talk mailing list