Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[mini-HowTo] Gentoo Linux LiveCD for Dummies!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 16, 17, 18, 19, 20, 21  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Apocalypse_Now
n00b
n00b


Joined: 10 Aug 2004
Posts: 44

PostPosted: Fri Aug 19, 2005 5:01 am    Post subject: Reply with quote

Know to excuse to my poor man ingles. I have followed all the passages without difficulty. I run the script /build, appears the message that it indicates to run /before-build and after which prompt is executed, been and nothing but. Wait for all the night, thinking that it had been time to arm iso, but never was created. Now I ask, can be that this happens, because i make the distro in the /home/usuario directory, like root? I clarify that in script, it changes the necessary thing so that works.


Thank


Sepan disculpar mi pobre ingles. He seguido todos los pasos sin dificultad. Corro el script ./build, aparece el mensaje que indica correr el ./before-build y luego de que se ejecuta, queda el prompt y nada mas.
Espere toda la noche, pensando que llevaba tiempo armar la iso, pero nunca se creó.
Ahora pregunto, ¿puede ser que esto ocurra, porque arme la distro en el directorio /home/usuario, como root?
Aclaro que en el script, cambie lo necesario para que funcione.


Gracias


PD: Si alguien habla español, se lo agradeceré.
Back to top
View user's profile Send private message
hanni_ali
n00b
n00b


Joined: 16 Jun 2005
Posts: 57
Location: UK, London

PostPosted: Thu Aug 25, 2005 6:14 pm    Post subject: Reply with quote

I have created livecd's using this method and they are relatively successful

However I cannot get one to automount flash devices and successfully mount fdd in user mode (not as root) by successfully i mean the folder mnt is not accessible even if you can mount the device

Hanni
Back to top
View user's profile Send private message
Hyp
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 192

PostPosted: Thu Sep 08, 2005 4:35 pm    Post subject: Reply with quote

Hi,

I created a livecd and it's almost working.
If I boot, I get the error message
Code:
mount: Mounting /dev/ram0 on /newroot failed invalid argument

My /boot/grub/menu.lst
Code:
default 0
timeout 5
splashimage=(cd)/boot/grub/splash.xpm.gz

title=Gentoo Linux mit Optionen
root (cd)
kernel (cd)/boot/kernel-genkernel-x86-2.6.12-gentoo-r9 root=/dev/ram0 rw init=/linuxrc looptype=squashfs loop=/livecd.squashfs udev nodevfs cdroot
initrd (cd)/boot/initramfs-genkernel-x86-2.6.12-gentoo-r9


Can anybody help me ?

Hyp

EDIT: I found a solution: I think I forgot to activate the support for my cdrom in the kernelconfig. Now it is working, but I do not know which option it was. I activated a lot ... nevermind.

GREAT HOWTO !!
Back to top
View user's profile Send private message
cellularmitosis
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2003
Posts: 87

PostPosted: Thu Sep 29, 2005 1:40 pm    Post subject: removing gcc Reply with quote

Thanks for the howto!

I am having a problem removing gcc from my livecd's. The problem is that python is linked to libstdc++ in /usr/lib/gcc-lib, rather than /usr/lib:

Code:

