May 022013
 

现在使用cobbler安装Ubuntu,你有时候会遇到麻烦,自动安装过程中断,根据界面的提示,有时候很难找到原因,那么你就必须看log,才能更好的判断。

今天刚好遇到麻烦,就记录一下排错过程。

aa

这个时候,选择 <Go Back>

快照6

表示你安装到grub的时候遇到麻烦。你可以选择Exceute a Shell, 这个时候你可以有一个shell,可以看log,不过这样很不方便。我们选择Save debug logs

快照7

选择web,这个时候,就会启动一个web,让你可以直接访问log。

快照8

这个时候,你就可以看到通过web看到相关的log

快照9

看了一下log,造成上面的原因是我机器里有多块硬盘,我装完Centos后,再重装Ubuntu,就会遇到这个问题,原因是

May  2 06:34:16 90linux-distro: result: /dev/sdb1:CentOS release 6.4 (Final):RedHat:linux

感觉是装CentOS的时候,把Grub装在sdb1上,这导致Ubuntu的安装中断。

在Ubuntu的preseed文件里

# Boot-loader
d-i grub-installer/skip boolean false
d-i lilo-installer/skip boolean false
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean false
d-i finish-install/keep-consoles boolean false
d-i grub-installer/bootdev string /dev/sda
d-i finish-install/reboot_in_progress note 

搞定.

  6 Responses to “查看Ubuntu安装过程log”

  1. 陈大 你好,我目前遇到的情况是到http://t3.qpic.cn/mblogpic/d93eb10b92ffade63c6c/460 这里被卡住了。
    一下是磁盘部分代码,麻烦您帮我分下是那里的问题

    d-i partman-auto/disk string /dev/sda
    d-i partman-auto/method string lvm
    d-i partman-lvm/device_remove_lvm boolean true
    d-i partman-lvm/confirm boolean true
    d-i partman-auto/choose_recipe select atomic
    d-i partman-partitioning/confirm_write_new_label boolean true
    d-i partman-partitioning/confirm_write_to_changes boolean true
    d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true

  2. 陈大 你好,我目前遇到的情况是到http://t3.qpic.cn/mblogpic/d93eb10b92ffade63c6c/460 这里被卡住了。
    一下是磁盘部分代码,麻烦您帮我分下是那里的问题

    d-i partman-auto/disk string /dev/sda
    d-i partman-auto/method string lvm
    d-i partman-lvm/device_remove_lvm boolean true
    d-i partman-lvm/confirm boolean true
    d-i partman-auto/choose_recipe select atomic
    d-i partman-partitioning/confirm_write_new_label boolean true
    d-i partman-partitioning/confirm_write_to_changes boolean true
    d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true

    ”1

  3. 这个写的不错,非常好!学习了!

  4. 陈大侠,请问贵博客可以支持一下rss吗?

 Leave a Reply

(required)

(required)

This site uses Akismet to reduce spam. Learn how your comment data is processed.