LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1400|回复: 5

Install slackware 13.0 on USB Flash Disk

[复制链接]
发表于 2009-10-9 10:36:47 | 显示全部楼层 |阅读模式
Required : USB-HDD boot Bios supported, Slackware 13.0 CD
Capacity of Flash Disk : > 4GB ( would be better !)

Main procedures :
1. boot : hit enter key to use default kernel (hugesmp.s) or you can choose huge.s to boot

2. Enter 1 to Select keyboard map : [hit enter key]

3. Slackware login : root
   then the screen shows :

4. root@slackware:/#
   if you have one sata HD, then input : cfdisk /dev/sdb and hit enter key to partition your Flashdisc)
   root@slackware:/# cfdisk /dev/sdb [hit enter key]

   if you have no sata but one IDE-HD, then input : cfdisk /dev/sda and hit enter key to partition your Flashdisc)
   root@slackware:/# cfdisk /dev/sda [hit enter key]

5. After you've done step 4 above, just run "setup" to go to "Slackware Linux Setup (Version 13.0)" dialogue  window
   root@slackware:/# setup [hit enter key]

6. choose target :
   Select /dev/sda1 ( depends on the flashdisc partition detected )
   and also choose ext2 filesystem to be used in Flashdisc !

7. the other procedures would be the same as regular installation !

8. After completing all the packages installation, you need to configure your system.
   In the step of the configuration of the bootloader, " select expert to Install lilo " which is recommended.
   Dialogue "EXPERT LILO INSTALLATION" shows on screen
   Begin : choose MBR to install lilo, After Dialogue "Confirm location to install lilo" shows,
           then you could input /dev/sda or /dev/sdb (which depends ..)
   Linux : select /dev/sda1 or /dev/sdb1 (which depends ..)
   Install : Install lilo

9. exit to leave setup window !

10. Last and crucial step :
    type : chroot /mnt
           mkinitrd -w 10 -c -k 2.6.29.6-smp -m mbcache:ext2 -f ext2 -r /dev/sda1 or /dev/sdb1 (which depends ..)
           cd /boot
           run command :
           a. mkinitrd -o initrd_usb (you could name whatever you'd like)
           b. mc -e /etc/lilo.conf
           add this line " initrd = initrd_usb " in it !

           lilo.conf may be like this :
# Start LILO global section
boot = /dev/sda
message = /boot/boot_message.txt
append=" vt.default_utf8=0"
vga = normal
image = /boot/vmlinuz
initrd = /boot/initrd_usb
root = /dev/sda1
label = slack
read-only

    c. run " lilo -v -v -v"
    d. type " exit " to leave your Flashdisc.
    reboot to check if you succeed, if it does, Congratulations.
    By the way, To download and install grub on your USB is highly recommended !
发表于 2009-10-22 14:08:27 | 显示全部楼层
谢谢,很有用:)
回复 支持 反对

使用道具 举报

发表于 2009-10-22 18:50:46 | 显示全部楼层
支持!
如果在U盘上,增加对硬盘下XP和Linux的启动,Lilo怎么写?
回复 支持 反对

使用道具 举报

发表于 2009-10-26 16:22:54 | 显示全部楼层
占位,寒假试下
回复 支持 反对

使用道具 举报

发表于 2009-10-26 18:10:42 | 显示全部楼层
Post by wellxlx;2039047
支持!
如果在U盘上,增加对硬盘下XP和Linux的启动,Lilo怎么写?


一般情况下硬盘上都装有引导管理器的吧
引导Linux可以使用UUID,但引导XP,情况说复杂也复杂,说不复杂也不复杂,看你U盘的使用环境了
回复 支持 反对

使用道具 举报

发表于 2009-10-26 18:11:27 | 显示全部楼层
Post by chenfengyuan;2040065
占位,寒假试下


我一般都是在硬盘上装好,然后CP到移动硬盘的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表