你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu下安装Windows7

[日期:2012-10-03] 来源:Linux社区  作者:lainzq [字体:大 中 小]

Dual Boot Puppy Linux With Ubuntu

Lately I tried to install Puppy Linux alongside with my Ubuntu. It is not difficult at all, however it was not immediately obvious how to do it. I am noting down the steps, in case they may be useful for somebody else.

  1. First of all, download lupu-528.003.iso from: http://distro.ibiblio.org/pub/linux/distributions/puppylinux/puppy-5.2.8/
  2. Then mount it and copy its files to the directory /puppy/ on the root (/):
    mkdir puppy_iso
    sudo mount -o loop lupu_528.003.iso puppy_iso/
    ls puppy_iso/
    
    sudo mkdir /puppy
    sudo cp puppy_iso/vmlinuz /puppy/
    sudo cp puppy_iso/initrd.gz /puppy/
    sudo cp puppy_iso/lupu_528.sfs /puppy/
    
    sudo umount puppy_iso/
    rmdir puppy_iso/ 

The installation of puppy is already finished, but we need a way to boot it. We can do this by adding a new menu entry on grub. It can be done like this:

  1. Create a new file on /etc/grub.d/:
    cd /etc/grub.d/
    sudo cp 40_custom 07_puppy
    sudo vim 07_puppy
  2. Append these lines to 07_puppy:
    menuentry 'Puppy Linux' --class puppy --class gnu-linux --class os {
      set root=(hd0,msdos8)
      linux /puppy/vmlinuz
      initrd /puppy/initrd.gz
    }
  3. Update the grub config: sudo update-grub
  4. Verify that the grub menuentry is correct: vim /boot/grub/grub.cfg
    Make sure that the root of Puppy Linux is the same as that of Ubuntu, for example: set root=(hd0,msdos8) If not, then correct /etc/grub.d/07_puppy and run again update-grub . 

Note: Ubuntu uses GRUB2, but some other systems may still have the old GRUB. In this case, you have to edit manually /boot/grub/grub.cfg and add some lines like this:

title Puppy Linux
  rootnoverify (hd0,7)
  kernel /puppy/vmlinuz root=/dev/ram0
  initrd /puppy/initrd.gz 

Now reboot the PC and enjoy Puppy. 

References:

linux
相关资讯       Ubuntu安装教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款