The bacula rescue cd build from source without problems.  Using
the cd is something else.  When booting from the rescue cd the
devices were not built.  The problem was with the init script below.
The partition.hda script failed the partition the disk.  The problem
was with the sfdisk.make.hda.bsi file below.

I am using Redhat Enterprise Linux var. 4



FILE: roottree/init (/init after booting)

The line with the comment at the end is the problem.

###########################################################
#!/bin/sh
#
# First script called by Linux when booting
#

echo "Start Bacula init ..."
sbin/sleep 3
# sbin/chroot .
#trap "" 1 2 3 15
# exec >/dev/console </dev/console 2>&1
#PATH=sbin
sbin/mount -t proc none /proc
sbin/mount -t sysfs none /sys
echo Creating /dev
sbin/mount -o mode=0755 -t tmpfs none /dev
sbin/mknod /dev/console c 5 1
sbin/mknod /dev/null c 1 3
sbin/mknod /dev/zero c 1 5
sbin/mkdir /dev/pts
sbin/mkdir /dev/shm
if [ -x sbin/udevstart ] ; then
    echo Starting udev
    sbin/udev/start                             # HERE IS THE PROBLEM
                                                # should be sbin/udevstart
fi
echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug

# CMDLINE=`cat /proc/cmdline`
# DEBUG=""
# case "$CMDLINE" in *debug*) DEBUG="yes"; ;; esac
# export DEBUG

# Magic incantation for root to remain in ram
# echo 0x0100 > /proc/sys/kernel/real-root-dev

sbin/mount -o remount,rw /dev/root /

# sh

exec /sbin/init


######################################################################## 
##

FILE: roottree/bacula-hostname/diskinfo/sfdisk.make.hda.bsi
        (/bacula-hostname/diskinfo/sfdisk.make.hda.bsi after booting)

With the first three lines in place the partition.hda script will not  
work.
Remove the first three lines and it works just fine.

######################################################################## 
#
Warning: extended partition does not start at a cylinder boundary.      # 1
DOS and Linux will interpret the contents differently.                  # 2
# partition table of /dev/hda                                           # 3
unit: sectors

/dev/hda1 : start=       63, size=   208782, Id=83, bootable
/dev/hda2 : start=   208845, size=  8193150, Id=83
/dev/hda3 : start=  8401995, size=  2040255, Id=83
/dev/hda4 : start= 10442250, size= 29688120, Id= 5
/dev/hda5 : start= 10442313, size=  2040192, Id=83
/dev/hda6 : start= 12482568, size=  2040192, Id=83
/dev/hda7 : start= 14522823, size=  2040192, Id=82
/dev/hda8 : start= 16563078, size=   530082, Id=83
/dev/hda9 : start= 17093223, size= 23037147, Id=83

######################################################################## 
###

I hope this helps someone.

hal

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to