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 ... 17, 18, 19, 20, 21  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
metalfan
Apprentice
Apprentice


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

PostPosted: Mon Dec 12, 2005 1:50 pm    Post subject: Reply with quote

[EDIT] my fault, crap deleted [/EDIT]

greets
metalfan
_________________
please add [SOLVED] to the topic if you found the answer


Last edited by metalfan on Sun Jul 16, 2006 7:02 am; edited 1 time in total
Back to top
View user's profile Send private message
thoffmeyer
Apprentice
Apprentice


Joined: 11 Apr 2004
Posts: 208
Location: GMT -5 Hours

PostPosted: Tue Dec 13, 2005 3:05 am    Post subject: Reply with quote

I've been looking for a post like this, thanks :P
_________________
Conrad Guide, Current Maintainer

Join us on IRC
Server: irc.freenode.net
Channel: #conrad
Back to top
View user's profile Send private message
LD
Guru
Guru


Joined: 23 Dec 2003
Posts: 336
Location: Middle of No-Where Granbury, Tx

PostPosted: Sun Dec 25, 2005 5:36 am    Post subject: Reply with quote

Great howto.

Does anyone know of ways to save off a config file to something like a USB stick in a way similar to KNoppix?
_________________
[Owner/Operator: Dhampir Dreams]
Last.fm profile
Netflix Profile
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Tue Dec 27, 2005 1:50 pm    Post subject: Reply with quote

Sorry for the late answers, I hope you 2 guys are still reading this.


Lucio wrote:
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


When I answered you the first time I had misunderstood, sorry. I didn't get that you were issuing the commands by hand under an sh shell. Basically, you can't start init like that. You have to do exactly the same things the linuxrc does, which is exec chroot /bin/sh ... EOF. Look it up in this guide. If you need some more insight on the linusrc script, you can read my own guide which spends some more time explaining things (shameless plug :P).

metalfan wrote:
Lepaca Kliffoth: the cd isnt detected as bootcd, tried several drives. the computer just spins the cd up and then down again and boots from drive. knoppix dvds can boot on this machine...

greets
metalfan


Your BIOS probably has some trouble booting a CD with GRUB on it. It happened to me too a couple of times in the last few days. What I did was moving to ISOLINUX, which works always (barring some VERY buggy bioses). If you need assistance in switching from grub to isolinux, you can read it in my guide (another shameless plug).
_________________
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
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2741
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue Jan 03, 2006 12:30 am    Post subject: Reply with quote

wow, a great documentation, I've hust built my first livecd, but I got a kernel panic.

I get
Code:

Unable to identify CD-ROM format
Unable to identify CD-ROM format

/linuxrc: linue 34: cd: /new/var:  No such file or directory
/linuxrc: linue 35: cd: /new/etc:  No such file or directory
/linuxrc: linue 34: cd: /new/root:  No such file or directory
pivot_root: No such file or directory
/linuxrc: linue 41: dev/console:  No such file or directory
Kernel panic - not syncing: Attemted to kill init!




I am creating an install livecd, well livedvd. I have 20 computer and they have the same hardware, so I decided to install one and create a stage-4 (tar.bz2 file) and pack it on a cd/dvd. This file is almost 3 GB large. I don't know exactly where to put this file, on livecd/source/etc wouldn't be a great idea. Should I put ths file on livecd/target/files so that I get this file from the mounted dvd?

Thank a lot for this great documentation.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
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: Tue Jan 03, 2006 8:34 am    Post subject: livecd without gcc Reply with quote

Hello,
i'm trying to build a livecd without gcc, to do that i unmerge it before creating the squashfs file,
but when doing it i remove libstdc++.so.6, my question is :
How can i remove gcc from my livecd while keeping libstdc++.so.6 and other librairies ?
bye
loux
_________________
"So long and thanks for all the fishs !"
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Tue Jan 03, 2006 12:14 pm    Post subject: Reply with quote

You shouldn't be doing that if you don't know exactly what you're doing. The only good method is to make a package of gcc and manually delete all the executables and stuff you don't need. Of course unmerging it will cripple your system because you need the libraries installed by the gcc package.
_________________
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
loux.thefuture
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 135

PostPosted: Tue Jan 03, 2006 12:38 pm    Post subject: livecd whitout gcc Reply with quote

Hello,
i understand that unmerging gcc could cause me a lot of trouble due to libstdc++ library
but there is a package libstdc++-v3 to replace gcc-3.3.4
so can we create such a package for replacing gcc-3.4.4 ?
Loux
_________________
"So long and thanks for all the fishs !"
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2741
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue Jan 03, 2006 6:17 pm    Post subject: Reply with quote

pablo_supertux wrote:
wow, a great documentation, I've hust built my first livecd, but I got a kernel panic.

