Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Build a Gentoo install/boot/rescue LiveCD USB
View unanswered posts
View posts from last 24 hours

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


Joined: 29 Dec 2003
Posts: 653
Location: Canada

PostPosted: Wed Jun 16, 2004 12:31 pm    Post subject: Reply with quote

Hi,

I recently downloaded the Gentoo-Games CD-- America Army. I saw than while booting it was probing all my devices and load the properly drivers then finaly start fluxbox, like PCLINUX or Knoppix.


I have a portable HD (a CASTEL Rack that you can see HERE)

I want to make a kind of LiveCd GEntoo, but like the knoppix one, with KDE, and packages: fully fonctionnal.
here is the project:

I bring my HD at my friend's computer..
We boot the computer on the HD (IDE not USB)
It's magic, Gentoo as configured everything and loaded the proper drivers, then load KDE or Gnome or whatever...

Is it possible with this HowTo ?


Thanks !

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


Joined: 08 Jun 2004
Posts: 83

PostPosted: Sun Jun 20, 2004 12:16 pm    Post subject: I don't use a system which is limiting OUR FREDOM Reply with quote

I'm impressed when I see the use of free software to reduce the users freedom.

#gentoo channel is the only one that forces tor users to need request voice, and isn't possible post a message and these forums. Simply because people were using Tor to abuse the forums.


Last edited by DremK on Thu Dec 01, 2005 11:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
n4than
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jan 2004
Posts: 100

PostPosted: Tue Jul 13, 2004 3:40 pm    Post subject: Re: Build a Gentoo install/boot/rescue LiveCD USB Reply with quote

Donut wrote:
Build your own Gentoo install / boot / rescue LiveCD and USBStick


I've written this how-to after trying to find a boot medium for my home gateway machine which could be used for system rescues and even installing Gentoo. Why not use the standard Gentoo Live CD you ask? Well my gateway machine is one of those small, silent and cool running mini-itx machines (http://www.mini-itx.com) and has no CDROM or floppy drive. I needed some way of getting Gentoo on there and some way of easily rescuing it when the need arises. The good news is that these VIA mini-tix machines are USB bootable and I much preferred the idea of having a little USB drive/stick that I could push into any USB bootable machine and boot into Linux rather than having to set up a PXE networked boot environment (which is also supported).



I'm interesting in mini-itx solution, specially in Flash Card solution.
Have you installed gentoo without any problems?
Can you give some tips about it and about compatibility of mini-itx and gentoo.
Thx mait :-D
Back to top
View user's profile Send private message
jkcunningham
l33t
l33t


Joined: 28 Apr 2003
Posts: 649
Location: 47.49N 121.79W

PostPosted: Sun Jul 18, 2004 12:30 am    Post subject: Reply with quote

zephyr1256 wrote:
Is it possible to create a traditional linux filesystem(ext2) install a kernel and root filesystem uncompressed, and have it be bootable(with the mini-itx boards)? I made an ext2 filesystem on a 32 MB Pen Drive that I got today, assuming I would be able to create a bootable kernel and filesystem like you can on a hard drive. And I have a mini-itx system coming next week. Right now with no hard drive floppy or CD, I was planning on building a small linux system on the Pen Drive, and have that be the system for now. Or do you have to use vfat?


The answer is 'yes'. Check out this howto:

http://gentoo-wiki.com/HOWTO_Small_Footprint_Gentoo_on_USB

I was also trying to get this to work on a compact flash chip plugged into a usb-flash reader, but haven't been able to get it to recognize it as a bootable device yet. I'm still working on it. If anyone has any advice - I'm all ears.

-Jeff
Back to top
View user's profile Send private message
Tiro
l33t
l33t


Joined: 14 Feb 2003
Posts: 752
Location: italy

PostPosted: Fri Aug 06, 2004 9:52 pm    Post subject: Reply with quote

hi to all! :)
am trying to complete my personal live usbstick but I encontered a problem that I can't fix...
I followed all the instrutions of the howto but when merging partimage i get this error:

