PXEGRUB? (unrelated)
Documentation Steps:
NFS Setup will be summarized (Create NFS Helpdesk page!)
http://www.timntina.com/debian-sarge-cobalt-install
Use nfs-kernel-server (not only nfs-user-server)
apt-get install nfs-kernel-server portmapper nfs-common
--------------------------------------------------------------------------------
dhcp options to note (PXEGRUB?):
filename "/pxegrub";
option grub-menu = concat("(nd)/grub/", host-decl-name);
option root-path "/NFSROOT/path/to";
Create NFSROOT Filesystems:
http://www.kerrighed.org/wiki/index.php/Kerrighed_on_NFSROOT
Use fdisk /dev/hda to remove partitions. You can create the swap parition at the
end of the disk using cfdisk and then note the cylinders or sectors from fdisk,
then recreate hda1 and swap in fdisk.
Problem Creating Filesystem:
apt-get install --reinstall e2fsprogs
-or-
apt-get remove e2fsprogs
WARNING: The following essential packages will be removed
This should NOT be done unless you know exactly what you are doing!
e2fsprogs sysvinit initscripts (due to sysvinit)
apt-get install e2fsprogs sysvinit initscripts
apt-get install base-config console-common console-data console-tools e2fsprogs initscripts modutils sysvinit
Dependencies For: e2fsprogs
Versions of packages e2fsprogs depends on:
ii e2fslibs 1.40.2-1 ext2 filesystem libraries
ii libblkid1 1.40.2-1 block device id library
ii libc6 2.7-0exp8 GNU C Library: Shared libraries
ii libcomerr2 1.40.2-1 common error description library
ii libss2 1.40.2-1 command-line interface parsing lib
ii libuuid1 1.40.2-1 universally unique id library
--------------------------------------------------------------------------------
Create Device Files
From the NFS Server
Create the "/dev/ttyS0" device node on the NFS-root so the serial console getty
process via inittab can bind as specified, also create the hdx devices:
chroot /nfsroot-x86 sh -c "cd /dev; ./MAKEDEV ttyS0"
chroot /nfsroot-x86 sh -c "cd /dev; ./MAKEDEV hda"
chroot /nfsroot-x86 sh -c "cd /dev; ./MAKEDEV hdb"
chroot /nfsroot-x86 sh -c "cd /dev; ./MAKEDEV hdc"
chroot /nfsroot-x86 sh -c "cd /dev; ./MAKEDEV sda"
chroot /nfsroot-x86 sh -c "cd /dev; ./MAKEDEV sdb"
chroot /nfsroot-x86 sh -c "cd /dev; ./MAKEDEV sdc"
--------------------------------------------------------------------------------
Backup Current System?
mount /dev/hda1 /mnt/hda1
cd /mnt; tar cvf hda1.tar hda1/*
end_request: I/O error, dev 03:01 (hda), sector 1344386
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1344397, sector=1344388
debian:/mnt# fsck.ext2 /dev/hda1
Error: ext2fs library version out of date!
e2fsck 1.40-WIP (14-Nov-2006)
Using EXT2FS Library version 1.37, 21-Mar-2005
--------------------------------------------------------------------------------
INIT: Id "T0" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel
tail /nfsroot-x86/var/log/auth.log
Jul 13 04:32:07 debian getty[272]: /dev/ttyS0: No such file or directory
Create the "ttyS0" device node on the target so the serial console can be used:
# chroot /nfsroot-x86 sh -c "cd /dev; ./MAKEDEV ttyS0"
./MAKEDEV: warning: can't read /proc/devices
No device files have been created so you will need to create
/dev/ttyS0 at least:
# mknod /testing-arm-chroot/dev/ttyS0 c 4 64"
or in my case
# mknod /testing-arm-chroot/dev/ttyAMA0 c 204 16
login as root from ttyS0, no password is required...