File: lphdisk.8

package info (click to toggle)
lphdisk 0.9.1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 192 kB
  • ctags: 237
  • sloc: ansic: 1,789; makefile: 54
file content (131 lines) | stat: -rw-r--r-- 3,927 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
.\" Process this file with
.\" groff -man -Tascii foo.1
.\"
.TH lphdisk 8 "23 August 2001" Linux "Linux System Administrator's Manual"
.SH NAME
lphdisk \- prepare a hibernation partition for NoteBIOS suspend-to-disk
.SH SYNOPSIS
.B lphdisk
[
.B -h, --help
] [
.B -p, --probeonly
] [
.B -q, --quiet
] [
.B -d, --debug
] [
.B -n, --nowrite
] [
.B -f, --force
] [
.I device
]
.SH DESCRIPTION
.B lphdisk
prepares a hard disk for use with APM "Suspend-to-disk" features, as
implemented on laptop computers running Phoenix NoteBIOS. Currently, the
utility only formats an already created partition set to type 
.B A0
with a disk partitioning utility such as
.BR fdisk (8).
.I device
should be a full-disk device (such as
.B /dev/hda
or
.B /dev/sda
) and defaults to
.B /dev/hda .
.PP
Since most laptops only have one IDE hard disk, and all known NoteBIOS 
configurations will only look to the first bootable hard drive anyway, the
default value for
.I device
is correct for most cases.
.PP
In order to properly prepare a hard disk for suspend-to-disk on your laptop,
you will need to make sure there is enough space free to accommodate an
additional hibernation partition. The hibernation partition must be a primary
partition (1-4), and the required size will be determined by the amount of
physical and video RAM in your laptop. To determine the size you need to make
the partition, the following calculation is a good rule of thumb:
.sp
.RS
.B physical RAM
+
.B video memory
+ 2MB
.RE
.sp
Alternately, you can run
.B lphdisk --probeonly
to have lphdisk attempt to determine your memory requirements and calculate a reccomended partition size for you.
.PP
Having created a primary partition of the proper size using a disk partitioning
utility, you should set it to type 
.B A0
hex (identified by 
.BR fdisk
as "IBM ThinkPad Hibernation", though "Phoenix NoteBIOS Hibernation" would be 
a more correct label).
.PP
.B lphdisk
will then locate, verify, and format this partition for use. At this point you
will need to reboot the system so that BIOS can locate and use the new
hibernation partition.
.PP
Once the system has been rebooted, you should be able to perform the
suspend-to-disk function of your BIOS using the normal procedure (
.B Fn-F12
on many laptops, though some differ.  The
.B apm --suspend
command may or may not also do this, depending on the BIOS).  You will
know it is working properly if you see a Phoenix NoteBIOS screen appear
indicating the progress of saving memory to disk before the machine powers off,
and a similar screen indicating resume progress when it is started up again (if
you do not see this screen, it is likely that the BIOS has entered
suspend-to-RAM mode instead, and is not successfully using the hibernate
partition).

.SH OPTIONS
.TP
.B -h, --help
show terse usage information and available options.
.TP
.B -p, --probeonly
Probe for and calculate the required partition size for the current system, but
do not attempt to format anything.
.TP
.B -q, --quiet
tells lphdisk to be quiet: the normal output messages will not be displayed.
.TP
.B -d, --debug
turns on (copious) debugging output.
.TP
.B -n, --nowrite
tells lphdisk to do everything it would normally do, but not to actually write 
data to the disk.  Useful for testing.
.TP
.B -f, --force
force lphdisk to proceed, regardless of potential problems.  
.B This option is dangerous and could cause disk corruption!
.SH TODO
Currently
.I lphdisk
only formats an already properly created hibernation partition. It is the goal
of this utility to be able to detect physical and video memory as well as
create the partition before formatting it.
.SH BUGS
No known bugs, but that doesn't mean they're not in there.  However,
functionality is not yet complete.
.SH AUTHORS
.nf
Patrick D. Ashmore <pda@procyon.com>
Alex Stewart <alex@foogod.com>
.fi
.SH "SEE ALSO"
.BR fdisk (8),
.BR cfdisk (8),
.BR sfdisk (8),
.BR apm (1)
.BR apmd (8)