Emerging sys-apps/partimage...
cp: impossible to create the normal file `/opt/tmp/gentoo-basic/cdroot/usr/src/linux/.config': No such file or directory
chroot_generate: aborting.

# ls /opt/tmp/gentoo-basic/cdroot/usr/src/linux
lrwxr-xr-x 1 root root 31 6 ago 23:08 /opt/tmp/gentoo-basic/cdroot/usr/src/linux -> /usr/src/linux-2.4.26-gentoo-r7
# ls /opt/tmp/gentoo-basic/cdroot/usr/src/linux/
ls: /opt/tmp/gentoo-basic/cdroot/usr/src/linux/: No such file or directory

think the problem is the symbolic link but when i fix it can't resume the merging...is possible to resume it..?

thanks! ;)
Back to top
View user's profile Send private message
Tiro
l33t
l33t


Joined: 14 Feb 2003
Posts: 752
Location: italy

PostPosted: Sat Aug 07, 2004 12:13 pm    Post subject: Reply with quote

no one..!? :(
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2153

PostPosted: Mon Aug 30, 2004 7:08 pm    Post subject: Reply with quote

Gnarly.... marked.. and filed
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
axa
n00b
n00b


Joined: 17 Jun 2003
Posts: 51
Location: Taiwan

PostPosted: Tue Sep 14, 2004 9:32 am    Post subject: Reply with quote

Hello here:

i builded my own liveCD base on gentoo1.4 refer to Donut's post.

But i got error when i using my liveCD to boot my server , error message as following:


Using /modles/cloop.o
Switching to tmpfs root filesystem
Copying and symlinking files from CD to populate /


After appear above message , the system hang and stop boot procedure...
its seems can not load initrd process instantly.....but i dont have any idea to solve this problem....

ANY IDEA???
_________________
Trust & Unique...
Back to top
View user's profile Send private message
Dana Merrick
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2004
Posts: 84
Location: Trinity College

PostPosted: Fri Sep 24, 2004 6:44 pm    Post subject: Reply with quote

Tiro wrote:
Emerging sys-apps/partimage...
cp: impossible to create the normal file `/opt/tmp/gentoo-basic/cdroot/usr/src/linux/.config': No such file or directory
chroot_generate: aborting.

First of all, I had this problem too and I fixed it by adding this to the end of my /usr/sbin/live-ng file:
Code:
# Added to attempt to fix .config problem
[ ! -e ${CD_BUILDCHROOT}/usr/src/linux ] && install -d ${CD_BUILDCHROOT}/usr/src/linux

But, secondly, now I'm having my own troubles.
I keep getting this error:
Code:
make: *** No rule to make target `oldconfig'.  Stop.
chroot_generate: error: Chroot kernel/2nd package build failure

After it emerges gentoo-sources. At first it was complaining about fstab being missing but I manages to silence that with a "cp fstab.bak fstab" in the middle of the emerging process (not very elegant, but it worked). But now I'm getting that error, and I don't even know where to begin on fixing that. Any ideas?
_________________
I'm proud of my life, and the things that I have done,
proud of myself, and the loner I've become.
you're free to whine; it will not get you far,
I do just fine, my car and my guitar.
-Say Anything
Back to top
View user's profile Send private message
Rooney
Apprentice
Apprentice


Joined: 07 Aug 2003
Posts: 193
Location: Sheffield, UK

PostPosted: Sat Sep 25, 2004 11:41 pm    Post subject: Reply with quote

aragostaragazzo wrote:
Tiro wrote:
Emerging sys-apps/partimage...
cp: impossible to create the normal file `/opt/tmp/gentoo-basic/cdroot/usr/src/linux/.config': No such file or directory
chroot_generate: aborting.

First of all, I had this problem too and I fixed it by adding this to the end of my /usr/sbin/live-ng file:
Code:
# Added to attempt to fix .config problem
[ ! -e ${CD_BUILDCHROOT}/usr/src/linux ] && install -d ${CD_BUILDCHROOT}/usr/src/linux