# ldd /usr/bin/python
        libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5 (0xb7da8000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libgcc_s.so.1 (0xb7d7d000)


Thus, when you remove gcc, python no longer works. I won't be doing any compiling from my livecd, so I don't need gcc.

Any ideas?
Back to top
View user's profile Send private message
cellularmitosis
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2003
Posts: 87

PostPosted: Thu Sep 29, 2005 2:36 pm    Post subject: Reply with quote

ahh, my mistake. the left hand side of ldd output shows which libraries a binary is linked to, and the right hand side shows how they resolve on your individual system.

thus, I can just copy the libs like so:

Code:

echo saving gcc-libs
GCC_LIB_PATH=`ldd /usr/bin/python | grep '=>' | awk '{print $3}' | grep /usr/lib/gcc-lib | tail -n1 | perl -pe 's/\/[^\/]*$//'`
cp -a ${GCC_LIB_PATH}/lib* /lib/


and python will still work after removing gcc.
Back to top
View user's profile Send private message
westboy21
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2003
Posts: 135
Location: Raleigh, North Carolina

PostPosted: Sat Oct 15, 2005 5:20 am    Post subject: Reply with quote

Looks like it's my turn to add to this massive discussion. I'm having a few problems with mkisofs. Here is what I get after running the build script, or running each part of the build script manually.

# mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -iso-level 4 -hide -c boot.catalog -o /root/livecd.iso target/
Warning: Creating ISO-9660:1999 (version 2) filesystem.
Warning: ISO-9660 filenames longer than 31 may cause buffer overflows in the OS.
mkisofs: No such file or directory. Invalid node - boot.catalog

I'm done banging my head on the wall, but I might start up again. I spent 4 hours last night trying to figure out why the "cp" step in the build script kept hanging. I mean all it's doing is copying, but 3 hours later, it was stuck with no hard drive activity. I rebooted and I was good to go.

Any takers on my issues?
Back to top
View user's profile Send private message
saturas
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2004
Posts: 104
Location: romania

PostPosted: Mon Oct 17, 2005 6:12 am    Post subject: Reply with quote

hi, i want to ask an interesting question. is it possible to create a livecd that is using my curent configurations? a stage 3 cd with all that i compiled already (something like a backup)?
_________________
"I can't go on. I'll go on."
S.B
Back to top
View user's profile Send private message
westboy21
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2003
Posts: 135
Location: Raleigh, North Carolina

PostPosted: Mon Oct 17, 2005 1:17 pm    Post subject: Reply with quote

Yeah ... search this thread. I vaguely remember there being a link out there to some tools that you can use on any distribution to make a livecd based on your install.
Back to top
View user's profile Send private message
phreak_coder
n00b
n00b


Joined: 29 Aug 2003
Posts: 43

PostPosted: Tue Nov 22, 2005 10:04 am    Post subject: Reply with quote

harry.tx wrote:
Hey everyone!

First of all, thanx for great how to. Second, i had problem :D with udev:
/bin/bash: udev: No such file or directory. What's wrong? I had set init=/bin/bash, when it's set to linuxrc it doesn't work too.
[solved] but i have an another problem:
now, booting is ok but i gen only clean bash :? when i want run manually /sbin/init 3 it's complain about not existing initctl...
[solved]


Hey
i have the exact same problem how did you fix this? or anyone else?
apologies if this has been answerd already it's a long post :)
And many thanks for the excellent tutorial
Back to top
View user's profile Send private message
BeteNoire
Veteran
Veteran


Joined: 25 Sep 2005
Posts: 1827

PostPosted: Sat Nov 26, 2005 12:39 pm    Post subject: Reply with quote

gieltje wrote:
I have made a gentoo wiki of it;

http://gentoo-wiki.com/HOWTO_build_a_LiveCD_from_scratch

I have added my own build script and other nice things. (and a fix for the grub bug)..

Please add other things if I missed something.

There's an error in the scripts. I run build and it stops on "echo "Execute ./before-build now, but first MAKE SURE it has correctly chrooted to the livecd ${TARGET_SOURCE} directory". So, I run ./before-build. It executes and nothing else happens.
Shouldn't they two be the one script? Shouldn't build execute before-build and then before-build go back to executing build?
If it is to be real howto, please fix it. Or people like me, not familiar with making livecds, will waste their precious time thinking what is wrong...
Back to top
View user's profile Send private message
Vouksh
n00b
n00b


Joined: 08 May 2005
Posts: 19

PostPosted: Wed Nov 30, 2005 3:53 am    Post subject: Reply with quote

because it chroots you into the livecd target directory, and the script can't interact with the chrooted environment.
Back to top
View user's profile Send private message
BeteNoire
Veteran
Veteran


Joined: 25 Sep 2005
Posts: 1827

PostPosted: Wed Nov 30, 2005 11:16 am    Post subject: Reply with quote

Uhm... so what should I do? Exit chroot and restart "build"? But how to make it run from the point it ended?
Back to top
View user's profile Send private message
loux.thefuture
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 135

PostPosted: Thu Dec 01, 2005 10:52 am    Post subject: newroot is deprecated ? Reply with quote

Hello,
in the howto build a liveCD from scratch, i think you forget to delete the line mkdir newroot
because it's just use in the deprecated function to build initrd ?
Great job !
Loux
PS : i'm creating a little script to build a livecd with your howto, i will publish it
_________________
"So long and thanks for all the fishs !"
Back to top
View user's profile Send private message
loux.thefuture
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 135

PostPosted: Thu Dec 01, 2005 3:40 pm    Post subject: initrd reboot ? Reply with quote

Hello,
i'm trying to follow the steps of the howto but during the boot stage, i have the following error :
Booting (initramfs)......
/bin/sh: error while loading shared libraries: cannot make segment writable for relocation: Permission denied

the script that i use to build the livecd and the config of the kernel are in my server :
http://loux.homelinux.org/~loux/livecd/
(i use a lot of sudo because i don't want running my script whith sudo to not execute action i don't want !)
thanks
loux
_________________
"So long and thanks for all the fishs !"
Back to top
View user's profile Send private message
Lucio
n00b
n00b


Joined: 05 Dec 2005
Posts: 8

PostPosted: Wed Dec 07, 2005 9:11 am    Post subject: Reply with quote

Hi everybody;
Very usefull howto and lot of comments.
However I didn't find the solution to my pb.

My system loops for ever... every seems to work fine; but at the end of the linuxrc, back to grub....

When i play with /bin/sh instead of linuxrc, i reach the end of the process:
Code:

# pivot_root . newroot
> Ok (at least no error)

# exec chroot . /bin/sh
> Ok (at least no error)

exec /sbin/init ${CMDLINE} where ${CMDLINE}="root=/dev/ram0 rw init=/linuxrc cdroot"
> No good: Usage: init 012345....



Any idea?

Many thanks in advance.

Lucio
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


Joined: 28 Apr 2004
Posts: 737
Location: Florence, Italy

PostPosted: Wed Dec 07, 2005 9:29 pm    Post subject: Reply with quote

Instead of "exec /sbin/init ${CMDLINE}" use only "exec /sbin/init".
_________________
It isn't enough to win - everyone else must lose, and you also have to rub it in their face (maybe chop off an arm too for good measure).
Animebox!
Back to top
View user's profile Send private message
metalfan
Apprentice
Apprentice


Joined: 09 Apr 2005
Posts: 260
Location: 127home0sweet0home1 .endofinternet.net

PostPosted: Wed Dec 07, 2005 9:47 pm    Post subject: Reply with quote

if the cd doesnt even start to boot, the error has to be somewhere in the build script or while it is running right?

burned the cd with this command, is that okay ?

Code:

cdrecord dev=ATAPI:0,1,0 speed=1 driveropts=burnproof -v -eject -dao livecd.iso


greets
metalfan
_________________
please add [SOLVED] to the topic if you found the answer
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


Joined: 28 Apr 2004
Posts: 737
Location: Florence, Italy

PostPosted: Wed Dec 07, 2005 9:58 pm    Post subject: Reply with quote

That's ok, I'd be more concerned with the mkisofs command you used. Does grub run normally?
_________________
It isn't enough to win - everyone else must lose, and you also have to rub it in their face (maybe chop off an arm too for good measure).
Animebox!
Back to top
View user's profile Send private message
Lucio
n00b
n00b


Joined: 05 Dec 2005
Posts: 8

PostPosted: Wed Dec 07, 2005 10:09 pm    Post subject: Reply with quote

Hi, thks for the quick response.

Yes grub boots fine and allows me to boot my "installed gentoo", windows or the "live cd".
And with the linuxrc from the howto, it loops for ever.

I will try to modify the last line and will remove the $CMDLINE parameter.

I kepp you informed.

Lucio
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


Joined: 28 Apr 2004
Posts: 737
Location: Florence, Italy

PostPosted: Wed Dec 07, 2005 10:26 pm    Post subject: Reply with quote

Lucio wrote:
Hi, thks for the quick response.

Yes grub boots fine and allows me to boot my "installed gentoo", windows or the "live cd".
And with the linuxrc from the howto, it loops for ever.

I will try to modify the last line and will remove the $CMDLINE parameter.

I kepp you informed.

Lucio


Sorry I should have quoted properly. The question about grub was for metalfan.
_________________
It isn't enough to win - everyone else must lose, and you also have to rub it in their face (maybe chop off an arm too for good measure).
Animebox!
Back to top
View user's profile Send private message
BeteNoire
Veteran
Veteran


Joined: 25 Sep 2005
Posts: 1827

PostPosted: Wed Dec 07, 2005 10:38 pm    Post subject: Reply with quote

I'm wondering why doesn't anybody answer my question? Was it so "lame"?
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


Joined: 28 Apr 2004
Posts: 737
Location: Florence, Italy

PostPosted: Wed Dec 07, 2005 11:02 pm    Post subject: Reply with quote

BeteNoire wrote:
I'm wondering why doesn't anybody answer my question? Was it so "lame"?


Maybe nobody knows?
_________________
It isn't enough to win - everyone else must lose, and you also have to rub it in their face (maybe chop off an arm too for good measure).
Animebox!
Back to top
View user's profile Send private message
BeteNoire
Veteran
Veteran


Joined: 25 Sep 2005
Posts: 1827

PostPosted: Wed Dec 07, 2005 11:07 pm    Post subject: Reply with quote

So... how most people here are able to make their livecds following this howto? I am not and stuck with no info about what to do.
Back to top
View user's profile Send private message
loux.thefuture
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 135

PostPosted: Fri Dec 09, 2005 12:26 pm    Post subject: unmerge before making sqashfs file Reply with quote

Hello,
for 'lame' : i found that on web -> gentoo -> on-line database->lame -> mp3 encoder !

i don't know if it is a good idea to unmerge so packages before making the squash file in the howto,
for example linux-headers, gcc, automake, autoconf ... ?

Loux
_________________
"So long and thanks for all the fishs !"
Back to top
View user's profile Send private message
Lucio
n00b
n00b


Joined: 05 Dec 2005
Posts: 8

PostPosted: Sun Dec 11, 2005 6:02 pm    Post subject: Reply with quote

Hi,

Quote:

Instead of "exec /sbin/init ${CMDLINE}" use only "exec /sbin/init".


I've tried, but there is no difference. It loops for ever...

Any idea....

Lucio
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 Previous  1, 2, 3 ... 16, 17, 18, 19, 20, 21  Next
Page 17 of 21

 
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