I am trying to make a very simple and minimal ubuntu 9.04 installation on my
net5501 with 1.33c BIOS  via debootstrap following some internet recipes
but I am stuck. I am using a WD2500BEVS 2.5'' sata hard disk drive. Here are
the steps :

I connect the hard disk to my desktop pc (running ubuntu 9.04) and it is
recognized as sda (/dev/sda). I then use Gparted to make
two partitions , sda1 as ext3 for / , and sda2 for swap. ok. Then i create
/mnt/target and /mnt/iso folders. I mount sda1 to /mnt/target with :

sudo mount /dev/sda1 /mnt/target/

Then I mount the ubuntu 9.04 alternative iso to /mnt/iso  with the command :


sudo mount -t iso9660 -o ro,loop=/dev/loop0
/home/hymloth/Desktop/ubuntu-9.04-alternate-i386.iso /mnt/iso

and then :

sudo debootstrap --arch i386 jaunty /mnt/target/ file:/mnt/iso

ok to this point. I chroot into the system with : sudo chroot /mnt/target/
/bin/bash . Then i edit /etc/fstab and it looks like :

     /dev/hda1       /               ext3    defaults                0       0
     /dev/hda2       none            swap    sw                      0       0
     tmpfs           /tmp            tmpfs   size=128m,mode=1777     0       0
     proc            /proc           proc    defaults                0       0
     sys             /sys            sysfs   defaults                0       0


Question 1 : is hda1 and hda2 the correct here or shall i use sda1,sda2
instead? (in other words does net5501 recognizes sata as sdx?)

then i mount /proc and /sys succesfully. Then i edit /etc/event.d/ttyS0 so
to look like :

start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /sbin/getty -L ttyS0 9600 vt102

Question 2 : I use a usb-to-serial adapter that is recognized by ubuntu as
/dev/ttyUSB0. So do I have to substitude every ttyS0 with ttyUSB0 everywhere
(including grub later?). Is the above (getty) really necessary, because when
i start ttyS0 or ttyUSB0, my minicom screen fills with ETERNAL LOOP
GARBAGE..

then i edit /etc/initramfs-tools/modules and i add :

ext3
ide_generic

at the end and then i update : update-initramfs -u . ok until then. So i
have to install a kernel and a boot loader.

apt-get install linux-image-generic grub memtest86+


ok. then some tutorials suggest that i do the following:

     mkdir -p /boot/grub
     cp /usr/lib/grub/i386-pc/* /boot/grub
     editor /boot/grub/menu.lst

of course (?) /boot/grub/menu.lst wasn't there so I created it and i filled
in the :

default         0
timeout         5

serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=5  serial console

title           Ubuntu, kernel 2.6.28-11-generic
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.28-11-generic root=/dev/hda1 ro
console=tty0 console=ttyS0,9600n8
initrd          /boot/initrd.img-2.6.28-11-generic
quiet
savedefault

title           Ubuntu, memtest86+
root            (hd0,0)
kernel          /boot/memtest86+.bin console=tty0 console=ttyS0,9600n8
quiet


Then according to a tutorial I have to exit chroot and execute

   exit # exit the chroot(), that is

     # Run this from outside the chroot()
     sudo grub-install --no-floppy --root-directory=/mnt/target /dev/sdb1


Question 3 : What the hell is going on? why do i have to install grub inside
and outside of the chrooted environment? Is the menu.lst correct?(which i
had to create because no grub install created it, both for in and out the
chroot environment). Are the ttyS0 correct or they must be ttyUSB0? is
"console" next to "serial" in the fouth line really necessary? Do i have to
edit /boot/grub/device.map in the chrooted environment somehow?

then i umount my /mnt/target with the command : sudo umount -l /mnt/target
because some processes keep it busy, i shut down my pc and transfer the sata
drive to my net5501.
I use minicom at port ttyUSB0 with baud at 9600, set ConSpeed=9600, in
general 9600 everywhere.. when i power on soekris it misses the hard disk
four out of five times..
when it finds it , I ALWAYS END UP WITH GRUB ERRORS OR STUCK AT GRUB
LOADING.... some errors are : 2,16,18,25 as much as i remember...

Please does anybody know what am i doing wrong? Will things be different if
i buy a CF?

Any help would be extremely appreciated....
_______________________________________________
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to