View previous topic :: View next topic |
Author |
Message |
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Sun Jun 22, 2008 4:28 pm Post subject: Live USB |
|
|
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 |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Mon Jun 23, 2008 6:53 pm Post subject: |
|
|
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 |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Fri Jun 27, 2008 3:27 am Post subject: |
|
|
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 |
|
|
judepereira Apprentice
Joined: 19 Jan 2008 Posts: 179 Location: Portage, yes, somewhere out there
|
|
Back to top |
|
|
|