I get
Code:

Unable to identify CD-ROM format
Unable to identify CD-ROM format

/linuxrc: linue 34: cd: /new/var:  No such file or directory
/linuxrc: linue 35: cd: /new/etc:  No such file or directory
/linuxrc: linue 34: cd: /new/root:  No such file or directory
pivot_root: No such file or directory
/linuxrc: linue 41: dev/console:  No such file or directory
Kernel panic - not syncing: Attemted to kill init!




I am creating an install livecd, well livedvd. I have 20 computer and they have the same hardware, so I decided to install one and create a stage-4 (tar.bz2 file) and pack it on a cd/dvd. This file is almost 3 GB large. I don't know exactly where to put this file, on livecd/source/etc wouldn't be a great idea. Should I put ths file on livecd/target/files so that I get this file from the mounted dvd?

Thank a lot for this great documentation.


I am such an idiot, I forgot to enable squashfs :lol: :oops: everything works fine, now.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
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 Jan 04, 2006 12:12 pm    Post subject: Re: livecd whitout gcc Reply with quote

loux.thefuture wrote:
Hello,
i understand that unmerging gcc could cause me a lot of trouble due to libstdc++ library
but there is a package libstdc++-v3 to replace gcc-3.3.4
so can we create such a package for replacing gcc-3.4.4 ?
Loux


There's no such package so you'll have to do it all by hand.
_________________
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
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Jan 10, 2006 11:15 am    Post subject: LiveCD hangs at "Copying read-write image contents to t Reply with quote

Hi,

I built a LiveCD following th instructions at http://gentoo-wiki.com/HOWTO_build_a_LiveCD_from_scratch -- it seems to work well, except at
Code:
>> Copying read-write image contents to tmpfs

the system keeps hanging for about 5-10 minutes. After that, the booting goes on properly and everything seems to be fine.

I built the initrd using genkernel 3.3.10. I identified the section of the genkernel linuxrc script to do that "copying read-write" action, but I can't figure out what in detail causes the long hanging. I think I have quite an up-to-date machine (P IV 2400 w/ 768MB RAM).

/usr/share/genkernel/generic/linuxrc (ll. 570-613):
Code:

if [ ! "${USE_UNIONFS_NORMAL}" -eq '1' ]
        then
                good_msg "Copying read-write image contents to tmpfs"
                # Copy over stuff that should be writable
                (cd ${NEW_ROOT}/${FS_LOCATION}; cp -a ${ROOT_TREES} ${NEW_ROOT})

                # Now we do the links.
                for x in ${ROOT_LINKS}
                do
                        if [ -L "${NEW_ROOT}/${FS_LOCATION}/${x}" ]
                        then
                                ln -s "`readlink ${NEW_ROOT}/${FS_LOCATION}/${x}`" "${x}" 2>/dev/null
                        else
                                # List all subdirectories of x
                                for directory in `find "${NEW_ROOT}/${FS_LOCATION}/${x}" -type d 2>/dev/null`
                                do
                                        ## Strip the prefix of the FS_LOCATION
                                        directory=${directory#${NEW_ROOT}/${FS_LOCATION}/}

                                        ## Skip this directory if we already linked a parent directory
                                        if [ "${curent_parrent}" != '' ]; then
                                                var=`echo "${directory}" | grep "^${curent_parrent}"`
                                                if [ "${var}" != '' ]; then
                                                        continue
                                                fi
                                        fi
                                        ## Test if the directory exists already
                                        if [ -e "/${NEW_ROOT}/${directory}" ]
                                        then
                                                # It does exist, link all the individual files
                                                for file in `ls /${NEW_ROOT}/${FS_LOCATION}/${directory}`
                                                do
                                                if [ ! -d "/${NEW_ROOT}/${FS_LOCATION}/${directory}/${file}" ] && [ ! -e "${NEW_ROOT}/${directory}/${file}" ]; then
                                                                ln -s "/${FS_LOCATION}/${directory}/${file}" "${directory}/${file}" 2> /dev/null
                                                        fi
                                                done
                                        else
                                                # It does not exist, make a link to the livecd
                                                ln -s "/${FS_LOCATION}/${directory}" "${directory}" 2>/dev/null
                                                current_parent=${directory}
                                        fi
                                done
                        fi
                done


I have to add that I'm emulating the iso image with qemu, but I gave it 360 megs of RAM, and more important: Knoppix and other LiveCD images run fine. So I think it's not in the qemu.

Does somebody have an idea why that "copying read-write image contents to tmpfs" takes forever? Possibly also a solution how to shorten it?
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Tue Jan 10, 2006 7:02 pm    Post subject: Re: LiveCD hangs at "Copying read-write image contents Reply with quote

lx0 wrote:
Does somebody have an idea why that "copying read-write image contents to tmpfs" takes forever? Possibly also a solution how to shorten it?


Does it take as much when you run it from CD (I mean, without qemu)?
_________________
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
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Wed Jan 11, 2006 8:13 am    Post subject: Re: LiveCD hangs at "Copying read-write image contents Reply with quote

Lepaca Kliffoth wrote:
lx0 wrote:
Does somebody have an idea why that "copying read-write image contents to tmpfs" takes forever? Possibly also a solution how to shorten it?


Does it take as much when you run it from CD (I mean, without qemu)?


After having had wasted some blank CDs on other probs, I had been switching to qemu. It seemed to work fine with other Live-Distros. Also, it appeared to be the same if I burned a real CD or emulated the image with qemu.
However, I just gave it another try with the real burning. Now the "Copying ..." process still takes about 20 seconds (btw, on quite a fast machine), but by far not as long as with qemu. So possibly there was my mistake in assuming that qemu worked 100% perfect.

Still I wonder why Knoppix booted pretty perfectly with qemu while our LiveCD wouldn't.
_________________
lxg.de – codebits and tech talk
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 Jan 11, 2006 8:30 am    Post subject: Reply with quote

Qemu is NOT perfect.
What about burning to some rewritable media -_-'
_________________
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
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Wed Jan 11, 2006 8:39 am    Post subject: Reply with quote

Lepaca Kliffoth wrote:
Qemu is NOT perfect.

Well, obviously not. ;-) But after having tried it with Knoppix, I thought there wouldn't be anymore serious problems.

