Y.B.'s profileThe Secret GardenBlogListsNetwork Tools Help

Blog


    10/16/2007

    Debian 硬盘安装时 hd-media 的选择

    发信人: Dieken (风催草低 - 明月何尝不照人), 信区: LinuxApp
    标  题: Debian 硬盘安装时 hd-media 的选择
    发信站: 水木社区 (Tue Oct 16 11:46:29 2007), 站内

    我猜测有不少人不清楚硬盘或者 U 盘安装时该用哪个 hd-media,
    昨晚研究了下,有点心得,呵呵


    (http|ftp)://cdimage.debian.org/ 目录主要层次:
    |
    |---- cdimage/
    |        |
    |        |---- .debian-mirror/  [Debian 软件源镜像]
    |        |---- release/         [stable 的三种 CD]
    |        |---- daily-builds/    [每天构建 businesscard、netinstall CD]
    |        `---- weekly-builds/   [每周一构建 full CD]
    |
    |---- debian     -> cdimage/.debian-mirror
    |---- debian-cd  -> cdimage/release
    `---- debian-iso -> debian-cd


    在 ftp://ftp.us.debian.org/debian/dists/VERSION/main/installer-i386/
    current/images 下存放 vmlinuz 和 initrd.gz,后者包含 d-i 的主要部分。
    在这个目录下还有 MANIFEST.udebs,从中可以看出这个 d-i 对应的内核版本。

    在 ftp://ftp.us.debian.org/debian/dists/VERSION/main/debian-installer/
    binary-i386/Packages.gz 下存放额外的 d-i 需要的软件包和内核模块包。

    2007-10-16 的情况:
    stable:
        images      2.6.18-4-486
        binary-386  2.6.18-5-486  (补丁号不一样并不会导致内核 API 不兼容)
    testing:
        images      2.6.18-4-486
        binary-386  2.6.18-5-486
    unstable:
        images      2.6.22-2-486
        binary-386  2.6.18-4-486  (注意内核次版本号不匹配!)


    /cdimage/weekly-builds/i386/iso-cd
        d-i 开发主页上的每周构建, 使用最近一次确认无误的 d-i
        Full CD 中 d-i 及其使用的额外内核模块都是针对 2.6.18-4-486 内核的。

    /cdimage/daily-builds/(daily.old|testing|lenny_d-i)/(current|archlatest)/i386/
        d-i 开发主页上无直接链接,使用最近一次确认无误的 d-i
        Bussinesscard、netinstall CD 中 d-i 及其使用的额外内核模块都是针对
        2.6.22-2-486 内核的。

    /cdimage/daily-builds/(daily|unstable|sid_d-i)/(current|archlatest)/i386/
        d-i 开发主页上的每日构建,使用最新的 d-i
        Bussinesscard、netinstall CD 中 d-i 及其使用的额外内核模块都是针对
        2.6.22-2-486 内核的。

    http://people.debian.org/~joeyh/d-i/images/daily/
        最新的 initrd, vmlinuz,当前对应内核 2.6.22-2-486。

    查看 ISO 上所用 d-i 版本:
        mount -o loop debian-testing-xxx.iso /mnt
        grep modules /mnt/dists/testing/main/debian-installer/binary-i386/Packages
        # 可以看出 d-i 用的这些内核模块对应内核的版本号。
        mkdir a && cd a && gzip -dc /mnt/install.386/initrd.gz | cpio -i
        ls lib/modules      # 注意不是 /lib/modules
        # 可以看出 d-i 中的 vmlinuz 版本号。
        cd ..; rm -rf a; umount /mnt


    综上,硬盘安装时需要下载的文件:
    (1)
    stable:     [ http://www.debian.org/CD/ ]
        hd-media/vmlinuz, hd-media/initrd.gz
            http://some.debian.mirror/debian/dists/stable/main/installer-i386/
            current/images/hd-media/
        iso
            http://some.debian.mirror/debian-cd  (or debian-iso)
            三种 ISO 任选,无 hd-media 不匹配问题。

    (2)
    testing:    [ http://www.debian.org/devel/debian-installer/ ]
        三种 CD 在此页面下都有链接,前面也已提过,其 hd-media 的选择分两种:
        (1) full CD:
            使用 dists/testing/main/installer-i386/current/images/hd-media。
        (2) bussinesscard、netinstall CD:
            使用 d-i 主页的 hd-media,也及
            http://people.debian.org/~joeyh/d-i/images/daily/

    (3)
    unstable:   [ http://wiki.debian.org/DebianInstaller/Today ]
    Sid/Unstable

    You cannot install unstable (sid) using the daily netinst CD image, only
    testing (lenny). To install unstable, use either the netboot
    installation method or a daily businesscard CD image; you will need to
    boot the installer in expert mode or with priority=medium.

        由于 testing 的 full CD 和 netinstall CD 里都有 testing 版本的软件包,
    businesscard CD 只含 d-i,而 d-i 本身是不会安装到目标系统上的,因此为了
    避免升级 testing 到 sid 的过程,只能使用 testing 的 bussinesscard CD
    安装unstable,且安装开始时在 boot: 提示符处输入 expert 或者
    priority=medium,否则不会出来选择 unstable 版本的界面。



    --
    CMUCL - Common Lisp; Brep、happierbee - Emacs; edyfox、runsnake - VIM;
    Sly9 - [{Mathematica}]; jjgod、donated - TeX;
                     ... to be continued...


    ※ 修改:·Dieken 于 Oct 16 11:54:24 修改本文·[FROM: 61.49.142.*]
    ※ 来源:·水木社区 newsmth.net·[FROM: 61.49.142.*] 

    Comments (1)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    村长wrote:
    受教
    Nov. 6

    Trackbacks

    The trackback URL for this entry is:
    http://dieken-qfz.spaces.live.com/blog/cns!586D665C0DEB512D!479.trak
    Weblogs that reference this entry
    • None