[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:56152] preseedにおけるディスクパーティショニングについて
- From: Sato Daisuke <densuke@xxxxxxx>
- Subject: [debian-users:56152] preseedにおけるディスクパーティショニングについて
- Date: Sun, 20 May 2012 14:28:04 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fuga.jp; s=fugahoge; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=27Thb1pl0YGuwdOLKTrW8sFcYsjhBBayEzyQzofQJXw=; b=lec9C+yYLKJon1lePxcBqcdQIQ81rUGuz+cEq3f+HKkNY1Hg7l/mGeLMKxssB0SxOI if2vkuh00JVwD63FUzcGRTTFtG0zjK0EX3fZbE4XN90qQIvs99NldIWZc4Jpr7k7zCBV MipaXQJ/gkFKzkT8vSRUoDP+zaH2GQuzyIlwM=
- List-help: <mailto:debian-users-ctl@debian.or.jp?body=help>
- List-id: debian-users.debian.or.jp
- List-owner: <mailto:debian-users-admin@debian.or.jp>
- List-post: <mailto:debian-users@debian.or.jp>
- List-software: fml [fml 4.0.3 release (20011202/4.0.3)]
- List-unsubscribe: <mailto:debian-users-ctl@debian.or.jp?body=unsubscribe>
- X-gm-message-state: ALoCoQmp/1Z8ei0yRuONavGWiQNjpP2z8xNWvKMC/idlO/aBw3+r0TSTeAbSpETZxiigd7rRVPpv
- X-google-dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding:x-gm-message-state; bh=27Thb1pl0YGuwdOLKTrW8sFcYsjhBBayEzyQzofQJXw=; b=ewuSqb8S9DWtoyAGb4Y0s9vac45NIOLgEOThnoRNFS9lRHO2pt2V9FkPXcvP/m6aEt otwiRhgc0Ee+PvWmDVp99huNJgGsa3GgZD4m8y47foTzTKGlHj5vG7PuDs6Wp8XH2sp+ 9EB4U5nVl3lhoGSnMFs0+8D87FoOgn8T2xinBWCaBACj8IP+WmWNhgu4D0cER599ooeq 63odJ2Y4UHTkBi6dpFeTVQx/ZAj+Zr6pZe5HW59QBEiCRZrwUU+VlIVfTcaWhd38V1nS fy2ZMQ9BNfDyZr0OAdV8sIzlAIcnKbBUD/gy2TAPhS0il2nNfN1E0O+aqvW1YYKWDYMY H9uQ==
- X-ml-info: If you have a question, send e-mail with the body "help" (without quotes) to the address debian-users-ctl@debian.or.jp; help=<mailto:debian-users-ctl@debian.or.jp?body=help>
- X-ml-name: debian-users
- X-mlserver: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post)
- X-original-to: debian-users-dist@debian.or.jp
- X-spam-checker-version: SpamAssassin 3.2.5 (2008-06-10) on osdn.debian.or.jp
- X-spam-level:
- X-spam-status: No, score=-3.4 required=10.0 tests=KI,NORMAL_HTTP_TO_IP, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.2.5
- Message-id: <CA+LeDxVdWGMKxenT4zbKz0UrQzGedg9wHLRem5F6NDzfDcF39Q@xxxxxxxxxxxxxx>
- X-mail-count: 56152
佐藤と申します。
Debian直接というよりUbuntuな話になるのですが、preseedの中身についての質問になります。
Ubuntu 12.04LTSをpreseedを用いてインストールできるようにいろいろ試しているのですが、想定通りのパーティショニングにならないため困っているところです。
現在、このようなかたちでpartmanを用いたパーティショニングを指示しています。
d-i partman-auto/expert_recipe string \
boot-root :: \
128 16 256 ext4 \
$primary{ } $bootable{} \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
5120 128 8192 btrfs \
method{ format } format{ } \
use_filesystem{ } filesystem{ btrfs } \
mountpoint{ / } \
. \
768 128 100% linux-swap \
method{ swap } format{ } \
.
この設定を8GBの仮想ディスクを用意したVirtualBoxのVM(メモリ768MB設定)向けに用意したpreseedに入れて動かしたのですが、
/dev/sda1 128MBぐらい(/boot)
/dev/sda5 約5GB(/)
/dev/sda6 約3GB
となってしまい、sda6がスワップになってます。
文献の読み間違いもあるかと思うのですが、スワップは768MB前後になるだろうし、ルート用に残り全部を使うような状態かと思ったのになってくれません。
だからといってそのあたりのpreseedのサンプルを検索すると、partman-auto/expert_recipeの部分はコメントで、全部LVMに使う設定のおまかせ状態です。
どのようにしたらいいのでしょうか。知恵をお貸しくださいませ。
アカウント部分を外した現状のpreseedファイルを末尾につけさせていただきます。
念のため、こちらで期待しているパーティション構成はこんな感じです。
* /boot用に128MB(増えても最大256MB)
* /用に最低5GB、最大で8GB
* スワップに768MB(メモリと同じ)
* ディスク容量が大きくても、全部は使わず、それぞれ指定した範囲内でしか増えない
以上です、よろしくお願いいたします。
--
佐藤 大輔 / densuke@xxxxxxx
== preseedのデータは以下の通りです
d-i debian-installer/language string ja
d-i debian-installer/locale select ja_JP.UTF-8
d-i keyboard-configuration/altgr select The default for the
keyboard layout
d-i keyboard-configuration/compose select No compose key
d-i keyboard-configuration/ctrl_alt_bksp boolean false
d-i keyboard-configuration/layout select 日本語
d-i keyboard-configuration/layoutcode string jp
d-i keyboard-configuration/model select
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/optionscode string
d-i keyboard-configuration/store_defaults_in_debconf_db boolean true
d-i keyboard-configuration/switch select No temporary switch
d-i keyboard-configuration/toggle select No toggling
d-i keyboard-configuration/unsupported_config_layout boolean true
d-i keyboard-configuration/unsupported_config_options boolean true
d-i keyboard-configuration/unsupported_layout boolean true
d-i keyboard-configuration/unsupported_options boolean true
d-i keyboard-configuration/variant select 日本語
d-i keyboard-configuration/variantcode string
d-i keyboard-configuration/xkb-keymap select jp
d-i mirror/codename string precise
d-i mirror/country string manual
d-i mirror/ftp/directory string /ubuntu/
d-i mirror/ftp/hostname string mirror
d-i mirror/ftp/proxy string
d-i mirror/http/countries select manual
d-i mirror/http/directory string /ubuntu/
d-i mirror/http/hostname string 192.168.1.250
d-i mirror/http/mirror select CC.archive.ubuntu.com
d-i mirror/http/proxy string http://192.168.1.250:8080/
d-i tasksel/first multiselect OpenSSH server
d-i time/zone string Asia/Tokyo
pkgsel pkgsel/update-policy select unattended-upgrades
pkgsel pkgsel/updatedb boolean true
pkgsel pkgsel/upgrade select safe-upgrade
tzsetup-udeb time/zone string Asia/Tokyo
d-i user-setup/allow-password-empty boolean false
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
d-i partman-auto/method select regular
d-i partman-auto/init_automatically_partition select ガイド - ディスク全体を使う
d-i partman-auto/expert_recipe string \
boot-root :: \
128 16 256 ext4 \
$primary{ } $bootable{} \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
5120 128 8192 btrfs \
method{ format } format{ } \
use_filesystem{ } filesystem{ btrfs } \
mountpoint{ / } \
. \
768 768 100% linux-swap \
method{ swap } format{ } \
.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/confirm_new_label boolean true
d-i partman-auto/disk string /dev/sda
d-i partman-partitioning/confirm_resize boolean false
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i grub-installer/only_debian boolean true
d-i clock-setup/utc boolean false
# btrfsをルートに使ってることに関しては突っ込まないでください、お願いいたします…