希望前辈们能讲一下如何将Slax6以Real形式装入硬盘
听说以前Slax5提供了装入硬盘的脚本,但在Slax6中取消了。我晚上试着装入硬盘,就象其它的Linux一样,虽然也成功了,但不是很满意,智能化程度不高。
我是个新手,对Linux了解的不多,希望前辈们能提携一下。
谢谢了。
我说一下我的安装。
我在网上找到一个脚本,这是Slax6的Real安装脚本(脚本代码在2、3楼,这论坛有限制,不能在一个贴里字数太多),在安装完毕后,复制vmlinuz到安装分区的/boot目录下,然后再C盘根下的grub配置中添加了: title SLAX-5
root (hd0,9)
kernel /boot/vmlinuzrw root=/dev/hda10实现了多重启动到硬盘上的Slax6,启动中有个错误提示,没注意到,手指头点的太快,一晃就过去了,只瞟了一眼说给我修正了。:oops: 最终启动到了命令行状态。
slax6.1.2官方提供的版本安装到硬盘后占用936M,不算大。但占用CPU资源不小,我本本的风扇一直呼呼的吹啊,心疼死俺。同样MEPIS8也使用KDE,CPU就很安静,只要我不搞大动作,风扇基本上不吹。
[ 本帖最后由 蝌蚪 于 2009-10-27 03:50 编辑 ] Slax6安装脚本<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>Form1</class>
<widget class="Dialog">
<property name="name">
<cstring>Form1</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>380</width>
<height>380</height>
</rect>
</property>
<property name="caption">
<string>SLAX installer</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
<string>@StatusBar1.setText("Wait please, searching for SLAX CD...")
@ComboBox1.insertItems(@exec('cat /proc/mounts |grep -v loop |grep "/mnt" |grep -v "/mnt/live" |grep -v "/mnt/_" |grep -v "/mnt/cdrom_" |cut -d " " -f 2 |grep -v "/proc" | egrep -v "^/dev|^/sys|^proc|^/\$"'),0)
@ComboBox2.insertItems(@exec('fdisk -l |egrep -o "/dev/+" | uniq'),0)
@ComboBox3.insertItems(@exec('find /mnt/live/memory -maxdepth 2-name livecd.sgn |xargs -r -n 1 dirname'),0)
@ComboBox3.insertItems(@exec('find /mnt -maxdepth 2-name livecd.sgn |xargs -r -n 1 dirname'),0)
@ComboBox3.insertItems(@exec('find /boot -maxdepth 1-name livecd.sgn |xargs -r -n 1 dirname'),0)
@StatusBar1.setText("Select target and click Go...")
@CloseButton1.setVisible(false)
</string>
<string></string>
</stringlist>
</property>
<widget class="ComboBox">
<property name="name">
<cstring>ComboBox1</cstring>
</property>
<property name="geometry">
<rect>
<x>181</x>
<y>108</y>
<width>188</width>
<height>21</height>
</rect>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="populationText">
<string></string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@widgetText</string>
</stringlist>
</property>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>Layout14</cstring>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>70</y>
<width>150</width>
<height>100</height>
</rect>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="Label">
<property name="name">
<cstring>Label6_2</cstring>
</property>
<property name="text">
<string>Source (SLAX CD):</string>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label2</cstring>
</property>
<property name="text">
<string>Install SLAX to:</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
</stringlist>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label6</cstring>
</property>
<property name="text">
<string>Write MBR to:</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
</stringlist>
</property>
</widget>
</vbox>
</widget>
<widget class="ComboBox">
<property name="name">
<cstring>ComboBox2</cstring>
</property>
<property name="geometry">
<rect>
<x>181</x>
<y>140</y>
<width>188</width>
<height>21</height>
</rect>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@widgetText</string>
</stringlist>
</property>
</widget>
接上篇,脚本没写完 <widget class="ComboBox">
<property name="name">
<cstring>ComboBox3</cstring>
</property>
<property name="geometry">
<rect>
<x>181</x>
<y>76</y>
<width>188</width>
<height>21</height>
</rect>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@widgetText</string>
</stringlist>
</property>
</widget>
<widget class="ButtonGroup">
<property name="name">
<cstring>ButtonGroup1</cstring>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>180</y>
<width>360</width>
<height>80</height>
</rect>
</property>
<property name="title">
<string>Installation method</string>
</property>
<widget class="RadioButton">
<property name="name">
<cstring>RadioButton2</cstring>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>275</width>
<height>19</height>
</rect>
</property>
<property name="text">
<string>Real (&3500 MB required)</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>exit</string>
<string>@forEach(dir, @exec(ls -1 / | egrep -v "^dev"| egrep -v "^proc" | egrep -v "^mnt" | egrep -v "^boot"| egrep -v "^sys"| egrep -v "^tmp" ))
@ProgressBar1.setMaximum(@dir_count)
@StatusBar1.setText(copying /@dir ...)
@exec(cp --preserve=all -R /@dir @ComboBox1/)
@ProgressBar1.setText(@dir_index)
@end
@exec("mkdir -p @ComboBox1/{tmp,boot,mnt,dev,sys,proc}")
@exec(cd @ComboBox1/ && cat etc/fstab |egrep -o "/mnt/+" | cut -b 2- |xargs mkdir)
@exec("device=$(cat /proc/mounts |grep @ComboBox1 |cut -d " " -f 1) && echo "$device / auto defaults 1 1" >@ComboBox1/etc/fstab && cat /etc/fstab | grep -v $device >>@ComboBox1/etc/fstab")
@exec("rm @ComboBox1/etc/mtab")
@exec("cp @ComboBox3/boot/vmlinuz @ComboBox1/boot")
@exec("cp --preserve -R /dev/null @ComboBox1/dev")
@exec("cp --preserve -R /dev/console @ComboBox1/dev")
@exec("mount -o bind /dev @ComboBox1/dev")
@exec("mount -t proc proc @ComboBox1/proc")
@exec(echo "
boot = @ComboBox2
prompt
timeout = 20
change-rules
reset
vga = normal
image = /boot/vmlinuz
root = current
label = SLAX
read-only
" >@ComboBox1/etc/lilo.conf)
@StatusBar1.setText("Synchronizing, wait please...")
@exec("sync")
@StatusBar1.setText("Installing boot loader LILO...")
@exec("lilo -r @ComboBox1 -s /dev/null 2>/var/log/slax-lilo-install.log")
@exec("umount @ComboBox1/dev")
@exec("umount @ComboBox1/proc")
</string>
</stringlist>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label5</cstring>
</property>
<property name="geometry">
<rect>
<x>30</x>
<y>40</y>
<width>275</width>
<height>29</height>
</rect>
</property>
<property name="text">
<string>- Install SLAX like real Linux, decompressed
- to harddisk in desktop computer</string>
</property>
</widget>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>Layout12</cstring>
</property>
<property name="geometry">
<rect>
<x>10</x>
<y>270</y>
<width>360</width>
<height>63</height>
</rect>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
</property>
<widget class="StatusBar">
<property name="name">
<cstring>StatusBar1</cstring>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
</stringlist>
</property>
</widget>
<widget class="ProgressBar">
<property name="name">
<cstring>ProgressBar1</cstring>
</property>
<property name="lineWidth">
<number>1</number>
</property>
<property name="progress">
<number>0</number>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
</stringlist>
</property>
</widget>
</vbox>
</widget>
<widget class="ExecButton">
<property name="name">
<cstring>ExecButton1</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>290</x>
<y>340</y>
<width>80</width>
<height>29</height>
</rect>
</property>
<property name="text">
<string>&Install</string>
</property>
<property name="populationText">
<string></string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>
@ExecButton1.setText("Wait...")
@StatusBar1.setText("Counting all files, please wait...")
@RadioButton2
@StatusBar1.setText("All done! click Close button.")
@ExecButton1.setVisible(false)
@CloseButton1.setVisible(true)
</string>
</stringlist>
</property>
<property name="blockGUI">
<enum>GUI</enum>
</property>
</widget>
<widget class="CloseButton">
<property name="name">
<cstring>CloseButton1</cstring>
</property>
<property name="geometry">
<rect>
<x>290</x>
<y>340</y>
<width>80</width>
<height>29</height>
</rect>
</property>
<property name="text">
<string>&Close</string>
</property>
</widget>
<widget class="Label">
<property name="name">
<cstring>Label13</cstring>
</property>
<property name="geometry">
<rect>
<x>40</x>
<y>10</y>
<width>360</width>
<height>50</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>20</pointsize>
<bold>1</bold>
</font>
</property>
<property name="text">
<string>SLAX Live Installer</string>
</property>
</widget>
</widget>
<tabstops>
<tabstop>ComboBox3</tabstop>
<tabstop>ComboBox1</tabstop>
<tabstop>ComboBox2</tabstop>
<tabstop>CloseButton1</tabstop>
<tabstop>ExecButton1</tabstop>
<tabstop>RadioButton2</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
</UI> 顶一个,不错啊。。。 暂时放弃Slax,在自己没能力重编核心前,不搞它了。
这家伙,害的CPU风扇一直发飙不休息。
等俺继续学习一段时间,俺还会回来的。 原帖由 蝌蚪 于 2009-10-30 16:34 发表 http://www.linuxfans.org/bbs/images/common/back.gif
暂时放弃Slax,在自己没能力重编核心前,不搞它了。
这家伙,害的CPU风扇一直发飙不休息。
等俺继续学习一段时间,俺还会回来的。
CPU风扇的问题,可能是你的本子主板的ACPI支持问题,我在编译内核时看到原内核配置,其中有几个ACPI的支持并没有选中。
如果要你只是添加更多的ACPI支持,其实重编译不难,到官网去下原对应版本的内核源码和自动脚本,重编译一下就行了。 乱写什么,脚本就两句话
slax直接复制到分区,就可以启动了,不过要安装过grub4dos
cp --preserve -R -v /{bin,dev,etc,home,lib,root,sbin,usr,var,opt} /mnt/sda2
mkdir /mnt/sda2/{boot,mnt,proc,sys,tmp}
想装哪个盘,就把sda2改成几
grub配置写:
root (hd0,4)
kernel /slax/vmlinuz root=/dev/sda2 autostart=xconf;startx
差不多就可以了
页:
[1]