2009年7月12日星期日

Slax的启动参数

什么是启动参数
Boot parameters (also known as cheatcodes) are used to affect the booting process of Slax. Some of them are common for all Linuxes, others are specific for Slax only. You can use them to disable desired kind of hardware detection, to start Slax from harddisk, to skip the login prompt and start GUI, etc.


怎样运用启动参数
Reboot your computer and wait several seconds until a nice graphical Slax logo appears with a boot menu (it's there usually for less then 9 seconds). Choose your desired menu entry and hit Tab key, which will allow you to edit the command line. Write your desired boot argument at the end of command line.

启动参数列表

acpi=off
nohotplug
nopcmcia
noagp
... disable specified hardware autodetection in the case of hangups. Your hardware won't be detected at all, you'll have to use "pcimodules" command after logging into Slax and you'll have to try to modprobe all needed modules from the list manually.

nodma
... 禁用光驱的DMA

noauto
... list harddisks in fstab with 'noauto', so you have to mount every disk manually in order to access it

nohd
... 不挂载任何磁盘

nocd
... don't mount any cdroms at all during the boot process. This may be useful if you have to wait very long time during Slax startup, when empty CDROMs keeps spinning for many minutes and don't return the NO MEDIA error immediately.

nosound
... mute sound instead of raising volume to 77%

from=/dev/hda1/Slax.iso
from=path/to/Slax.iso
from=/dev/hda1
from=path/to/Slax/
... load Slax data from different place instead of the boot device. First example will search for Slax.iso, only on hda1. Second example will search for 'path/to/Slax.iso' on all devices; the first device containing the path/file is used. Third example expects that the ISO is unpacked to hda1. Fourth example searches through all disks for a directory 'path/to/Slax' and expects content of unpacked ISO inthere.

passwd=somepass
passwd=ask
... set root's password to "somepass", or ask (with =ask) for a new password during the boot, before starting Slax (don't worry, the new password won't be shown at the login screen)

changes=/dev/device
changes=/dev/device/file.dat
changes=/path/
changes=/path/file.dat
changes=/dev/device/path/
... 在Slax启动后,所有操作变动都保存在内存中。这个参数设置一个文件或目录来保存操作变动。例如:用linux能识别的格式(eg.xfs)硬盘/dev/hda1,加上changes=/dev/hda1启动参数,就可以保存你上次操作变动,即使重新启动机器,也不会丢失变动结果。 如果你在这个磁盘上指定一个有效文件系统的文件,Slax会将它当做一个磁盘挂载,用来保存变动。此外如果你没有指定这个文件的详细路径,Slax仍会按文件名在所有分区搜索此文件。 如果你指定一个目录来保存变动,你可以使用非linux文件系统的磁盘分区,该目录下将自动生成相关文件和目录。这样你就可以在VFAT或NTFS上保存操作变动了。


toram
copy2ram
... copy all files (all required and optional modules) to RAM. You'll need at least 320MB of RAM to do this and boot Slax properly. This will slow down the boot phase but it will speed up Slax!


load=module
... load optional modules from /optional/ directory on the CD. You can use full module name (module.lzm) or you can skip the extension


noload=module
noload=module[1];module[n]
... disable loading of any modules specified. This affects all the modules on Slax CD, including /base and /modules, so using noload=kde will disable loading of all modules with 'kde' in the name. It is useful with copy2ram cheatcode, because any un-used module is not copied to ram.


debug
... enable debug mode (and start bash several times during the boot) hit Ctrl+D to continue booting

autoexec=...
autoexec=startx
autoexec=xconf;startx
autoexec=xconf;startx;reboot
... execute specified command(s) instead of Slax login. In this example, skip Slax login prompt and automatically start XWindow system. Use semicolon (;) as command separator. Slax will not reboot automatically after the command(s) finish, so if you'd like to restart, specify 'reboot' or 'poweroff' as the last command. If you need to use spaces in the commandline, replace them by ~. For example, autoexec=echo~Shutting~power;poweroff will do just like that.

标签:


评论: 发表评论

订阅 博文评论 [Atom]





<< 主页

This page is powered by Blogger. Isn't yours?

订阅 博文 [Atom]