Advertisement
Guest User

Untitled

a guest
Aug 18th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.15 KB | None | 0 0
  1. [code] Device Boot Start End Blocks Id System
  2. /dev/sda1 63 560732759 280366348+ 83 Linux
  3. /dev/sda2 560732760 594292544 16779892+ 83 Linux
  4. /dev/sda3 * 594292736 616675327 11191296 7 HPFS/NTFS/exFAT
  5. /dev/sda4 616675328 625141759 4233216 5 Extended
  6. /dev/sda5 616677376 625141759 4232192 82 Linux swap / Solaris
  7.  
  8. menu.lst
  9. [/code]
  10. [code]# (0) Arch Linux
  11. title Arch pf
  12. root (hd0,1)
  13. kernel /boot/vmlinuz-linux-pf resume=swap:/dev/sda5 ro quiet loglevel=3 vga=361 sr0=ide-scsi pcie_ports=native root=/dev/sda2
  14. initrd /boot/initramfs-linux-pf.img[/code]
  15.  
  16. /etc/hibernate/tuxonice.conf
  17. [code]# Example tuxonice.conf file.
  18. #
  19. # See hibernate.conf(5) for help on the configuration items.
  20. #
  21. # NOTE: TuxOnIce is an improved version of suspend-to-disk which currently
  22. # requires patching your kernel. For more information, see www.tuxonice.net
  23. #
  24. # If you do not wish to patch your kernel but still be able to suspend to
  25. # disk, see disk.conf instead.
  26.  
  27. ### TuxOnIce
  28. UseTuxOnIce yes
  29. Reboot no
  30. EnableEscape yes
  31. DefaultConsoleLevel 1
  32. Compressor lzo
  33. Encryptor none
  34. ProcSetting extra_pages_allowance 7500
  35. ProcSetting no_multithreaded_io 1
  36. # ImageSizeLimit 200
  37.  
  38. ## useful for initrd usage:
  39. SuspendDevice swap:/dev/sda5
  40.  
  41. ## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for poweroff
  42. # PowerdownMethod 5
  43.  
  44. ## Any other /proc/software_suspend setting can be set like so:
  45. # ProcSetting expected_compression 50
  46.  
  47. ## Or traditionally like this:
  48. # TuxOnIceAllSettings 0 0 2056 65535 5
  49.  
  50. ## Or even from the results of hibernate --save-settings with this:
  51. # TuxOnIceAllSettingsFile /etc/hibernate/suspend-settings.conf
  52.  
  53. ## For filewriter:
  54. # FilewriterLocation /suspend_file 1000
  55. # VerifyFilewriterResume2 yes
  56.  
  57. ## Specify a userui like this:
  58. # ProcSetting userui_program /usr/local/sbin/tuxoniceui_text
  59.  
  60. # Scale CPU to full speed to make sure we suspend as fast as possible.
  61. FullSpeedCPU yes
  62.  
  63. Include common.conf
  64. [/code]
  65.  
  66. /etc/hibernate/common.conf
  67. [code]# Configuration options common for suspending to disk or RAM.
  68. # Options are not case sensitive.
  69. #
  70. # See hibernate.conf(5) for help on the configuration items.
  71.  
  72. ##############################################################################
  73. ### Some global settings
  74. ##############################################################################
  75.  
  76. Verbosity 0
  77. LogFile /var/log/hibernate.log
  78. LogVerbosity 1
  79. # LogTimestamp yes
  80. # AlwaysForce yes
  81. # AlwaysKill yes
  82. # HibernateVT 15
  83. Distribution arch
  84. OnSuspend 00 sync; echo 3 > /proc/sys/vm/drop_caches
  85. # XDisplay :0
  86.  
  87. ##############################################################################
  88. ### Scriptlets
  89. ### Scriptlets provide support for doing all sorts of things before and after
  90. ### suspending. The defaults settings here should work for most people, but
  91. ### you may wish to edit these to taste. Consult "hibernate -h" for help on
  92. ### the configuration settings.
  93. ##############################################################################
  94.  
  95. ### bootsplash
  96. ## If you use bootsplash, also enabling SwitchToTextMode is recommended if
  97. ## you use X, otherwise you may end up with a garbled X display.
  98. # Bootsplash on
  99. # BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg
  100. SwitchToTextMode yes
  101.  
  102. ### clock
  103. SaveClock restore-only
  104. #DirectIsa
  105.  
  106. ### devices
  107. # IncompatibleDevices /dev/dsp /dev/video*
  108.  
  109. ### diskcache
  110. # DisableWriteCacheOn /dev/hda
  111.  
  112. ### fbsplash (enable SwitchToTextMode if you use this)
  113. # FBSplash on
  114. # FBSplashTheme tuxonice
  115.  
  116. ### filesystems
  117. #Unmount /mnt/win
  118. # UnmountFSTypes smbfs nfs
  119. UnmountGraceTime 1
  120. #Mount /mnt/win
  121.  
  122. ### grub
  123. # ChangeGrubMenu yes
  124. # GrubMenuFile /boot/grub/menu.lst
  125. # AlternateGrubMenuFile /boot/grub/menu-suspended.lst
  126. # BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak
  127.  
  128. # see http://bugs.debian.org/317479
  129. # RemountXFSBoot yes
  130.  
  131. ### hardware_tweaks
  132. # IbmAcpi yes
  133. # RadeonTool yes
  134. # Runi915resolution yes
  135. # FullSpeedCPU yes
  136.  
  137. ### lilo
  138. # EnsureLILOResumes yes
  139.  
  140. ### lock (generally you only want one of the following options)
  141. ## For console you need vlock available.
  142. ## For x you need xscreensaver-command-command available.
  143. ## For gnome you need gnome-screensaver-command available.
  144. ## For kde you need dcop, kscreensaver available.
  145. ## For XAuto you need xautolock available.
  146. ## For Xtr you need xtrlock available.
  147. ## For Freedesktop (for example KDE4) you need dbus-send available
  148. # LockConsoleAs root
  149. # LockXScreenSaver yes
  150. # LockGnomeScreenSaver yes
  151. # LockFreedesktop
  152. # LockKDE yes
  153. # LockXLock yes
  154. # LockXAutoLock yes
  155. # LockXtrLock yes
  156.  
  157. ### misclaunch
  158. # OnSuspend 20 echo "Good night!"
  159. # OnResume 20 echo "Good morning!"
  160.  
  161. ### modules
  162. # UnloadModules snd_via82cxxx usb-ohci
  163. # UnloadAllModules yes
  164. #UnloadBlacklistedModules yes
  165. LoadModules auto
  166. # LoadModulesFromFile /etc/modules
  167.  
  168. ### modules-gentoo
  169. # GentooModulesAutoload yes
  170.  
  171. ### network
  172. # DownInterfaces eth0
  173. # UpInterfaces auto
  174.  
  175. ### networkmanager
  176. # EnableNMReconnect yes
  177.  
  178. ### pause_audio
  179. # MuteAudio yes
  180. # PauseAudio yes
  181.  
  182. ### pcmcia
  183. # EjectCards yes
  184.  
  185. ### programs
  186. # IncompatiblePrograms xmms
  187.  
  188. ### services
  189. # RestartServices laptop_mode anacron
  190. # StopServices alsasound
  191. # StartServices aumix
  192.  
  193. ### vbetool
  194. #EnableVbetool yes
  195. #RestoreVbeStateFrom /var/lib/vbetool/vbestate
  196. #VbetoolPost yes
  197. #RestoreVCSAData yes
  198.  
  199. ### xhacks
  200. #SwitchToTextMode yes
  201. #UseDummyXServer yes
  202. #DummyXServerConfig xorg-dummy.conf
  203.  
  204. ### xstatus
  205. ## This can be set to gnome, kde or x:
  206. ## For gnome you need zenity available.
  207. ## For kde you need dcop, kstart, kdialog available.
  208. ## For x you need to have xosd OR xmessage available.
  209. # XStatus gnome
  210. # XmessageDisable yes
  211. # XSuspendText Preparing to suspend...
  212. # XResumeText Resuming from suspend...
  213. ## When using XStatus x, and you have xosd installed:
  214. # XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50
  215.  
  216. ### xbacklight
  217. # BackLight yes
  218.  
  219. ### gaim
  220. ## You need to have dbus, gaim_remote available.
  221. # LogoutGaim yes
  222. # GaimRestoreStatus yes
  223. # GaimLogoutMessage Hibernating
  224. # GaimLoginMessage Back from hibernation
  225.  
  226. ### pidgin
  227. # LogoutPidgin yes
  228. # PidginRestoreStatus yes
  229. # PidginLogoutMessage Hibernating - bye!
  230. # PidginLoginMessage I'm back!
  231.  
  232. ### SSH and PGP keys
  233. # AgentsClearGPG yes
  234. # AgentsClearSSH yes
  235.  
  236. ### Virtualbox
  237. # SuspendVirtualbox yes
  238. [/code]
  239.  
  240. /etc/mkinitcpio.conf
  241. [code]# vim:set ft=sh
  242. # MODULES
  243. # The following modules are loaded before any boot hooks are
  244. # run. Advanced users may wish to specify all system modules
  245. # in this array. For instance:
  246. # MODULES="piix ide_disk reiserfs"
  247. MODULES="lzo"
  248.  
  249. # BINARIES
  250. # This setting includes, into the CPIO image, and additional
  251. # binaries a given user may wish. This is run first, so may
  252. # be used to override the actual binaries used in a given hook.
  253. # (Existing files are NOT overwritten is already added)
  254. # BINARIES are dependancy parsed, so you may safely ignore libraries
  255. BINARIES=""
  256.  
  257. # FILES
  258. # This setting is similar to BINARIES above, however, files are added
  259. # as-is and are not parsed in anyway. This is useful for config files.
  260. # Some users may wish to include modprobe.conf for custom module options,
  261. # like so:
  262. # FILES="/etc/modprobe.conf"
  263. FILES=""
  264.  
  265. # HOOKS
  266. # This is the most important setting in this file. The HOOKS control the
  267. # modules and scripts added to the image, and what happens at boot time.
  268. # Order is important, and it is recommended that you do not change the
  269. # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
  270. # help on a given hook.
  271. # 'base' is _required_ unless you know precisely what you are doing.
  272. # 'udev' is _required_ in order to automatically load modules
  273. # 'filesystems' is _required_ unless you specify your fs modules in MODULES
  274. # Examples:
  275. # This setup specifies all modules in the MODULES setting above.
  276. # No raid, lvm2, or encrypted root is needed.
  277. # HOOKS="base"
  278. #
  279. # This setup will autodetect all modules for your system and should
  280. # work as a sane default
  281. # HOOKS="base udev autodetect pata scsi sata filesystems"
  282. #
  283. # This is identical to the above, except the old ide subsystem is
  284. # used for IDE devices instead of the new pata subsystem.
  285. # HOOKS="base udev autodetect ide scsi sata filesystems"
  286. #
  287. # This setup will generate a 'full' image which supports most systems.
  288. # No autodetection is done.
  289. # HOOKS="base udev pata scsi sata usb filesystems"
  290. #
  291. # This setup assembles an pata raid array with an encrypted root FS.
  292. # Note: See 'mkinitcpio -H raid' for more information on raid devices.
  293. # HOOKS="base udev pata raid encrypt filesystems"
  294. #
  295. # This setup loads an lvm2 volume group on a usb device.
  296. # HOOKS="base udev usb lvm2 filesystems"
  297. HOOKS="base udev pata scsi sata resume filesystems"
  298.  
  299. # COMPRESSION
  300. # Use this to compress the initramfs image. With kernels earlier than
  301. # 2.6.30, only gzip is supported, which is also the default. Newer kernels
  302. # support gzip, bzip2 and lzma.
  303. #COMPRESSION="gzip"
  304. #COMPRESSION="bzip2"
  305. #COMPRESSION="lzma"
  306. [/code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement