Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HowTo Hack My Gentoo Linux Boot CD
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
securiteaze
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Tulsa,Oklahoma

PostPosted: Tue Nov 05, 2002 10:42 pm    Post subject: HowTo Hack My Gentoo Linux Boot CD Reply with quote

HowTo Hack My Gentoo Linux Boot CD
Version 1.0b
Disclaimer: This may lead to the creation of many coasters (broken cdr's)

  1. Acquire the gentoo bootable CD iso:*

    Either by downloading it
    Code:
    mkdir /PathToISO
    cd /PathToISO
    wget http://ibiblio.org/pub/Linux/distributions/gentoo/releases/1.2/gentoo-ix86-1.2.iso

    Or extract it from a previously burned cd
    Code:
    mkdir /PathToISO
    dd if=/dev/cdroms/cdrom0 of=/PathToISO/gentoo.iso


  2. Create a directory and copy the contents of a gentoo boot CD into it.*
    Code:
    mkdir /mnt/loop0
    mount /PathToISO/gentoo-ix86-1.2.iso /mnt/loop0 -o loop
    mkdir /mnt/iso
    cd /mnt/loop0
    find | cpio -pdm /mnt/iso
    cd /mnt
    umount /mnt/loop0


  3. Install mkisofs, which is now part of app-cdr/cdrtools (required for this howto)*
    Code:
    emerge sync
    emerge cdrtools


  4. To add your own kernel (Don't forget to include supoport for ramdisks and initrd)
    Code:
    cp /usr/src/KernelVersion/arch/i386/boot/bzImage /mnt/iso/isolinux/kernel


  5. To change the contents of the ramdrive

    1. Copy and uncompress the image
      Code:
      cp /mnt/iso/isolinux/rescue.gz /mnt
      cd /mnt
      gunzip rescue.gz

    2. Mount the image
      Code:
      mount /mnt/rescue /mnt/loop0 -o loop

    3. Creating a larger loopback filesystem (64M) and mount it
      Code:
      dd if=/dev/zero of=/mnt/bigrescue  bs=512k count=128
      mke2fs -F /mnt/bigrescue
      mount /mnt/bigrescue /mnt/loop1

    4. Copy the original content of the ramdisk to the new larger one
      Code:
      cp -a /mnt/loop0/* /mnt/loop1/
      umount /mnt/loop0

    5. Add whatever software you like
      Code:
      cp /usr/bin/links2 /mnt/loop1/usr/bin

      Don't forget to include the needed libraries!
      To find out which libraries are needed us the 'ldd' command.
      Code:
      user@hostname#ldd /usr/bin/links2
              libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4001b000)
              libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4004b000)
              libdl.so.2 => /lib/libdl.so.2 (0x40117000)
              libgpm.so.1 => /usr/lib/libgpm.so.1 (0x4011a000)
              libm.so.6 => /lib/libm.so.6 (0x40120000)
              libc.so.6 => /lib/libc.so.6 (0x40143000)
              libncurses.so.5 => /lib/libncurses.so.5 (0x40266000)
              /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

    6. Test the ramdisk image
      Code:
      mount /proc /mnt/loop1/proc -o bind
      chroot /mnt/loop1 /bin/sh
      echo "nameserver 127.0.0.1" > /etc/resolv.conf
      links2 example.com
      exit

    7. Unmount, compress, and add the new ramdisk
      Code:

      umount /mnt/loop1/proc
      umount /mnt/loop1
      gzip /mnt/bigrescue
      cp /mnt/bigrescue.gz /mnt/iso/isolinux/rescue.gz

    8. Configure boot parameters for to bigger ramdisk.
      Edit /mnt/iso/isolinux/isolinux.cfg.
      There are two lines that look this:
      Code:

      APPEND devfs=nomount vga=normal load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=22000 <snip>

      Change the 'ramdisk_size' parameter to reflect the new size of the ramdisk.
      Both instances should now look like this:
      Code:
      APPEND devfs=nomount vga=normal load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=65536 <snip>



  6. To add custom/new gentoo build tarballs or other such things
    Code:
    cp /Path/Somewhere/UberGentoo.tar.bz2 /mnt/iso/
    cp /Path/Somewhere/stage1-ix86-1.4_rc1-20020908-1208.tar.bz2 /mnt/iso/


  7. To remove old gentoo build tarballs:
    Code:
    rm /mnt/iso/stage?-*1.2.tbz2


  8. To make the image iso image:
    Code:
    cd /mnt/iso
    rm /mnt/iso/isolinux/boot.catalog
    mkisofs -no-emul-boot -boot-load-size 4 -boot-info-table -r -b isolinux/isolinux.bin -c isolinux/boot.catalog -o /mnt/newgentoo.iso .
    This will creat a bootable ISO image in /mnt named newgentoo.iso

*Update - changed recursive copy method in favor of cpio 11-06-02
*Update - mkisofs is now part of cdrtools 11-06-02
*Update(1.0b) - added iso aquisition, altered layout 11-08-02
*Update - fixed typo /mnt/loop1 -> /mnt/loop1/proc

Comments? Suggestions?
_________________
Blah..


Last edited by securiteaze on Tue Nov 12, 2002 7:07 am; edited 4 times in total
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Wed Nov 06, 2002 2:30 am    Post subject: Reply with quote

One thing to note: I've had problems when creating the ramdisk and just doing a cp -a. I had more success going into the directory tree I want to copy and doing " find | cpio -pdm <destination> "

that was one of the major issues I ran into when I was making a custom Gentoo cd in this thread: http://forums.gentoo.org/viewtopic.php?t=14619&highlight=
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Nov 06, 2002 11:54 am    Post subject: Reply with quote

can't emerge mkisofs

packages.mask says it is now obsolete, and that cdrtools took it's place.

so how does this affect this cd hacking? ;)
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
securiteaze
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Tulsa,Oklahoma

PostPosted: Wed Nov 06, 2002 4:18 pm    Post subject: Reply with quote

The mkisofs package is now part of cdrtools, changes are reflected above.
_________________
Blah..
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Wed Nov 06, 2002 7:17 pm    Post subject: Reply with quote

Another thing to note for people doing this (as I found out in the thread I posted), you can use VMWare to test your ISO before you burn it. In the preferences, under the cdrom section you can have it point to an image. When it boots, it will use the ISO image directly from harddisk. If it doesn't boot right, you just saved yourself a CDR.

I was so glad when I found this information out, it saved me alot of CDRs.
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Nov 06, 2002 9:44 pm    Post subject: Reply with quote

ok cdrtools it is :)

using vmware is a good idea.. but what about the good ol fashion way of a cd-rw ? if it doesn't work, reformat it :)

I'll give this a go sometime.. but

emerge -u world just destroyed my gentoo system.. the ONLY comand I can do is
Code:
ls
:lol:
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
rottie
n00b
n00b


Joined: 29 Jun 2002
Posts: 10
Location: vancouver, canada

PostPosted: Wed Nov 06, 2002 11:36 pm    Post subject: Hey that is cool but... Reply with quote

Thats cool and I will do it that way if I have to but ... i would like to use my windows machine to add files to the image ... use winiso to plop the files in the iso .. the only problem is :) that when I boot off my new cd i get a md5 checksum error on the cd .. Anyone know how to get around this. Do I just have to create a new checksum .. and how do you do that ?

Thanks for any help.
rottie
Back to top
View user's profile Send private message
securiteaze
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Tulsa,Oklahoma

PostPosted: Fri Nov 08, 2002 3:21 am    Post subject: Reply with quote

Quote:
Thats cool and I will do it that way if I have to but ... i would like to use my windows machine to add files to the image ... use winiso to plop the files in the iso .. the only problem is that when I boot off my new cd i get a md5 checksum error on the cd .. Anyone know how to get around this. Do I just have to create a new checksum .. and how do you do that ?


If you really want to make it in windows, maybe this will help
_________________
Blah..
Back to top
View user's profile Send private message
px
Guru
Guru


Joined: 26 Sep 2002
Posts: 497
Location: Metz, France

PostPosted: Fri Nov 08, 2002 4:38 am    Post subject: Reply with quote

you can create the iso image by this:

dd if=/dev/cdroms/cdrom0 of=/your.iso

I think it's a better way to retrieve the content of the cd, isn't it?
_________________
Nous autres, mordus d'informatique, préférons par-dessus tout passer notre temps à bidouiller nos ordinateurs, plutôt que les utiliser pour faire quelque chose de productif. [Dave Barry]
Back to top
View user's profile Send private message
securiteaze
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Tulsa,Oklahoma

PostPosted: Fri Nov 08, 2002 5:23 pm    Post subject: Reply with quote

Quote:
...I think it's a better way to retrieve the content of the cd, isn't it?
AFAIK we weren't retrieving the contents from the CD, just modifying the contents of the iso.
On the other hand this seems like a good addition to the howto. :wink:
_________________
Blah..
Back to top
View user's profile Send private message
rottie
n00b
n00b


Joined: 29 Jun 2002
Posts: 10
Location: vancouver, canada

PostPosted: Sat Nov 09, 2002 12:42 am    Post subject: Yeah. Did that... Reply with quote

Thats right .. I am not trying to retrieve the contents off the disk.
I would just like to add some of my scripts to the install to make life easy. Maybe a wack of different stages so I can install all of my machines from one disk. i386,i486,i586,i686 etc...

When I edit the iso it is still bootable .. and it "does" boot off of the cd ..
I just get a cd checksum error ... ie
----
Gentoo boot up information <here>
version website blablahblah...

Checking checksum ...
Error : CD checksum failed.
----

er something like that .. I will try and get the exact message when I get home.

My question is .. how do I create a new checksum or how do I remove the check for the checksum .. or an alternative method to put stuff on the cd that wont take me a day to do. ;) (even though I dont really mind doing that.)

Thanks for everyones input ..

rottie
Back to top
View user's profile Send private message
securiteaze
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Tulsa,Oklahoma

PostPosted: Sat Nov 09, 2002 3:29 am    Post subject: Reply with quote

I believe that step 8 in the howto will resolve your checksum problems.
It should not take all day to build a new iso, it takes me less than an hour. :)
_________________
Blah..
Back to top
View user's profile Send private message
et al
n00b
n00b


Joined: 28 Oct 2002
Posts: 1

PostPosted: Sun Nov 10, 2002 10:50 pm    Post subject: Another cd hack Reply with quote

rottie wrote:

.. or an alternative method to put stuff on the cd that wont take me a day to do. ;) (even though I dont really mind doing that.)

Thanks for everyones input ..
rottie


I made a script that puts stage1_rc1, portage and 'lots' of distfiles on gentoo12 cd(s). I tested a chrooted install of the system with it.

here is the code, it's "work in progress" and it will propably not run without modification. (I don't have the time to finish it right now).

You can add your files in the "some includes" section.

Code:

#!/bin/bash
# distgen: create bootable/installable gentoo source cd distribution
#          from the gentoo-1.2 install-iso and the 1.4 stage1-tarbal
#          (move old distsfiles)

# what to put on cd
emergeclass=world   # world/system
emergeadd="openoffice parted"  # at least one! (bash)

# where are gentoo 1.4 stage1 and gentoo1.2 iso
stage1_14=/mnt/gentoo14/stage1-x86-1.4_rc1-20020908-1208.tar.bz2
iso_12=/mnt/gentoo14/gentoo-ix86-1.2.iso

# where to put cd images
isodest=/mnt/gentoo14

# cdwriter ID for my 10x CDRW
cddev="0,1,0"

tmp=/tmp/distgen

# end config

source /etc/make.globals
source /etc/make.conf

mkdir -p $tmp

set -x
# download files
emerge -f -e $emergeclass
emerge -f -e $emergeadd

# packs are ebuilds
#get ebuilds split to "dir pack version"
( emerge -p -e system && emerge -p -e $emergeclass && emerge -p -e $emergeadd ) |\
  grep '\['|awk '{print $NF}'|\
  sed -e 's%\(.*\)/\(.*\)-\([0-9].*\)%\1 \2 \3%' \
  > ${tmp}/packs

# remove doubles keep order (to get bootstrap on cd1)
> ${tmp}/packs.sort
while read dir pack version
do
 if ! grep -q "$dir $pack $version" ${tmp}/packs.sort
 then
 echo "$dir $pack $version" >> ${tmp}/packs.sort
 fi
done < ${tmp}/packs

# count sizes, sumsize per pack
balnum=0
while read dir pack version
do
  sumsize=0
  awk '{print $3}' ${PORTDIR}/$dir/$pack/files/digest-$pack-$version > $tmp/tarbals.tmp
  while read tarbal
  do
    if [[ -e ${DISTDIR}/$tarbal ]]
    then
      let balnum=$balnum+1
      size=$(ls -s --block-size=2048 ${DISTDIR}/$tarbal|awk '{print $1}')
      let sumsize=$sumsize+$size
      echo $balnum $dir $pack $version $tarbal $size $sumsize
    else
      echo "not found: ${DISTDIR}/$tarbal" 1>&2
    fi
  done < $tmp/tarbals.tmp
done < ${tmp}/packs.sort > ${tmp}/tarbals


# reverse order and set sumsize per pack for every tarbal
sort -nr ${tmp}/tarbals > ${tmp}/tarbals.rev
packold=""
sumsizeold=0
while read balnum dir pack version tarbal size sumsize
do
  if [[ "$packold" == "$pack-$version" ]]
  then
    sumsize=$sumsizeold
  fi
  echo $balnum $dir $pack $version $tarbal $size $sumsize
  packold="$pack-$version"
  sumsizeold=$sumsize
done < ${tmp}/tarbals.rev > ${tmp}/tarbals.rev.sized

# get normal sort again
sort -n ${tmp}/tarbals.rev.sized > ${tmp}/tarbals.sized

# write cd-file add cd destdir "distfiles"
while read balnum dir pack version tarbal size sumsize
do
  echo "$dir/$pack-$version ${DISTDIR}/$tarbal $sumsize distfiles"
done < ${tmp}/tarbals.sized > ${tmp}/tarbals.cd

#-----------------


## cd1 files
# portage
tar  cjf ${tmp}/portage.tar.bz2 -C ${PORTDIR} --exclude=./distfiles --exclude=./packages .

# some includes
> ${tmp}/cddesc.cd
echo  ${tmp}/cddesc.cd  > ${tmp}/cd1.incl
echo  $stage1_14  >> ${tmp}/cd1.incl
echo  /var/cache/edb/world >> ${tmp}/cd1.incl
echo  /etc/make.conf >> ${tmp}/cd1.incl
echo  ${tmp}/portage.tar.bz2 >> ${tmp}/cd1.incl
## myself !!
echo  $0 >> ${tmp}/cd1.incl
#echo $(dirname $0)/distinst
cat ${tmp}/cd1.incl| tr " " "\n" > ${tmp}/cd1.incl2

# sum file sizes
cd1sum=0
for i in $(cat ${tmp}/cd1.incl2)
do
  let cd1sum=$cd1sum+$(ls -s --block-size=2048 $i |awk '{print $1}')
done

while read file
do
  echo "cd1files $file $cd1sum"
done < ${tmp}/cd1.incl2 > ${tmp}/cd1.cd


## gentoo-ix86-1.2.iso
mkdir ${tmp}/cdrom
mount -o loop $iso_12 ${tmp}/cdrom
mkdir -p ${tmp}/isolinux/isolinux
cp -R ${tmp}/cdrom/isolinux ${tmp}/isolinux
umount ${tmp}/cdrom
echo  "${tmp}/isolinux/isolinux/boot.catalog" > ${tmp}/cd1.isolinux
echo  "${tmp}/isolinux/isolinux/isolinux.bin" >> ${tmp}/cd1.isolinux
echo  "${tmp}/isolinux/isolinux/isolinux.cfg" >> ${tmp}/cd1.isolinux
echo  "${tmp}/isolinux/isolinux/kernel" >> ${tmp}/cd1.isolinux
echo  "${tmp}/isolinux/isolinux/message.txt" >> ${tmp}/cd1.isolinux
echo  "${tmp}/isolinux/isolinux/rescue.gz ">> ${tmp}/cd1.isolinux

# file sizes
isolinuxsize=0
for i in $(cat ${tmp}/cd1.isolinux)
do
  let isolinuxsize=$isolinuxsize+$(ls -s --block-size=2048 $i |awk '{print $1}')
done

# split to cd with $isolinuxsize as startsize
awk 'BEGIN {maxsize=320000; actsize='$isolinuxsize'; actpack=""; vol=1}
            {if (actpack != $1) actsize=actsize+$3;
            if (actsize > maxsize) { vol=vol+1; actsize=$3 }  ;
       print vol, actsize, $1, $2, $3, $4; actpack=$1}
    ' ${tmp}/cd1.cd ${tmp}/tarbals.cd \
    > ${tmp}/cddesc




# mkiso
nvol=$(tail -n1 ${tmp}/cddesc|awk '{print $1}')
awk -F"/| " '{print $1,$NF"/"$(NF-2)}' ${tmp}/cddesc > ${tmp}/cddesc.cd
n=1
while [[ $n -le $nvol ]]
do
  > ${tmp}/cddesc.cd$n
  > ${tmp}/cd$n
  awk '{if ($1=='$n') print $6"/="$4}' ${tmp}/cddesc >> ${tmp}/cddesc.cd$n
#remove double entries (hack, different packs use the same tarbals)
  sort -u ${tmp}/cddesc.cd$n > ${tmp}/cddesc.cd$n.sort
  if [[ $n -gt "1" ]]
  then
    mkisofs -R -r -o $isodest/gentoo14-cd${n}.iso \
      -graft-points \
      -path-list ${tmp}/cddesc.cd$n.sort \
      ${tmp}/cd$n ${tmp}/cddesc.cd
  else
    mkisofs -b isolinux/isolinux.bin \
      -c isolinux/boot.catalog \
      -no-emul-boot -boot-load-size 4 -boot-info-table \
      -R -r -o $isodest/gentoo14-cd${n}.iso \
      -graft-points \
      -path-list ${tmp}/cddesc.cd$n.sort \
      ${tmp}/isolinux ${tmp}/cd$n
  fi
#write cdrw
  read -p "burn gentoo14-cd${n}.iso? " ans
  if [[ $ans == "y" ]]
  then
    cdrecord -v -eject speed=10 blank=fast fs=10m dev=$cddev $isodest/gentoo14-cd${n}.iso
  fi
  let n=$n+1
done

exit
#---------------------------
#----------------
#----------------
#---------
exit
#move !!!!!!!!!!
#!!!!!!!!!!
#!!!!!!!!!!!
exit
# ${tmp} ???
source /etc/make.globals
source /etc/make.conf
mkdir ${DISTDIR}/attic/
#set tmp !!!!!!
awk '{print $5}' ${tmp}/tarbals > ${tmp}/distfiles
for i in ${DISTDIR}/*
do
  if ! grep ${i##*/} ${tmp}/distfiles > /dev/null
  then
    echo ">>> move $i > ${DISTDIR}/attic";mv $i ${DISTDIR}/attic/
  else
    echo "||| keep $i"
  fi
done
#!!!!!!!!!!!!!!!
#
##fetchcommand
#\\\\\\\\\\\\\\\\\\
##/etc/make.conf
#FETCHCOMMAND='/tmp/wantcd ${FILE}'
#\\\\\\\\\\\\\\\\\\
##/tmp/wantcd
#source /etc/make.globals
#mount /mnt/cdrom
#wantcd=$(grep $1 /mnt/cdrom/cddesc.cd|awk '{print $1}')
#umount /mnt/cdrom
#echo
#read -p "need cd${wantcd}"
#mount -o loop $isodest/gentoo14-cd${wantcd}.iso /mnt/cdrom
##chose one ...
##mount -o bind /mnt/cdrom/distfiles ${DISTDIR}
##cp /mnt/cdrom/distfiles/$1 ${DISTDIR}/

#while read sect ebuild version
#do
#  if [ -e /mnt/genplay/usr/portage/packages/All/$ebuild-$version.tbz2 ]
#  then
#    ls -l /mnt/genplay/usr/portage/packages/$sect/$ebuild-$version.tbz2
#  fi
#done < /tmp/distgen/packs.sort


And the code for the test install (it mounts the cd image).
Code:

#!/bin/bash

tmp=/tmp/instdist

instdest=/mnt/genplay
cdimgepref=/mnt/gentoo14/gentoo14-cd

mkdir -p ${tmp}/cdrom


function mountcd {
  umount ${tmp}/cdrom
  mount -o loop ${cdimgepref}${1}.iso ${tmp}/cdrom
}


mountcd 1

set -x
# http://www.gentoo.org/doc/build.html
# 9.Unpacking the Stage Tarballs

#9.1
if ! [[ -d $instdest ]]
then exit 9
fi
cd $instdest
tar -xvjpf ${tmp}/cdrom/stage1-x86-1.4_rc1-20020908-1208.tar.bz2
mount -o bind /proc $instdest/proc
cp /etc/resolv.conf $instdest/etc/resolv.conf
cd -

# extra: install portage
cd $instdest/usr/portage/
mkdir distfiles packages
tar -xvjpf ${tmp}/cdrom/portage.tar.bz2
cd -
mount -o bind ${tmp}/cdrom/distfiles $instdest/usr/portage/distfiles
cp ${tmp}/cdrom/make.conf $instdest/tmp/
cp ${tmp}/cdrom/world $instdest/tmp/

# 9.2
# now its gone
#chroot /mnt/gentoo /bin/bash

cat << EOSYSTEM  > $instdest/tmp/instsystem
#!/bin/sh
set -x
cp /tmp/make.conf /etc
env-update
source /etc/profile

#10.Getting the Current Portage Tree using Rsync
# we have portage from the cd

#11.Progressing from stage1 to stage2
# Code listing 11.1: Setting make.conf Options
# nano -w /etc/make.conf (Adjust these settings)
#
# make.conf is a copy from cd


#some tests
emerge -f -p system
emerge -V
emerge -p portage
# emerging portage in bootstrap removes make.conf
(sleep 300; cp /tmp/make.conf /etc) &

# Code listing 11.2: Bootstrapping
cd /usr/portage
scripts/bootstrap.sh || exit
sleep 20

#Code listing 11.3: Changing Portage's Storage Path
# export PORTAGE_TMPDIR="/otherdir/tmp"

#12.Progressing from stage2 to stage3
#Code listing 12.1: Installing the Rest of the System
export CONFIG_PROTECT=""
emerge -e -p system
# with packages and recompile all
emerge -e -b system || exit
sleep 30

#13.Final steps: Timezone
ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime

#14.Final steps: kernel and system logger
#we use world file from cdimge ...

#15.Final steps: Install Additional Packages

# now install rest
while read i
do
  echo \$i
  emerge -p \$i
done < /tmp/world

# compile kernel, install boot loader, edit /etc/fstab
# edit /etc/hostname, /etc/hosts, set root pw
# configure network

echo you are now chrooted in $instdest
/bin/bash
EOSYSTEM

chmod u+x $instdest/tmp/instsystem
chroot $instdest /bin/bash -c /tmp/instsystem

echo back from chroot
sleep 2

umount $instdest/usr/portage/distfiles
umount $instdest/proc

Back to top
View user's profile Send private message
mmontg1
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2002
Posts: 129

PostPosted: Mon Nov 11, 2002 7:20 pm    Post subject: Reply with quote

Quote:
mount /proc /mnt/loop1 -o bind


should be

Code:
mount /proc /mnt/loop1/proc -o bind
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Tue Dec 03, 2002 6:35 am    Post subject: Re: Another cd hack Reply with quote

.
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
tagore
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Uruguay

PostPosted: Mon Feb 17, 2003 8:41 pm    Post subject: Reply with quote

Hi All.

I have some questions:

1) For example I want to create a CD live that he is server of games
( Counter-strike ) but I like to know since I can do so that when initiates she has an IP predetermined by my, and that it is not possible to be changed.

2) Eliminate the detection of keyboard. Load default predetermined by my.

3) Automatic entrance after the detection of hardware.

4) Automatic starting of the service ( Counter-Strike server )

Summarizing that places the CD and automaticamente it takes the service without interaction with a human.

it is this possible?
cheers.
Back to top
View user's profile Send private message
acidreign
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2002
Posts: 122
Location: Brisbane, Australia

PostPosted: Tue Feb 18, 2003 4:34 pm    Post subject: Counterstrike Reply with quote

Yes, this is possible, you could follow the instructions as per above, maybe 64mb might not be enough for the CS ramdisk though.

You would have to modify "inittab" to start your counterstrike server directly. I would be happy to help you with this project if you wish to persue it ?
Back to top
View user's profile Send private message
tagore
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Uruguay

PostPosted: Tue Feb 18, 2003 6:25 pm    Post subject: Reply with quote

Hi again :P

legend iso # pwd
/mnt/iso
legend iso # ls
isolinux
legend iso # mkisofs -no-emul-boot -boot-load-size 4 -boot-info-table -r -b isolinux/isolinux.bin -c isolinux/boot.catalog -o /mnt/newgentoo.iso
mkisofs: Missing pathspec.
Usage: mkisofs [options] file...

Use mkisofs -help
to get a list of valid options.
legend iso #

what is wrong?

acidreign:
at this moment I am thinking like doing it, acceptance helps :)
Back to top
View user's profile Send private message
tagore
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Uruguay

PostPosted: Tue Feb 18, 2003 8:20 pm    Post subject: Reply with quote

this is for gentoo 1.2 , and how to hack gentoo 1.4???
anyone help me?
cheers.

P.D.: livecd-ng , more info? anyone?
Back to top
View user's profile Send private message
papaC
n00b
n00b


Joined: 25 Apr 2002
Posts: 19
Location: Florida

PostPosted: Wed Feb 19, 2003 4:39 pm    Post subject: Reply with quote

You are missing the "." from the end of your command.

Code:
mkisofs [...all command line options] .

or if you are not in the directory anymore
Code:
mkisofs [...all command line options]  /path/to/use


As for 1.2 vs 1.4 I haven't tried but guess it would be mostly the same.
Back to top
View user's profile Send private message
hmm
n00b
n00b


Joined: 23 Feb 2003
Posts: 14

PostPosted: Sun Feb 23, 2003 3:01 am    Post subject: Reply with quote

hi all,

I tried adding some files of mine to a BOOTable liveCD and I got that infamous checksum error..

Then I tried extracting the ISO image to my HD and copied my files there and then I built a new ISO image w/ both Nero and CDRWIN and used the BOOT image from the original liveCD ISO and STILL I get that damn checksum error!

I looked at securiteazes guide and at stage 8 he uses "isolinux/isolinux.bin" which is 9400 bytes but he loads only 4 sectors (-boot-load-size 4)? But when I extract the BootImage w/ for example IsoBuster its 2000 bytes.
So I tried using "isolinux/isolinux.bin" as a BOOT image but CDRWIN didnt let me load 4 sectors for it nor any other sector size and Nero did something but it didnt work.. ;P

I wanna make my own BOOTable CD w/ extra stages and programs and quake3 server files and such so I can take it to a clean computer and install gentoo w/ everything I need, any1 have any ideas?

Sum1 must have done this in windows too?

PS. maybe that guy that coded ISOLINUX should lighten up a bit ;P DS.

-thx
Back to top
View user's profile Send private message
hmm
n00b
n00b


Joined: 23 Feb 2003
Posts: 14

PostPosted: Sun Feb 23, 2003 4:30 am    Post subject: Reply with quote

*update*

omg I have done it... and guess w/ what?
yup friggin mkisofs...

!long live cygwin!

it was long time ago I used mkisofs, couple of years back on solaris, and its a bit illogical. it seems that boot image needs to be in a "isolinux" subfolder and that mkisofs somehow takes that file and shrinks it to 4 sectors and copies the modified file to the boot sector...

then I needed to be in the same folder as the files (plus the thing above where boot image needs to be in a subfolder named "isolinux") for some strange reason so I had to exclude mkisofs and some other files..

but now after several hours of burning and building images and reading...it works

still if any1 knows how to do this w/ programs such as CDRWIN, Nero and alike plz infrom us.

-thx
Back to top
View user's profile Send private message
pahud
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2002
Posts: 103

PostPosted: Thu Mar 27, 2003 10:41 am    Post subject: Reply with quote

Hello Guys,
1.4_rc3 LiveCD has a blue splash screen on boot.
How can I change that screen to aother picture?
Back to top
View user's profile Send private message
rodrigrj
n00b
n00b


Joined: 01 Apr 2003
Posts: 42
Location: Clarkson University

PostPosted: Tue Apr 01, 2003 6:46 pm    Post subject: Reply with quote

the easiest way i can see is to get a picture and call it gentoo and then put it in the isolinux dir
Back to top
View user's profile Send private message
pahud
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2002
Posts: 103

PostPosted: Wed Apr 02, 2003 12:22 am    Post subject: Reply with quote

rodrigrj wrote:
the easiest way i can see is to get a picture and call it gentoo and then put it in the isolinux dir


I've noticed that the image format is .lss.
If I have a png picture, what is the easiest way to conver it into lss?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum