LinuxSir.cn,穿越时空的Linuxsir!

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

Booting from any USB-bootable computers with slackware installed Flash disk

[复制链接]
发表于 2009-10-9 17:33:57 | 显示全部楼层 |阅读模式
Booting from any USB-bootable computers with slackware installed Flash disk !
(I suppose that you're running in a slackware installed Flash disk)

Open a terminal then type : su and also input root password
run command : blkid  to check your usb UUID
run command : mkinitrd -w 10(time to wait for initiating usb support) -c \
              -k your linux-kernel -m mbcache:ext2 -f ext2 -r UUID="usb UUID"
run command : cd /boot
run command : mkinitrd -o initrd name (you like)
run command : cd /
run command : grub-install --no-floppy --root-directory=. /dev/sda1(depending on your usb devices node)
run command : grub
run command : root (hd?,?)(It depends...)
run command : setup (hd?)(It depends...)
run command : quit
run command : mc -e /etc/fstab and
                         replace the block device in /etc/fstab to be read like :
                         UUID=xxxxx-xxxxx(your usb uuid)   /  ext2   defaults   1   1
run command : mc -e /boot/grub/menu.lst(Create it if you don't have one)

something like this :

default 1
timeout 3
uuid xxxxx-xxxxx (your usb uuid)
splashimage /boot/grub/slackware.xpm.gz

title Slack in EeePC or Other Desktop (WLAN support)  --Terminal Mode Login
      uuid xxxxx-xxxxx (your usb uuid)
      kernel /boot/vmlinuz-2.6.30.1-Slack root=UUID=xxxxx-xxxxx (your usb uuid) init 3 vga=normal
      initrd /boot/usb-EeePC(initrd you've created)

title Slack in My Desktop (WLAN, Bootsplash Support)  --Graphics Mode Login
      uuid xxxxx-xxxxx (your usb uuid)
      kernel /boot/vmlinuz-2.6.30.1-Slack root=UUID=xxxxx-xxxxx (your usb uuid) quiet splash=verbose vga=0x317 edd=off
      initrd /boot/usb-Slack_GUI(initrd you've created)

title Windows XP in EeePC or Other Desktop Computers  --Windows (Microsoft)
      map (hd0) (hd1)
      map (hd1) (hd0)
      rootnoverify (hd1,0)
      makeactive
      chainloader   +1
      boot
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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