Lepaca Kliffoth wrote:
What about burning to some rewritable media -_-'

Yes, I know -- but that would require me to go to that thing called "real world"...
Seriously, I use CDs so seldom that I still live from the pile I got myself quite a year ago. Same with RWs... I just don't need them (normally ;-)).
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Wed Jan 11, 2006 9:37 am    Post subject: Reply with quote

I just tested the Gentoo 2005.1-r1-minimal installation CD, it also works fine with qemu, especially when it comes to "Copying read-write image contents to tmpfs". Seems they use a different linuxrc script.

I'll see if I find out some more, but I better don't stuff it into this thread but I'll post it at http://gentoo-wiki.com/Talk:HOWTO_build_a_LiveCD_from_scratch
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
xanas3712
Guru
Guru


Joined: 15 Oct 2004
Posts: 455

PostPosted: Sat Jan 21, 2006 8:38 pm    Post subject: Reply with quote

Can anyone explain exactly what this does?

Quote:

tar cvpf ../../target/files/etc.tar * .[[:alnum:]]*


I know that cvpf is just to create an archive with files in that directory (etc) but what does the .[[:alnum:]]* do exactly? I can't find any syntax like that elsewhere to explain ...
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Sun Jan 22, 2006 8:38 am    Post subject: Reply with quote

It's a regular expression, it means "any letter or number"
_________________
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
xanas3712
Guru
Guru


Joined: 15 Oct 2004
Posts: 455

PostPosted: Sun Jan 22, 2006 4:22 pm    Post subject: Reply with quote

Ok, but what does it cover that the pure wildcard * does not?

