Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[howto] Gentoo Linux Livecd [last update 01/22/2007]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Wed Mar 22, 2006 10:14 pm    Post subject: Reply with quote

DVSoftware wrote:
hello, i have just burned my first successful livecd ISO (errm... made a mistake with linuxrc not executable)

it works correctly, but... (why always have to be "but"?)

1. ehci-hcd and ohci-hcd are not modprobed on boot causing usb devices being not detected
2. my sound don't work (i'm sure i did compiled kernel module but i'll check, i'm writing this from livecd)
3. my screen resolution is wrong (i get 1280x1024 instead of widescreen 1680x1050 - it's not autodetected by knoppix's app - so is there anything i can do about it? ubuntu detects it for example)

other than that it's working fine
i'm planing to create simple hard disk installation script that will copy entire dvd to hard disk, adding portage and needed stuff


1. Have you added coldplug to the default runlevel?
2. I'm searching for a solution myself. The easiest and ugly way is to compile every sound card driver inside the kernel instead of making them modules. For the hardest read on.
3. mkxf86config turned out not to be what I thought. What you really need is the package app-misc/livecd-tools; emerge it and add the service "autoconfig" to the default runlevel, it should take care of sound too.

I have to put this things in the guide and I don't have time :(
_________________
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
DVSoftware
n00b
n00b


Joined: 22 Mar 2006
Posts: 4

PostPosted: Wed Mar 22, 2006 10:49 pm    Post subject: Reply with quote

thanks i'll try it tomorrow :)
Back to top
View user's profile Send private message
DVSoftware
n00b
n00b


Joined: 22 Mar 2006
Posts: 4

PostPosted: Thu Mar 23, 2006 12:49 pm    Post subject: Reply with quote

