Zitat:
Zitat von lenchen
Wie bist Du vorgegangen? Welchen Kernel und welche Bootparameter hast Du verwendet?
|
Für eine komplette Doku ist hier glaube ich zu wenig Platz, aber eine ToDo Liste ist schon mal ein Anfang:
# Change bootsettings in serverloft webinterface
# Boot rescue Linux
# Format harddisc
cfdisk /dev/sda
# -> sda1 128MB for /boot
# -> sda2 2GB for swap
# -> sda3 leftover for /
# Reboot rescue linux (to avoid mount problems)
# Create filesystems
mkfs.ext2 /dev/sda1
mkswap /dev/sda2
mkfs.ext3 /dev/sda3
# Mount Filesystems
mount /dev/sda3 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
# Install minimal Debian
debootstrap --arch amd64 lenny /mnt
ftp://ftp.us.debian.org/debian/
# Populate rescue /dev to /mnt/dev
mount --rbind /dev /mnt/dev
# Change into new installation
chroot /mnt
# Edit /etc/apt/sources.list and run update
apt-get update
apt-get dist-upgrade
# Mount /proc
mount -tproc none /proc
# Install Kernel and useful utilities
apt-get install locales linux-image-2.6.26-1-amd64 vim ssh pciutils less
# Create /boot/grub/device.map
echo "(hd0) /dev/sda" > /boot/grub/device.map
# install bootloader
apt-get install grub
grub-install /dev/sda
# Edit /boot/grub/menu.lst
# -> # kopt=root=/dev/sda3 ro console=tty0 console=ttyS0,57600
# -> serial --unit=0 --speed=57600
# -> terminal serial
update-grub
# Configure miscellaneous
dpkg-reconfigure locales # -> Default locale for the system environment: en_US.UTF-8 UTF-8
dpkg-reconfigure tzdata # -> Time zone: Chicago
passwd root
# Configure serial loginprompt
echo "S0:12345:respawn:/sbin/getty -L 57600 ttyS0 vt102" >> /etc/inittab
# Create /etc/fstab
# Create /etc/hostname and /etc/hosts
# Create /etc/network/interfaces
# Unconfigure chroot enviroment
umount /proc
exit
umount /mnt/boot
# Change bootsettings in serverloft webinterface
reboot