Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Live USB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dpetka2001
l33t
l33t


Joined: 04 Mar 2005
Posts: 804

PostPosted: Sun Jun 22, 2008 4:28 pm    Post subject: Live USB Reply with quote

hello there...i would like to make a bootable live usb stick (my usb stick is 4GB) and have some of my favourites applications in it so that when i boot from it i will be able to have my favourite applications in hand...could i also run X from it?? how can i achieve this? i would be grateful if you could point me to some guides...thanks in advance...
Back to top
View user's profile Send private message
dpetka2001
l33t
l33t


Joined: 04 Mar 2005
Posts: 804

PostPosted: Mon Jun 23, 2008 6:53 pm    Post subject: Reply with quote

any ideas or suggestions for howtos on making a custom live usb (with custom i mean i can put in my favourite applications) ?
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Fri Jun 27, 2008 3:27 am    Post subject: Reply with quote

I just did this the other day. It worked quite well. What I would recommend 1st is to create a livecd iso image.

You can create the iso in a number of ways (many ways listed in forums and on the wiki). My personal favorite way is the linux-live / SLAX linux scripts, but these days I used a highly modified version of the linux-live 5 scripts instead of their version 6.

Anyways, after you have the iso it's pretty simple to create the live usb. This is what I did (assume the USB stick is /dev/sda ... be careful if it's not and you are usingw these instructions):

Code:
emerge syslinux
fdisk /dev/sda
        (delete partitons)
        (create new partition)
        (make bootable)
mke2fs /dev/sda1
tune2fs -c 0 -i 0 /dev/sda1
dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
mount -o loop,ro -t iso9660 /tmp/mylinux.iso /mnt/cdrom
mount /dev/sda1 /mnt/usb
cp -Rp /mnt/cdrom/* /mnt/usb/.
mv /mnt/usb/isolinux.cfg /mnt/usb/extlinux.conf
extlinux -i /mnt/usb/
umount /dev/sda1


Then boot... you are done. I'm assuming it's also possible to load files directly to directly create the live usb environment, instead of using an iso, but I haven't tried this.
Back to top
View user's profile Send private message
judepereira
Apprentice
Apprentice


Joined: 19 Jan 2008
Posts: 179
Location: Portage, yes, somewhere out there

PostPosted: Wed Jul 02, 2008 4:47 am    Post subject: Reply with quote

to clone your present hdd, you might want refering to https://forums.gentoo.org/viewtopic-t-668792-highlight-.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
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