But, secondly, now I'm having my own troubles.
I keep getting this error:
Code:
make: *** No rule to make target `oldconfig'.  Stop.
chroot_generate: error: Chroot kernel/2nd package build failure

After it emerges gentoo-sources. At first it was complaining about fstab being missing but I manages to silence that with a "cp fstab.bak fstab" in the middle of the emerging process (not very elegant, but it worked). But now I'm getting that error, and I don't even know where to begin on fixing that. Any ideas?



Hi there can i see a fully copy of you livecd-ng file as im still getting this problem and unsre if i have put the extra scripting in the right place.

[/code]
>>> Emerging sys-apps/partimage...
cp: cannot create regular file `/opt/tmp/gentoo-basic/cdroot/usr/src/linux/.config': No such file or directory
chroot_generate: aborting.
[/code]
Back to top
View user's profile Send private message
Dana Merrick
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2004
Posts: 84
Location: Trinity College

PostPosted: Sun Sep 26, 2004 12:31 am    Post subject: Reply with quote

Rooney wrote:
can i see a fully copy of you livecd-ng file as im still getting this problem and unsre if i have put the extra scripting in the right place.

Sure, no problem, cept I'll only do the mount_all() function:
Code:
mount_all() {
        mount -o bind /dev $CD_BUILDCHROOT/dev || chroot_die
        mount -o bind /proc $CD_BUILDCHROOT/proc || chroot_die
        # added this to fix portage problem in new stage3 tarball
        [ ! -e ${CD_BUILDCHROOT}/usr/portage ] && install -d ${CD_BUILDCHROOT}/usr/portage
        mount -o bind $CD_PORTDIR $CD_BUILDCHROOT/usr/portage || chroot_die
        [ ! -e $CD_BUILDCHROOT/tmp/livecd ] && install -d $CD_BUILDCHROOT/tmp/livecd
        mount -o bind $CD_BUILDTEMP $CD_BUILDCHROOT/tmp/livecd || chroot_die
        mount -o bind ${CCACHEDIR} ${CD_BUILDCHROOT}/${CCACHEDIR} || chroot_die
        mount -o bind $CD_DISTDIR $CD_BUILDCHROOT/home/distfiles || chroot_die
        # added to attempt to fix .config problem
        [ ! -e ${CD_BUILDCHROOT}/usr/src/linux ] && install -d ${CD_BUILDCHROOT}/usr/src/linux
}

_________________
I'm proud of my life, and the things that I have done,
proud of myself, and the loner I've become.
you're free to whine; it will not get you far,
I do just fine, my car and my guitar.
-Say Anything
Back to top
View user's profile Send private message
Rooney
Apprentice
Apprentice


Joined: 07 Aug 2003
Posts: 193
Location: Sheffield, UK

PostPosted: Sun Sep 26, 2004 10:30 am    Post subject: Reply with quote

thanks ill try it right now
Back to top
View user's profile Send private message
hd.brummy
n00b
n00b


Joined: 09 Nov 2002
Posts: 12
Location: Germany

PostPosted: Sat Oct 02, 2004 8:07 pm    Post subject: Error by > livecd-ng gentoo-basic build < Reply with quote

Hi Folks,

i get an error by the
'livecd-ng gentoo-basic build' Step
Code:

Calculating dependecies
emerge: therw are no masked or unmasked ebuilds to satisfy "sys-apps/star"

!!! Error ...... Please correkt.
 


Maybe correktly the ebuild must named "sys-apps/stat"
Where or how can i fixed ?

THX Joerg
Back to top
View user's profile Send private message
hd.brummy
n00b
n00b


Joined: 09 Nov 2002
Posts: 12
Location: Germany

PostPosted: Sun Oct 03, 2004 4:38 pm    Post subject: Problem solved Reply with quote

Hi,
Problem solved
I found some stupid things in any files:
U have to change following lines

in stage1-packages:
sys-apps/star => sys-apps/stat
sys-apps/raidtools => sys-fs/raidtools
sys-apps/e2fsprogs => sys-fs/e2fsprogs
sys-apps/reiserfs-utils => sys-fs/reiserfsprogs
sys-apps/lvm-user => sys-fs/lvm-user

in stage2-packages:
sys-apps/iproute => sys-apps/iproute2

Error comes from any changes in the portage tree.

C YA
Back to top
View user's profile Send private message
doom4
Tux's lil' helper
Tux's lil' helper


Joined: 23 Sep 2004
Posts: 119
Location: South Africa

PostPosted: Fri Oct 08, 2004 6:06 am    Post subject: same problem oldconfig no rule Reply with quote

aragostaragazzo wrote:

Code:
make: *** No rule to make target `oldconfig'.  Stop.
chroot_generate: error: Chroot kernel/2nd package build failure



i have the same problem. really nobody has an answer????

thx for help
Back to top
View user's profile Send private message
knopper
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2002
Posts: 106
Location: The Netherlands

PostPosted: Mon Nov 01, 2004 9:59 am    Post subject: Reply with quote

In case you're looking for a Gentoo based distribution on an usb stick, you could try this: http://knopperdisk.knopper.tk

In case you think I'm promoting this, please delete it, you won't offend me. I just could use some people who test it and/or give some feedback/suggestions.
Back to top
View user's profile Send private message
Dana Merrick
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2004
Posts: 84
Location: Trinity College

PostPosted: Mon Nov 01, 2004 11:47 pm    Post subject: Reply with quote

knopper wrote:
In case you're looking for a Gentoo based distribution on an usb stick, you could try this: http://knopperdisk.knopper.tk

In case you think I'm promoting this, please delete it, you won't offend me. I just could use some people who test it and/or give some feedback/suggestions.

This is helpful and I got it running very easily, though it's not what I want in a USB-bootable Gentoo installation.
I want it to be bootable without needing a boot floppy to help it out, and I want it to have portage, which is not included in your version.
A USB livecd is such a great idea because a flash drive is a rewritable media, so I could keep my USB stick up to date and install and remove the programs I needed for a certain situation quickly and easily, though a portage-enabled, self-bootable, USB livecd has been very hard to create.
_________________
I'm proud of my life, and the things that I have done,
proud of myself, and the loner I've become.
you're free to whine; it will not get you far,
I do just fine, my car and my guitar.
-Say Anything
Back to top
View user's profile Send private message
knopper
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2002
Posts: 106
Location: The Netherlands

PostPosted: Tue Nov 02, 2004 7:53 am    Post subject: Reply with quote

Thanks for trying it! About portage, why don't you execute this:

Code:

du -h /usr/portage


And then reconsider what you just said about including it...;)
Back to top
View user's profile Send private message
Dana Merrick
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2004
Posts: 84
Location: Trinity College

PostPosted: Tue Nov 02, 2004 12:55 pm    Post subject: Reply with quote

I suppose you're right.
It'd be nice to have other files on my USB stick too...
But what about syncing with portage on a host computer? I have no idea if this is possible, but is there some way to, like, chroot to the USB from a real Gentoo box, and use that portage directory? So then one could run portage commands and update the USB enviroment?
It seems simple but I bet its neigh impossible.
So, giving up on that, is there any way to make the USB stick self bootable, so you dont need a boot floppy?
And also, why not make it writeable? How about a home directory that is the main folder of the USB stick?
Are any of these ideas plausible?
_________________
I'm proud of my life, and the things that I have done,
proud of myself, and the loner I've become.
you're free to whine; it will not get you far,
I do just fine, my car and my guitar.
-Say Anything
Back to top
View user's profile Send private message
knopper
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2002
Posts: 106
Location: The Netherlands

PostPosted: Tue Nov 02, 2004 1:06 pm    Post subject: Reply with quote

aragostaragazzo wrote:
I suppose you're right.
It'd be nice to have other files on my USB stick too...
But what about syncing with portage on a host computer? I have no idea if this is possible, but is there some way to, like, chroot to the USB from a real Gentoo box, and use that portage directory? So then one could run portage commands and update the USB enviroment?
It seems simple but I bet its neigh impossible.

The only thing you could do is mount the portage tree from another pc in your network with samba or nfs. Though please note that knopperdisk uses a profile of it's own so things could be a bit different.

Quote:

So, giving up on that, is there any way to make the USB stick self bootable, so you dont need a boot floppy?

In the new version grub is also installed on the usb disk itself which -in theory- should make it possible to boot from the usb disk itself. Though there are just a few bios'es which support this correctly.

Quote:

And also, why not make it writeable? How about a home directory that is the main folder of the USB stick?
Are any of these ideas plausible?


You might have noticed that there's a .cloop file on the usb disk and unfortunately this is a read-only filesystem. Only the directories /etc, /root, /mnt and /var are mounted as tmpfs which means they exist in ram and swap (if available).
Back to top
View user's profile Send private message
Dana Merrick
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2004
Posts: 84
Location: Trinity College

PostPosted: Tue Nov 02, 2004 7:45 pm    Post subject: Reply with quote

knopper wrote:
Though please note that knopperdisk uses a profile of it's own so things could be a bit different.
...
and unfortunately this is a read-only filesystem. Only the directories /etc, /root, /mnt and /var are mounted as tmpfs which means they exist in ram and swap (if available).

Well, it looks like I'm gonna end up doing this and making an uncompressed Gentoo installation on my USB drive. This way I can have a writeable home directory that I can throw files on and keep using my USB drive as just that; a USB drive.
knopper wrote:
Though there are just a few bios'es which support this correctly.

That's okay, I mainly want this for my school computers, which do support USB booting. I think USB booting is nearly standard on newer motherboards, so I can always go into a Sam's Club and boot their shiny new boxes into Linux. :D.
_________________
I'm proud of my life, and the things that I have done,
proud of myself, and the loner I've become.
you're free to whine; it will not get you far,
I do just fine, my car and my guitar.
-Say Anything
Back to top
View user's profile Send private message
hypnotx
n00b
n00b


Joined: 20 Jun 2003
Posts: 5

PostPosted: Mon Dec 06, 2004 10:37 pm    Post subject: Trouble booting USB stick. Reply with quote

Can anyone help with this?

Code:


kmod: failed to exec /sbin/modprobe -s -k block-major, errno = 2
VFS:  Cannot open root device "ram0" or 01:00
Please append a correct "root=" boot option
Kernel Panic: VFS: Unable to mount root fs on 01:00



Is there something missing in the kernel here?
Back to top
View user's profile Send private message
jsfan
Apprentice
Apprentice


Joined: 28 Dec 2004
Posts: 204
Location: Melbourne, Australia

PostPosted: Tue Dec 28, 2004 7:22 pm    Post subject: Patched livecd-ng script but "No init found." prob Reply with quote

I've realized that nothing has been written in this forum for long time. However, the "No init found." problem is mentioned here but doesn't seem to have been solved. :cry:

I've patched the livecd-ng script so that it works with the current versions of busybox and cloop now. As this took me quite some time, I'm very sad that my LiveCDs won't work. :cry: Maybe someone who reads this would like to try my patched script and find out why I get these "No init found." The strange thing is that the cloop image and the initrd are ok (I've manually mounted them), /sbin/init exists and has correct permissions and all fs types I need seem to be in the kernel.

You can download my livecd-ng version at http://www.penpal4u.net/livecd . You'll also find a busybox-config, a kernel-config for 2.4.28 and a changed settings file there. The livecd.diff file shows the diff between my version and the one in the ebuild.

jsfan
Back to top
View user's profile Send private message
ixion
l33t
l33t


Joined: 16 Dec 2002
Posts: 708

PostPosted: Wed Dec 29, 2004 3:06 am    Post subject: Reply with quote

I would highly recommend using this tutorial:

https://forums.gentoo.org/viewtopic.php?t=244837&highlight=livecd

I dumped the livecd-ng method and haven't looked back. That above tutorial is a dream come true. :)
_________________
only the paranoid survive
Back to top
View user's profile Send private message
jsfan
Apprentice
Apprentice


Joined: 28 Dec 2004
Posts: 204
Location: Melbourne, Australia

PostPosted: Wed Dec 29, 2004 10:12 am    Post subject: cloop vs sqashfs Reply with quote

I've seen that howto and I'll use it. However, it doesn't use cloop but sqhashfs. I don't know what to prefer but what I like a lot with the live-ng script is that it is (in theory) easy to use. I wanted to avoid doing everything manually. :(
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, 7, 8  Next
Page 7 of 8

 
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