well app-misc/livecd-tools uses mkxf86config, too :(

EDIT:
I have found a solution. I downloaded kanotix's ddcxinfo which correctly recognizes my resolution :)
now let's see what we got :)
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Thu Mar 23, 2006 2:43 pm    Post subject: Reply with quote

DVSoftware wrote:
I downloaded kanotix's ddcxinfo which correctly recognizes my resolution :)


Can you elaborate on that? Is it "pluggable" in gentoo's autoconfig service?
_________________
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
DVSoftware
n00b
n00b


Joined: 22 Mar 2006
Posts: 4

PostPosted: Thu Mar 23, 2006 3:19 pm    Post subject: Reply with quote

Lepaca Kliffoth wrote:
DVSoftware wrote:
I downloaded kanotix's ddcxinfo which correctly recognizes my resolution :)


Can you elaborate on that? Is it "pluggable" in gentoo's autoconfig service?


yes, it's basically the same thing just expanded to support more modes :)

btw, can i find you somewhere on IRC, i got few questions, but i don't want to flood the forums :)

EDIT: i have added you to ICQ
Back to top
View user's profile Send private message
jkomar
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 192
Location: Calgary, Canada

PostPosted: Sun Mar 26, 2006 3:25 am    Post subject: Reply with quote

DVSoftware wrote:
yes, it's basically the same thing just expanded to support more modes :)


Did you add this into the autoconfig service, or are you somehow running it on its own? This is something that interests me as well.

Thanks,
Jason
_________________
www.jbox.ca
www.flashinthepan.ca
stormfront Portage/Paludis overlay
Back to top
View user's profile Send private message
rjw8703
Apprentice
Apprentice


Joined: 14 Aug 2004
Posts: 246
Location: Auburn, Al

PostPosted: Tue Mar 28, 2006 6:56 am    Post subject: Reply with quote

Can we make live dvd's using this guide?
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 Mar 28, 2006 1:04 pm    Post subject: Reply with quote

rjw8703 wrote:
Can we make live dvd's using this guide?


There's no difference, you just have more space and a bigger iso to fill it :D
_________________
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
benedikt
n00b
n00b


Joined: 31 Mar 2006
Posts: 2
Location: Aachen, Germany

PostPosted: Sat Apr 01, 2006 4:31 pm    Post subject: Reply with quote

My linuxrc doesn't work.

To figure out why, i replaced init=/linuxrc by init=/bin/sh in order to be able to debug.
I traced the script /linuxrc and detected that mounting the squashfs.file doesn't work.

Thats the error-message:

Squashfs 2.2 (released 2005/07/03) (C) 2002-2005 Phillip Lougher
SQUASHFS error: Major/Minor mismatch, filesystem is (3:0), I support (1 : x) or (2 : <= 1)
SQUASHFS error: Major/Minor mismatch, filesystem is (3:0), I support (1 : x) or (2 : <= 1)

I tried to build the squashfs image by
mksquashfs source/ cdroot/livecd.squashfs -2.0
but mksquashfs only says "not supported"

I installed squashfs-tools 2.2_p2.

What can I do?
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Sat Apr 01, 2006 5:17 pm    Post subject: Reply with quote

If there's a problem between the kernel version of the squashfs module and the version of the squashfs tools the simplest way would be to update both the kernel of the livecd and the squashfstools package of the host system to the last version.
_________________
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
benedikt
n00b
n00b


Joined: 31 Mar 2006
Posts: 2
Location: Aachen, Germany

PostPosted: Sun Apr 02, 2006 11:47 am    Post subject: Reply with quote

that's it. I patched the kernel with squashfs3.0 and everything works fine :)
Back to top
View user's profile Send private message
fRIOUX
n00b
n00b


Joined: 13 Jul 2005
Posts: 21

PostPosted: Thu Apr 06, 2006 6:22 am    Post subject: Reply with quote

This is a really cool guide! I really enjoyed using it and I like how I can use the image stuff as a continuing project type thing.

Just for people's information I figure I will tell them my setup.
I have naim, gaim, vim, gvim, mp3blaster, amarok, screen, firefox, fvwm, openoffice-bin, and qt-4.1 installed on my cd with other various tiny things that help it boot. The main reason I made this was so that I could demonstrate my project (a Qt base OSD library)
in Software Systems without bringing a computer to class or installing libs on the computer in the classroom. I tested my CD in the labs and it works GREAT (not on my personal comp, but that's ok for now.) I am crossing my fingers hoping it will work on the comp in the classroom.

Also, my cd's filesystem is 960 megs and the CD is 350~ megs. I have all the tools I use with most of the useflags I use in my normal system, so I am very happy with this.

Lepaca, would you mind if I copied this guide to the gentoo-wiki? I had a few ideas for the guide and I figured that if it is on the Wiki people could contribute to it more. Just a thought.
Thanks again!
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Thu Apr 06, 2006 12:56 pm    Post subject: Reply with quote

That's good to hear!

fRIOUX wrote:
Lepaca, would you mind if I copied this guide to the gentoo-wiki? I had a few ideas for the guide and I figured that if it is on the Wiki people could contribute to it more. Just a thought.
Thanks again!


As long as I'm given credit for it and it's clear that it was originally based on veezi's guide, that's fine. Just mention veezi's name and mine. I like the idea of a guide here updated by me and another updated freely by everyone, maybe some of the problems I'm still figuring out how to solve will get more exposure and will be solved by someone smarter; indeed I'm a little disappointed that in all this time only a couple of guys actually tried to help.
_________________
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
fRIOUX
n00b
n00b


Joined: 13 Jul 2005
Posts: 21

PostPosted: Thu Apr 06, 2006 2:06 pm    Post subject: Reply with quote

Quote:
I like the idea of a guide here updated by me and another updated freely by everyone, maybe some of the problems I'm still figuring out how to solve will get more exposure and will be solved by someone smarter; indeed I'm a little disappointed that in all this time only a couple of guys actually tried to help.


I hear you man; when I looked at this and saw that it was originally posted a while ago and that it's only five pages and even those pages are relatively low content, I was really surprised. Hopefully a wiki will get more traffic.
Back to top
View user's profile Send private message
APLowman
n00b
n00b


Joined: 27 Feb 2006
Posts: 22
Location: Ellicott City, MD

PostPosted: Sat Apr 15, 2006 9:52 am    Post subject: Reply with quote

Reguarding the kernel part of the guide, why don't you use:
genkernel kernel --menuconfig

or if you don't want modules:
genkernel bzImage --menuconfig

Just thought it would save all the run and cancel stuff.

EDIT: I did more searching on genkernel and I think you can save alot of steps by doing this (genkernel>=3.2.0):
--unionfs-dev is used instead of --unionfs becuase it is under development, when this is finalized you will want to use --unionfs
genkernel kernel --menuconfig --unionfs-dev

This will compile a kernel with unionfs support built in, which would mean you could get rid of the kernel patching. Mix this with the kernel compile from this wiki and you get this:
cd /usr/src/linux
make allmodconfig
genkernel kernel --unionfs-dev --no-clean --menuconfig


Then just change pretty much every CD block device from a module to being compiled in the kernel and you should be able to boot on most anything.

EDIT 2: The --unionfs-dev option seems not to work :(

EDIT 3: This made me mad enough to fix it, so get my workaround here. Now you can use genkernel --unionfs-dev if you are using a 2.6 kernel (THIS IS NOW FIXED GET GENKERNEL 3.3.11d)


Last edited by APLowman on Sun Apr 16, 2006 10:42 pm; edited 1 time in total
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 Apr 16, 2006 10:25 am    Post subject: Reply with quote

APLowman wrote:
Reguarding the kernel part of the guide, why don't you use:
genkernel kernel --menuconfig

or if you don't want modules:
genkernel bzImage --menuconfig

Just thought it would save all the run and cancel stuff.

EDIT: I did more searching on genkernel and I think you can save alot of steps by doing this (genkernel>=3.2.0):
--unionfs-dev is used instead of --unionfs becuase it is under development, when this is finalized you will want to use --unionfs
genkernel kernel --menuconfig --unionfs-dev

This will compile a kernel with unionfs support built in, which would mean you could get rid of the kernel patching. Mix this with the kernel compile from this wiki and you get this:
cd /usr/src/linux
make allmodconfig
genkernel kernel --unionfs-dev --no-clean --menuconfig


Then just change pretty much every CD block device from a module to being compiled in the kernel and you should be able to boot on most anything.

EDIT 2: The --unionfs-dev option seems not to work :(

EDIT 3: This made me mad enough to fix it, so get my workaround here. Now you can use genkernel --unionfs-dev if you are using a 2.6 kernel


I'll test it soon but kernel configuration is the last one of my worries. The genkernel thing was just an idea for n00bs, the only good way of doing things is patching and configuring by hand. The guide isn't for n00bs anyway. Thanks for your work, I'll try and test as soon as I can and include your contribution in the guide.
_________________
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
APLowman
n00b
n00b


Joined: 27 Feb 2006
Posts: 22
Location: Ellicott City, MD

PostPosted: Sun Apr 16, 2006 6:09 pm    Post subject: Reply with quote

Lepaca Kliffoth wrote:
I'll test it soon but kernel configuration is the last one of my worries. The genkernel thing was just an idea for n00bs, the only good way of doing things is patching and configuring by hand. The guide isn't for n00bs anyway. Thanks for your work, I'll try and test as soon as I can and include your contribution in the guide.


Thanks, although I dissagree on the patching bit; while genkernel is nicer for noobs it really isn't that diffrent from bulding the kernel yourself. Personally I feel while it is nice to be able to do things the hard way, it isn't necessary or even benificial to do it from scratch all the time. There is really alot of irrational stigma associated with saving time/effort by doing things the easy way around here, but I feel you should only do things the hard way if:
1. You feel like it
2. You can get a reasonable benifit

EDIT: They patched genkernel get 3.3.11d and you don't need my fix
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 Apr 18, 2006 6:13 am    Post subject: Reply with quote

APLowman wrote:
Thanks, although I dissagree on the patching bit; while genkernel is nicer for noobs it really isn't that diffrent from bulding the kernel yourself. Personally I feel while it is nice to be able to do things the hard way, it isn't necessary or even benificial to do it from scratch all the time. There is really alot of irrational stigma associated with saving time/effort by doing things the easy way around here, but I feel you should only do things the hard way if:
1. You feel like it
2. You can get a reasonable benifit

EDIT: They patched genkernel get 3.3.11d and you don't need my fix


Don't worry, your input IS appreciated like anyone else's, the bit about doing by hand was only my opinion, don't give it too much weight. Now, if I could just find enough time to update the damn guide...
_________________
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
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 655
Location: Bonn

PostPosted: Fri May 12, 2006 8:22 am    Post subject: Reply with quote

hi,

i just started building a new LiveCD for our CIP-Pool (currently using a pretty messed up Knoppix). After having some trouble getting unionfs-1.1.4-r2 into the latest 2.6-kernel, i found out, that i had to use the patched sources like this:

Code:

ebuild /usr/portage/sys-fs/unionfs-1.1.4-r2.ebuild unpack
ebuild /usr/portage/sys-fs/unionfs-1.1.4-r2.ebuild setup
cd /var/tmp/portage/unionfs-1.1.4-r2/work/unionfs-1.1.4/
./patch-kernel.sh /usr/src/linux/


then it compiled fine, if i just used the 1.1.4-source it always skipped out of kernel-compilation.
it still gives warning about unsupported kernel-version, but that you can either ignore (since it is only a warning) or set the parameter in fistdev.mk.

Hope that helps a little...
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Sat May 27, 2006 6:40 pm    Post subject: Reply with quote

I'm having trouble rewriting halt.sh and reboot.sh to get the damn thing to reboot and halt, has anyone solved that problem?
_________________
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
paluszak
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 224
Location: Warsaw, Poland

PostPosted: Fri Jun 02, 2006 6:58 am    Post subject: Reply with quote

First, I'd like to say, that your howto is great, I needed some rescue/media player livecds and I couldn't find anything suitable, everything I was able to find was either haplessly bloated or lacked some useful apps.

One thing that could be useful is swap autodetection, imagine a situation when you boot on some old box and run out of memory, but there's a swap partition on hd, eagerly waiting to be taken advantage of. There's a nice howto with a script here: http://gentoo-wiki.com/TIP_automount_swap.

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


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

PostPosted: Fri Jun 02, 2006 7:59 am    Post subject: Reply with quote

Thanks, it will be added to the guide as well.

Guys I'm holding this off until I figure out why it doesn't reboot. As soon as I can make it, there will be a major update to the guide, including everything pointed until now plus several things I figured out along the way.
_________________
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
schneekater
n00b
n00b


Joined: 28 Jan 2005
Posts: 21
Location: Easton, PA

PostPosted: Tue Jun 06, 2006 3:05 pm    Post subject: Reply with quote

Thanks for the great guide!

I have one question that may not fit exactly into this discussion, but I hope it's close enough; even though it is a more generic issue, it became pertinent when creating a live CD using your method: The CD that I created is very small, a recue type thing, and even though it fits comfortably on a 200M CD, I am always looking for ways of making it smaller; todays target: the /dev/ files.

I was thinking of having as many of the device nodes created by udev during system boot, deleting everything that is not absolutely crucial from /dev/ before I burn the CD. And here comes the question (two questions, really, now that I think of it):

Do you think that this makes sense at all? I mean, udev would have to create the devices on the RAM disk, thus using up memory, whereas they should only take up some space on the CD if I leave them in place when creating the ISO file.

If it makes sense to have devices created by udev, are the any that I have to leave in place because they are needed to get to a point where udev can take over? If it doesn't make sense, is there a good way to determine which nodes are expendable, anyway? I am only running in text mode and really don't need all those video related devices, for example.

Thanks again :)
--j
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 Jun 06, 2006 4:20 pm    Post subject: Reply with quote

schneekater wrote:
Thanks for the great guide!

I have one question that may not fit exactly into this discussion, but I hope it's close enough; even though it is a more generic issue, it became pertinent when creating a live CD using your method: The CD that I created is very small, a recue type thing, and even though it fits comfortably on a 200M CD, I am always looking for ways of making it smaller; todays target: the /dev/ files.

I was thinking of having as many of the device nodes created by udev during system boot, deleting everything that is not absolutely crucial from /dev/ before I burn the CD. And here comes the question (two questions, really, now that I think of it):

Do you think that this makes sense at all? I mean, udev would have to create the devices on the RAM disk, thus using up memory, whereas they should only take up some space on the CD if I leave them in place when creating the ISO file.

If it makes sense to have devices created by udev, are the any that I have to leave in place because they are needed to get to a point where udev can take over? If it doesn't make sense, is there a good way to determine which nodes are expendable, anyway? I am only running in text mode and really don't need all those video related devices, for example.

Thanks again :)
--j


Ok first of all you're not going to save much space that way so don't expect a big difference.
Second, having udev create the devices IS the right thing to do. That way they'll be created for the system the livecd is running on; you don't have devs lying around for things that don't exist and at any give time there are either the two needed devices or those generated by udev, not some /dev/hda3 from another PC that has 3 partitions on the first harddisk. Now I don't think there are differences in functionality and I don't think having devs from another system will create any problem, but havng udev generate them all is obviously the cleanest solution.

That said, the only devices you need to boot gentoo are /dev/null and /dev/console. None others, as far as I know. So delete anything you have in the livecd source under /dev except those two. If you have any kind of trouble please post it here regardless of wether you're able to fix it or not since it's valuable feedback.

Good luck ;)
_________________
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
Lepaca Kliffoth
l33t
l33t


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

PostPosted: Tue Jun 06, 2006 4:31 pm    Post subject: Reply with quote

I'm posting right now a better version of the hdsetup script (which would be the thing that autodetects partitions and adds an fstab entry for them at boot) pending integration in the guide.

Code:
#!/bin/bash

#Get a list of partitions
fdisk -l | grep /dev | awk '{print $1}'| sort | uniq | grep /dev > /tmp/disklist

#Get a list of swap partitions
fdisk -l | grep swap | awk '{print $1}' > /tmp/swaplist

#Get a list of NTFS partitions
fdisk -l | grep NTFS | awk '{print $1}' > /tmp/ntfslist

#Use a ludicrously complicated way to subtract swaplist and
#  ntfslist from disklist
cat /tmp/swaplist /tmp/ntfslist >> /tmp/disklist
cat /tmp/disklist | sort | uniq -c | grep \ 1\ | awk '{print $2}' > /tmp/finaldisklist

#Go through every partition that isn't swap or NTFS and if
#  the kernel can mount it then add a line for it in fstab
for i in `cat /tmp/finaldisklist`
do
   mount $i /mnt/temp
   if [ $? -eq 0 ]
   then
      DISK=`echo $i | cut -c 6-`
      echo "/dev/$DISK /media/$DISK auto users 0 1" >> /etc/fstab
      mkdir /media/$DISK -p
      umount /mnt/temp
   fi
done

#Same thing but for NTFS partitions. The line added
#  to fstab is different because the NTFS module, like
#  NTFS itself, sucks
for i in `cat /tmp/ntfslist`
do
   mount $i /mnt/temp
   if [ $? -eq 0 ]
   then
      DISK=`echo $i | cut -c 6-`
      echo "/dev/$DISK /media/$DISK auto users,umask=000,ro 0 0" >> /etc/fstab
      mkdir /media/$DISK -p
      umount /mnt/temp
   fi
done

#Activate the swap partitions for added pwnage
for i in `cat /tmp/swaplist`
do
   swapon $i
done

_________________
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, 4, 5, 6  Next
Page 4 of 6

 
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