NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Installing Gentoo GNU/Linux 2004.3 on SPARC - Part 5 - Getting Silo Installed
Topic: GNU/Linux   Posted:2005-01-01
Printer Friendly: Print

spacerspacer
There are 7 parts to this article:
Part 1 - Gentoo on SPARC - Booting the Install CD
Part 2 - Gentoo on SPARC - Creating the Filesystems
Part 3 - Gentoo on SPARC - Copying Initial System, Portage, and Distfiles
Part 4 - Gentoo on SPARC - Creating the Kernel
Part 5 - Gentoo on SPARC - Getting Silo Installed
Part 6 - Gentoo on SPARC - Initial Logon
Part 7 - Gentoo on SPARC - Final Configuration

It turns out that Silo is not in the distfiles. We will investigate this some other time if we get bored, but *the only* piece that didn't come on the Universal LiveCD was Silo. We figured we could transfer it by putting it on a diskette formatted with ext2 on Agatha's workstation and using sneaker net to transfer to the SPARC:

root@mach-1 usr-1 # mkfs /dev/fd0
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
184 inodes, 1440 blocks
72 blocks (5.00%) reserved for the super user
First data block=1
1 block group
8192 blocks per group, 8192 fragments per group
184 inodes per group
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@mach-1 usr-1 #
root@mach-1 usr-1 # ls silo*
silo-1.4.8.tar.gz
root@mach-1 usr-1 # mount -t ext2 /dev/fd0 /mnt
root@mach-1 usr-1 # cp silo* /mnt
root@mach-1 usr-1 # umount /mnt
root@mach-1 usr-1 #
livecd / # mount -t ext2 /dev/fd0 /mnt/floppy
OOPS: Bogus kernel PC [0000000000000080] in fault handler
[0000000000408cc8] [000000000040eb40] [000000000041a504] [00000000006b4694] [000
0000000404678] [0000000000000000]
Unable to handle kernel NULL pointer dereference
tsk->{mm,active_mm}->context = 00000000000007a2
tsk->{mm,active_mm}->pgd = fffff8001fe7b000
\|/ ____ \|/
"@'/ .. \`@"
/_| \__/ |_\
\__U_/

Hrmphhh... that didn't work. Nice core dump ASCII though. If we get bored (again), maybe we will dig into this problem. We really just want to get the OS booted, though. Let's try using the raw device and tar:

root@mach-1 usr-1 # tar -cf /dev/fd0 silo-1.4.8.tar.gz
root@mach-1 usr-1 # tar -tf /dev/fd0
silo-1.4.8.tar.gz
root@mach-1 usr-1 #
livecd root # tar -xf /dev/fd0
OOPS: Bogus kernel PC [0000000000000080] in fault handler
[0000000000408cc8] [000000000040eb40] [000000000041a504] [00000000006b4694] [00
Unable to handle kernel NULL pointer dereference
tsk->{mm,active_mm}->context = 00000000000004cb
tsk->{mm,active_mm}->pgd = fffff8001fe7b000
\|/ ____ \|/
"@'/ .. \`@"
/_| \__/ |_\
\__U_/
swapper(0): Oops

Well... sheesh... It looks like we need to set up the network and sshd to transfer the silo source:

livecd root # net-setup eth0
livecd root # ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:20:9A:E6:79
inet addr:10.50.100.49  Bcast:10.50.100.255  Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1344 (1.3 Kb)  TX bytes:1830 (1.7 Kb)
Interrupt:96
lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
livecd root #
livecd root # passwd
New UNIX password:
Retype new UNIX password:
passwd: password updated successfully
livecd root #
livecd root # /etc/init.d/sshd start
* Generating Hostkey...
.
.
.
* Starting sshd...  [ ok ]
livecd root #
usr-1@mach-1 usr-1 $ ssh root@srv-1
Please report any bugs you find to http://bugs.gentoo.org. Be sure to include
detailed information about how to reproduce the bug you are reporting. Thanks
for using Gentoo Linux!
Stage tarball(s), distfiles and packages can be found in /mnt/cdrom/.
livecd root #

Go back into the new system environment and compile/install Silo:

livecd / # mount /dev/sda1 /mnt/gentoo
livecd / # mount -t proc none /mnt/gentoo/proc
livecd / # chroot /mnt/gentoo /bin/bash
livecd / # env-update; source /etc/profile
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
livecd / #
livecd / # emerge silo
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-boot/silo-1.4.8 to /
>>> Downloading http://gentoo.osuosl.org/distfiles/silo-1.4.8.tar.gz
--11:03:04--  http://gentoo.osuosl.org/distfiles/silo-1.4.8.tar.gz
=> `/usr/portage/distfiles/silo-1.4.8.tar.gz'
Resolving gentoo.osuosl.org... failed: Temporary failure in name resolution.
>>> Downloading http://distro.ibiblio.org/pub/Linux/distributions/gentoo/
distfiles/silo-1.4.8.tar.gz
--11:03:04--  http://distro.ibiblio.org/pub/Linux/distributions/gentoo/
distfiles/silo-1.4.8.tar.gz
=> `/usr/portage/distfiles/silo-1.4.8.tar.gz'
Resolving distro.ibiblio.org... failed: Temporary failure in name resolution.
>>> Downloading http://www.sparc-boot.org/pub/silo/silo-1.4.8.tar.gz
--11:03:04--  http://www.sparc-boot.org/pub/silo/silo-1.4.8.tar.gz
=> `/usr/portage/distfiles/silo-1.4.8.tar.gz'
Resolving www.sparc-boot.org... failed: Temporary failure in name resolution.
!!! Couldn't download silo-1.4.8.tar.gz. Aborting.

Doh! Have to set up name resolution:

livecd / # nano /etc/resolv.conf
livecd / # cat /etc/resolv.conf
domain signalq.com
nameserver 199.181.164.2
nameserver 199.181.164.1
livecd / #
livecd / # emerge silo
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-boot/silo-1.4.8 to /
.
.
.
>>> /boot/isofs.b
* NOTE: If this is an upgrade to an existing SILO install,
*       you will need to re-run silo as the /boot/second.b
*       file has changed, else the system will fail to load
*       SILO at the next boot.
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
>>> sys-boot/silo-1.4.8 merged.
>>> Recording sys-boot/silo in "world" favorites file...
>>> clean: No packages selected for removal.
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
livecd / #
livecd / # rm /etc/silo.conf
livecd / # nano /etc/silo.conf
livecd / # cat /etc/silo.conf
partition = 1
root = /dev/sda1
timeout = 150
image = /boot/kernel-2.4.27
label = Gentoo
livecd / #
livecd / # silo
/etc/silo.conf appears to be valid

OK. Let's reboot:

livecd / #
livecd / # reboot
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
livecd / #
Rebooting with command: boot

In the next installment of this article, we will log on to the system.

There are 7 parts to this article:
Part 1 - Gentoo on SPARC - Booting the Install CD
Part 2 - Gentoo on SPARC - Creating the Filesystems
Part 3 - Gentoo on SPARC - Copying Initial System, Portage, and Distfiles
Part 4 - Gentoo on SPARC - Creating the Kernel
Part 5 - Gentoo on SPARC - Getting Silo Installed
Part 6 - Gentoo on SPARC - Initial Logon
Part 7 - Gentoo on SPARC - Final Configuration




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS