You are not logged in.

#1 2013-02-02 02:33:44

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,722

Run ArchBang iso on a usb-device with persistence

Munch is a script to create a bootable iso with persistence on a usb-drive.

https://github.com/mrgreen3/munch

Make sure you know device name [sdx] as bad things will happen!!!

Comments and suggestions welcome.

Would strongly recommend that if you are not comfortable at command line then use a virtual machine such as virtualbox

2013_02_02_1359802025_1360x768_scrot.jpg

Thank again to Oliver for putting up with my bash questions when I am too lazy to look them up smile


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#2 2013-02-02 04:54:26

jukkan
Member
Registered: 2011-10-26
Posts: 8

Re: Run ArchBang iso on a usb-device with persistence

This is very cool. Kudos!

Offline

#3 2013-02-02 04:56:51

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,722

Re: Run ArchBang iso on a usb-device with persistence

Have just updated git, was having a problem with usb device not unmounting correctly.


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#4 2013-02-03 09:54:19

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,722

Re: Run ArchBang iso on a usb-device with persistence


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#5 2013-02-03 12:04:07

throdon
Member
Registered: 2011-06-24
Posts: 105

Re: Run ArchBang iso on a usb-device with persistence

Does this have a 4GB limit like casper persistance in *buntu, when using unetbootin?

Last edited by throdon (2013-02-03 12:04:47)

Offline

#6 2013-02-03 12:11:12

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,722

Re: Run ArchBang iso on a usb-device with persistence

At the moment I have not stress tested how big persistence can be. Loading from persistence does impact on system [subject to its specs] There is no reason why once you have a working set up you could have multiple files/setups available from syslinux menu.

You cannot change base system [ArchBang] itself as it is an image file but with munch you can edit syslinux menu to allow more options or configuration from boot. This includes running from ram or setting your default video driver.

Not explored all the possibilities yet....


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#7 2013-02-10 19:58:39

ncmprhnsbl
Member
From: australia
Registered: 2012-12-11
Posts: 114
Website

Re: Run ArchBang iso on a usb-device with persistence

Thanks for making this....
i suspect there is something i'm not getting...
tried it with archi3... by...
0.format usb to ext4 with boot flag   ....name: sdb1
1. copying munch script and saving as 'munch' in Desktop with archi3-...iso
2.cd terminal to Desktop
3. $ sudo munch sdb1 archi3-09.02.2013-x86_64.iso
which gives me :

//(a lot)
parsing line: 
parsing line: 
parsing line: 
parsed in 0 prefixes and 0 suffixes
Error - could not open word list file
[monkey@hostname Desktop]$ 62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c62;9;c6(a lot)

...nothing written to usb...

Offline

#8 2013-02-10 20:13:45

seaelf
Member
Registered: 2012-10-16
Posts: 54

Re: Run ArchBang iso on a usb-device with persistence

Hi...did you "chmod +x munch"?  Also, I ended up formatting my flash to ext2 and I think I just put "sdb" and not "sdb1" when I ran "munch"  I'm not sure if ext2 makes a difference....I just did it that way.    good luck

Offline

#9 2013-02-10 22:22:44

ncmprhnsbl
Member
From: australia
Registered: 2012-12-11
Posts: 114
Website

Re: Run ArchBang iso on a usb-device with persistence

Thanks seaelf,   chmod +x   did the trick... and sdb..
correct  code  $sudo ./munch sdb archi3-......-.iso
ext4 was fine..
posted from archi3 on usb ... smile

Offline

#10 2013-02-10 22:50:34

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,722

Re: Run ArchBang iso on a usb-device with persistence

I will add chmod to my wiki page...


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#11 2013-02-10 23:11:24

seaelf
Member
Registered: 2012-10-16
Posts: 54

Re: Run ArchBang iso on a usb-device with persistence

Ncmprhnsbl....glad it worked out for you.  I'm sending this using Archi3 on a flash w/ persistance as well!

Offline

#12 2013-02-10 23:35:40

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,722

Re: Run ArchBang iso on a usb-device with persistence

If you are worried about kernel update, then edit /etc/pacman.conf

Change

#IgnorePkg   =

To

IgnorePkg   = linux

That will stop a new kernel loading by accident.

While munch is a handy tool I do not know how big persistence file can be [possibly around 4gb]. Not sure if it is possible to update image without affecting any persistence settings [future releases].

Thinking that a proper install to usb device would mean that the whole image could be updated and run like a normal system. Copying image to usb device in a similar way abinstall does.

Have noticed that running via munch performance is lagging as writes to device slow system down, that coupled with how constant writes will affect some usb devices. If device is an external drive [spinning or ssd] that might not be a problem. I have munch running from an ordinary usb stick drive.

Not even touched on running from ram yet!


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#13 2013-02-13 21:15:22

ncmprhnsbl
Member
From: australia
Registered: 2012-12-11
Posts: 114
Website

Re: Run ArchBang iso on a usb-device with persistence

munch + archi3 = marnchi3      ....munchi3, pacman on a stick..... or munchbang  smile
sadly.. my install is on 4th boot..coming up with '...deleted inode...' and hard shutdown..

certainly interested in copytoram...
i wonder can writing to drive(usb) be restricted to exit..

Offline

#14 2013-02-14 00:02:14

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,722

Re: Run ArchBang iso on a usb-device with persistence

Recent git version of munch works ok for me, have used it on ArchBang, Archi3 and arch-install-media [with a little edit!]

Working on munch2 which allows you too install to usb device, this means that anything can be updated [including kernel].


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org

Offline

Board footer

Powered by FluxBB