红联Linux门户
Linux帮助

4G现代U盘安装YLMF OS 1.5做为随身系统成功

发布时间:2011-09-12 15:29:02来源:ylmf作者:sx-ljm

  今天无事,尝试U盘安装YLMF 1.5,并在另一台机器上成功启动。


  其实很简单,过程如下:


  一、wubi-hd硬盘安装方法一样,只是手动选择分区的时候,选择你的U盘,分区方式,我是 swap 1G,剩余空间全部给 /,结果就是swap 在 sdb1, / 在 sdb2。


  最后安装grub的时候选择安装到分区,不要安装到主硬盘mbr,我就是不小心安装到主硬盘,结果杯具了,启动后进不了系统,如果你也和我一样,看我的解决办法:http://www.ylmf.net/read.php?tid=1559469


  二、我安装成功后进入硬盘上的的ylmf os,执行命令如下:


  sx-ljm@sx-ljm-desktop:~$ sudo -i
  root@sx-ljm-desktop:~# mount /dev/sdb2 /mnt
  root@sx-ljm-desktop:~# grub-install --root-directory=/mnt /dev/sdb
  Installation finished. No error reported.
  This is the contents of the device map /mnt/boot/grub/device.map.
  Check if this is correct or not. If any of the lines is incorrect,
  fix it and re-run the script `grub-install'.
  (hd0) /dev/sda
  (hd1) /dev/sdb
  root@sx-ljm-desktop:~#


  完成,开机试试吧,记得设为bios为U盘第一启动盘。