Author Topic: install plop linux  (Read 5215 times)

chucha

  • Newbie
  • *
  • Posts: 16
install plop linux
« on: March 13, 2012, 18:50:45 PM »
  After booting via grub4dos from ploplinux-4.2.1.iso
I've started installploplinux process to /dev/hda2.
  But -
Copy files to /dev/hda2, please wait...
/tmp/plpinstall.sh: line 33:  2485 Killed                  cp -ar bin dev etc home lib opt root sbin tmp usr var $MNT
Warning: '/proc/partitions' does not exist, disk scan bypassed
Warning: Partition 2 on /dev/hda is not marked Active.
Warning: Device 0x0300: Inconsistent partition table, 2nd entry
  CHS address in PT:  131:0:1  -->  LBA (132048)
  LBA address in PT:  2104515  -->  CHS (2087:13:1)
Fatal: Either FIX-TABLE or IGNORE-TABLE must be specified
If not sure, first try IGNORE-TABLE (-P ignore)

  What the hell ?
An attempt to install linux from real CD (tiny... 4.2.0 )
lead to the pityful result as well.

« Last Edit: March 13, 2012, 18:55:22 PM by chucha »

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2421
  • a command shell is enough to do amazing things
Re: install plop linux
« Reply #1 on: March 13, 2012, 19:21:07 PM »
i need details.

is the drive already partitioned?
is hda2 formatted?

post the install script that is stored in /tmp (as attachment in the additional options)

chucha

  • Newbie
  • *
  • Posts: 16
Re: install plop linux
« Reply #2 on: March 13, 2012, 20:20:52 PM »
  Drive is partitioned,
though there were another attempts, with repartitioning
by fdisk during install procedure.
 I've asked to reformat hda2 at install time.
plpinstall.sh is as follow :
#!/bin/sh

# Plop Linux Harddisk installation script

DEST=/dev/hda2
MNT=/mnt

echo starting ploplinux installation to $DEST in 10 seconds
echo press CTRL-C to abort...
sleep 10

echo Formatting drive $DEST
if ( ! mkfs.ext3 $DEST ) then
   echo
   echo error: cannot format $DEST, you have to create the partition with fdisk
   exit 1
fi
echo New MBR loader
mkdir /boot >& /dev/null
lilo -M /dev/hda

if ( ! mount $DEST $MNT ) then
   echo
   echo error: unable to mount $DEST
   exit 1
fi
mkdir $MNT/proc $MNT/sys

cd /

echo
echo copy files to $DEST, please wait...
cp -ar bin dev etc home lib opt root sbin tmp usr var $MNT

mkdir $MNT/boot
mkdir $MNT/mnt
cp -a /media/syslinux/kernel/bzImage $MNT/boot >& /dev/null
cp -ar /media $MNT

cat << EOF > $MNT/etc/lilo.conf
prompt
timeout=20
default=ploplinux
boot=/dev/hda2
map=/boot/map
lba32
vga=1
compact

image=/boot/bzImage
   label=ploplinux
   read-only
   append="root=/dev/hda2"
EOF

cat << EOF > $MNT/etc/rc.d/init.d/halt
#!/bin/sh
# Begin $rc_base/init.d/halt - Halt Script
# Written by Gerard Beekmans  - gerard@linuxfromscratch.org
. /etc/sysconfig/rc
. \$rc_functions

case "\$1" in
   stop)
      poweroff -d -f
      ;;
   *)
      echo "Usage: {stop}"
      exit 1
      ;;
esac
EOF

chroot $MNT lilo

cat << EOF > $MNT/etc/rc.d/init.d/reboot
#!/bin/sh
# Begin $rc_base/init.d/reboot - Reboot Script
# Written by Gerard Beekmans  - gerard@linuxfromscratch.org
. /etc/sysconfig/rc
. \$rc_functions

case "\$1" in
   stop)
      reboot -d -f
      ;;
   *)
      echo "Usage: {stop}"
      exit 1
      ;;
esac
EOF

cat << EOF > $MNT/etc/rc.d/init.d/rc.S
#!/bin/sh

# (C) by Plop Elmar Hanhofer  http://www.plop.at
# Licensed under GnuGPL v2
#

PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/bin/:/opt/bin:/opt/sbin:/media/ploplinux/bin;export PATH

echo "System init"

echo " mounting / as rw"
mount / -o remount,rw

echo " mounting proc"
mount -t proc none /proc

echo " mounting sysfs"
mount -t sysfs none /sys

echo " mounting usbfs"
mount -t usbfs none /proc/bus/usb

echo " starting udev"
udevd --daemon
udevadm trigger

echo " mounting devpts"
mount -t devpts -o mode=0620 devpts /dev/pts

grep -v rootfs /proc/mounts > /etc/mtab

echo " setup network loopback device"
ifconfig lo 127.0.0.1 netmask 255.255.255.0

echo " setup hostname"
hostname stroit

if [ -f /etc/rc.local ]
then
   sh /etc/rc.local
fi

exit 0
EOF

cat << EOF > $MNT/etc/rc.local
#!/bin/sh

PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/bin/:/opt/bin:/opt/sbin:/media/ploplinux/bin;export PATH

echo " starting named"
named

exit 0
EOF

cat << EOF > $MNT/etc/fstab
# Begin /etc/fstab
# filesystem    mount-point    fs-type options    dump fsck-order
/dev/hda2    /       auto    defaults    1 1
proc       /proc       proc    defaults    0 0
sysfs       /sys       sysfs    defaults    0 0
devpts       /dev/pts    devpts    gid=4,mode=620    0 0
shm       /dev/shm    tmpfs    defaults    0 0
usbfs           /proc/bus/usb    usbfs   devgid=14,devmode=0660 0 0
# End /etc/fstab
EOF

chmod 754 $MNT/etc/rc.d/init.d/halt
chmod 754 $MNT/etc/rc.d/init.d/reboot
chmod 754 $MNT/etc/rc.d/init.d/rc.S

chmod 754 $MNT/etc/rc.local

echo 127.0.0.1   stroit localhost.localdomain localhost > /etc/hosts
echo dhclient > $MNT/etc/rc.d/rc3.d/S10network

chmod 754 $MNT/etc/rc.d/rc3.d/S10network

echo
echo install complete
 

chucha

  • Newbie
  • *
  • Posts: 16
Re: install plop linux
« Reply #3 on: May 20, 2012, 19:08:36 PM »
I can not install ploplinux 4.2.2-X   or  4.2.2-X-tiny
after booting  off .iso as well as off real CD.

The final words of diagnostic are :
...
copy files to /dev/sda3 ...
Warning : /proc/partitions does not exist,
     disk scan bypassed.
....
Fatal : Either FIX-TABLE or IGNORE-TABLE
      must be specified
If not sure first try IGNORE-TABLE  (-p ignore)

What do theese words mean,
                  and how to overcome all that ?