11
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

debootstrapでubuntu最小インストール

Last updated at Posted at 2016-01-24

参考

インストール

ssh接続準備
sudo -s

apt-get update
apt-get install debootstrap ssh
passwd lubuntu
ip a s
パーティショニング
fdisk /dev/sda
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt/
mkdir -p /mnt/var/cache/apt/archives/
mount --bind /var/cache/apt/archives/ /mnt/var/cache/apt/archives/
インストール
debootstrap --include=linux-image-generic,grub xenial /mnt http://ubuntutym.u-toyama.ac.jp/ubuntu
chroot準備
mount -t proc none /mnt/proc/
mount -t devtmpfs none /mnt/dev/
mount -t sysfs none /mnt/sys/
echo "/dev/sda1 / ext4 defaults 0 1" > /mnt/etc/fstab
chroot /mnt/
ログインユーザ作成
adduser ubuntu
visudo
環境設定
echo "Asia/Tokyo" > /etc/timezone
cp /usr/share/zoneinfo/Japan /etc/localtime
locale-gen ja_JP.UTF-8

ブートローダー

ブートローダー
grub-install /dev/sda
yes | update-grub
exit
grub-install --root-directory=/mnt/ --recheck /dev/sda
11
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?