I basically followed this guide and am pretty close to having everything working now (x is the only thing lacking as I'm not sure how to log into kdm yet lol)..

I combined it with the wiki guide (which I used before and the genkernel initrd didn't do things right.. there was no tmpfs for var/ tmp/ etc. ) so that created a few issues. But anyway I just used * since I didn't know what that was for.

Also, is there a way with tar to exclude path from the archive or to extract without path data? I am guessing not since this script requires changing directory into the path to actually archive but I figured it was worth asking anyway.
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Sun Jan 22, 2006 4:37 pm    Post subject: Reply with quote

xanas3712 wrote:
Ok, but what does it cover that the pure wildcard * does not?

I think it's needed to match filenames starting with a dot or something like that, I don't remember. I suggest you use unionfs and drop the ramdisk mechanism altogether.

xanas3712 wrote:
x is the only thing lacking as I'm not sure how to log into kdm yet lol...

Exit from your current DE, chroot inside the "livecd" mounting what's needed (dev, sys, proc...) and start KDE then configure everything. If you don't want to run as root create a normal user and use that user to log in kdm.

xanas3712 wrote:
Also, is there a way with tar to exclude path from the archive or to extract without path data? I am guessing not since this script requires changing directory into the path to actually archive but I figured it was worth asking anyway.

Code:
man tar

Man is a great app and Google is at least as great. Check out the --exclude option. "Excluding path from the archive" doesn't make much sense. If you want to specify the target directory under wich you want to extract the archive you do that with the -C or --directory option.
_________________
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
xanas3712
Guru
Guru


Joined: 15 Oct 2004
Posts: 455

PostPosted: Sun Jan 22, 2006 7:19 pm    Post subject: Reply with quote

I did check the man page/ --help output on tar before asking that (as well as checking google.)

It's not clear how to do this however, which is why I asked.

I'm not sure I was clear myself, so here is what I'm wanting to know if you can do (you can do it with some other zip programs like winrar in windows).

say you start compressing from ...

/home

and you are compressing

/home/thisuser
/home/thisuser/stuffhere
/home/thatuser
/home/anotheruser

under that.

What I wanted to know is, is there a way to exclude the path, just extracting the files themselves into the directory without recreating the path.
Why would you do this?

Well, in the example (the script here), I had originally just

tar cvpf /root/livecd/source/etc.tar /root/livecd/source/etc/*

Instead of just cd /root/livecd/source/etc/ and then running the command the other way.

Ok, since I did that it created an archive with the files I wanted but with this path, so when it was extracting it was creating that whole path within the etc directory, so it was doing...

tar xpf /new/etc.tar
and of course it created

/new/etc/root/livecd/source/etc/ <-- this path

I wanted to know if it could just extract the files without creating that path. so that it would put those files in that path directly in
/new/etc instead

Again, I'm aware of the -C, and --exclude options, but they are not for this AFAIK. I don't think anything is, so I'm sure the answer is no. I was curious though if there was a good roundabout way of accomplishing the same thing.

BTW, I use google all the time, as well as the forum search. I don't know if you were intentionally condescending or not, but I see that answer far too often. Google only works because people have asked and others have answered. I understand not wanting to waste time but if that's the case isn't it faster/easier just not to answer at all? Man pages, helpful though they may be are not always explicit or clear either, and many learn from examples not always provided by such pages.
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Mon Jan 23, 2006 1:22 am    Post subject: Reply with quote

What you want to exclude is only the base path. Your post made me believe you wanted to extract the single files without paths, meaning that all the files end up in the same directory -- which of course makes no sense for etc and var. I apologize for misunderstanding.
To answer your question, what you have there is basically a non-issue. We're talking about a script here, just 'cd dir && tar <args> && cd ..' and you have solved the problem. If you want you can get rid of the tar mess using unionfs but if you want to abide by veezi's guide you should use his scripts as they are.

About the google and man thing I said that because I'm a dick but I'm also the only one answering you here so you can't complain :lol: :lol: :lol: Joke, joke.
_________________
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
xanas3712
Guru
Guru


Joined: 15 Oct 2004
Posts: 455

PostPosted: Mon Jan 23, 2006 3:05 am    Post subject: Reply with quote

Well, the problem is that I used the wiki scripts and then I came here. I've pretty much fixed those issues though. Everything is working fine.

Thanks for the help btw, you are right that you were the only one who answered.

I'll look into unionfs thing. This has been an interesting enough project for learning basic bash scripting if nothing else. I'm trying to get to the point where this cd will run on any one of the 3 systems I have here with 3d acceleration (so I'm going to have to figure out how to write a script to detect nvidia/ati and modprobe the appropriate driver module along with changing xorg.conf).. Once I've done that I'm going to try to write an installer script so that I can install gentoo from the dvd/cd for some other people that I've been working on converting to linux :)

I could always set them up with an easier to use distro but this is fun and good practice anyway.
Back to top
View user's profile Send private message
scriptX
n00b
n00b


Joined: 05 Jul 2005
Posts: 69

PostPosted: Mon Jan 23, 2006 8:50 am    Post subject: Reply with quote

Code:
gentoo boot # touch /boot/initrd
gentoo boot # dd if=/dev/zero of=/boot/initrd bs=1024k count=8
8+0 records in
8+0 records out
gentoo boot # losetup /dev/loop0 /boot/initrd
/dev/loop0: No such device or address
gentoo boot # ls -al /dev | grep loop0
brw-rw----   1 root disk     7,   0 Oct 19 11:12 loop0
gentoo boot #
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Mon Jan 23, 2006 9:07 am    Post subject: Reply with quote

scriptX wrote:
Code:
gentoo boot # touch /boot/initrd
gentoo boot # dd if=/dev/zero of=/boot/initrd bs=1024k count=8
8+0 records in
8+0 records out
gentoo boot # losetup /dev/loop0 /boot/initrd
/dev/loop0: No such device or address
gentoo boot # ls -al /dev | grep loop0
brw-rw----   1 root disk     7,   0 Oct 19 11:12 loop0
gentoo boot #


Have you tried with /dev/loop/0? Are you sure you have loop device support in your kernel?
_________________
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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 17, 18, 19, 20, 21  Next
Page 18 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