You are not logged in.

#1 2012-04-23 19:50:50

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Making custom Live CD of Arch 2012.04.23

Hello,

I would like to have my custom Arch CD which would by able to boot into system. Something similar like CtkArch (http://ctkarch.org/)
The problem is that I really cannot find any good tutorial which would work now, as far as could understand best tools was larch, but it says that it is outdated.

Then found this step by step tutorial https://kroweer.wordpress.com/2011/09/0 … -live-usb/ it is advanced and more clear then in arch wiki, but still no luck.

It would by best If tool could make .iso file of current system but as far as I could found out, there is no such think, but maybe I am wrong?

So maybe somebody could share link or at-least ideas how to make it, I guess other users also would by interested in it, since I was not able to find decent material in forum or in the internet.

PS: I am using Arch maybe ~1-2 months, but already have made huge progress (at-least I think) and know how to repeat my Arch+e17 from net CD, but it would take some time, since I have slow internet.

So basically, I need tutorial for making bootable Arch CD which would boot into windows manager, it would by perfect if it would go straight to RAM, but I guess that is for later.

Last edited by vaidotas203 (2012-04-23 19:51:09)

Offline

#2 2012-04-24 12:14:04

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

So far I was able to create a core CD which was around ~500MB, it was boot-able, but the problems is that it stuck maybe for 5 or even more minutes at "Generating locals"  after that I was send to Slim login manager, but my login information was not accepted.
I did copied:
  /etc/passwd
/etc/shadow
/etc/group

Maybe somebody could explain where is the problem?

Offline

#3 2012-04-24 12:22:17

Philippe1
Member
From: Montréal, Canada
Registered: 2011-04-11
Posts: 24

Re: Making custom Live CD of Arch 2012.04.23

Hi, maybe they could help you there :

http://archbang.org/

Good luck!

Philippe

Offline

#4 2012-04-24 13:50:20

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

Philippe1 wrote:

Hi, maybe they could help you there :

http://archbang.org/

Good luck!

Philippe

What did you mean with that post? I am not looking for already made Arch+windows manager, I am looking for a way to do it, since some tools are outdated and other are not so good documented...
There are more similar arch already made chakra, ctkarch... but they all are already full off stuff I do not need.

Offline

#5 2012-04-24 13:58:36

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

Tried to make it from the scratch again, but this time did not installed slim, after long waiting for "Generating locals" I got simple arch asking to enter /arch/setup for start. Tried to run:
startx
exec enlightenment_start

they both tried to start, but fails "The locale '' cannot be found on your system. Please install this locale or try something else .xinit connection to X server lost...

Offline

#6 2012-04-24 19:00:57

Philippe1
Member
From: Montréal, Canada
Registered: 2011-04-11
Posts: 24

Re: Making custom Live CD of Arch 2012.04.23

Sorry if you misunderstood...

I know you don't want a LiveCD, you want to make one. Archbang is a LiveCD, so they must know how to do it.
That's why I told you they could certainly help.

Philippe

Offline

#7 2012-04-24 21:31:17

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: Making custom Live CD of Arch 2012.04.23

I was thinking of something similar - A live CD with only packages that you require - but hadn't had enough time to do research.

Offline

#8 2012-04-25 11:07:32

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

donniezazen wrote:

I was thinking of something similar - A live CD with only packages that you require - but hadn't had enough time to do research.

I think lots of users would want that, but problem is that it is not quite good documented, there are steps, but not really understandable for all. There are no information what to do or check when there is no output off CD.

Offline

#9 2012-04-26 03:37:35

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Making custom Live CD of Arch 2012.04.23

CTKArch can be modified as desired with the proviso that the kernel is an old one, by using ISOMASTER program.

This program allows changing the installed packages, remove and install, from any "live cd" and it therefore allows a custom arch install as you desire.

The devlopment of further CTK upgrades has been curtailed I believe by changes in linux kernel supported packages.

However, to obtain experience with "live" cd packages, ISOMASTER will permit the customizing of CTK arch CD.  As I have remarked elsewhere, it runs in ram but install to ram is provided but does not affect performance(other than the delay time while the entire CD is loaded to ram).

My approach to better performance is to use raid0 grub2 bootable.  Boots in five to six seconds and runs jumanji like a dream.

I am not aware of a good "live CD"  setup any better than customizing CTK in spite of the lack of recent kernels.

My use of CTK was in Flash Drives running as root and I enjoyed it very much.

I extend myself into areas not often ventured by others, hence, have generated a raid0 bootable grub2 Arch array(actually three arrays).  These are on Compact Flash and run at 180mb.s read speed.  On one now..........

Good hunting for a "live" that satisfies......


Sign of the times: Navajo blanket..made in China
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Online

#10 2012-04-27 09:52:16

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

So basically we are returning back to changing what already is, and not making something own.
I already have somewhere custom CTKArch, I am not really concerned of it's old kernel, but old pacman... it is quite a pain to upgrade to pacman 4.
Also it has really much tweeks which I really do not need

Offline

#11 2012-05-18 18:47:56

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

Some time passed and still no progress.
Maybe somebody has link or idea how then to edit ArchBang LiveCD, mostly how to chroot into it, since at-least newest versions is a bit weird after unsquashfs I am getting not a "/" folder but other root-image.fs

Last edited by vaidotas203 (2012-05-18 19:07:14)

Offline

#12 2012-05-18 19:48:19

Evert7
Member
From: Lier, Belgium
Registered: 2012-02-18
Posts: 63
Website

Re: Making custom Live CD of Arch 2012.04.23

I think you should unpack that one as well. I'm now downloading the iso file, to try it myself.


Website: evertheylen.appspot.com (new!)

Offline

#13 2012-05-18 20:39:50

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

Evert7 wrote:

I think you should unpack that one as well. I'm now downloading the iso file, to try it myself.

How to do that?
unsquashfs does not work on it

Making everything from the scratch(normal install to hdd is easy) but making LiveCD is maybe one of the hardest things in Arch

Last edited by vaidotas203 (2012-05-18 20:40:35)

Offline

#14 2012-05-19 09:23:01

Evert7
Member
From: Lier, Belgium
Registered: 2012-02-18
Posts: 63
Website

Re: Making custom Live CD of Arch 2012.04.23

Create a directory and mount it there:

mkdir ./mount
sudo mount root-filesystem.fs ./mount

Last edited by Evert7 (2012-05-19 09:24:40)


Website: evertheylen.appspot.com (new!)

Offline

#15 2012-05-19 10:53:33

Mr_Miyagi
Member
Registered: 2012-05-12
Posts: 8

Re: Making custom Live CD of Arch 2012.04.23

I have plans to fix "The ultimate Arch boot memory card" (according to my needs that is)  smile
This might be completely different from what you are trying to do. I am planning on just installing arch onto a memory card (or usb) with all the packages I might need, personally I have no need for a CD. This should be pretty straight forward to setup (I hope). Duplicating this to other writable mediums would be really simple with dd if needed. But with CD, don't know....but do you really need a CD, usb/memory card won't suffice?
Do you also want to make the CD act as an installation medium, or just to boot?

I am planning on using partitions with GPT/Grub2/dm-cryptfs/ext3/fat32   (small fat32 partition for use with windows as well as containing windows programs for accessing dm-crypt and drivers for ext3; ext3 because there are windows drivers)

Offline

#16 2012-05-19 12:08:45

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

Evert7 wrote:

Create a directory and mount it there:

mkdir ./mount
sudo mount root-filesystem.fs ./mount

Okay I did:
mkdir ./mount
sudo mount root-image.fs ./mount

got access to it:
chroot mount

But it has not internet connection, it is available on machine, but not while in chroot, doing pacman -Syy /-Syu or simple ping www.google.com fails.

Current problems:
How to get internet connection while in chroot
Testing this solution-> https://bbs.archlinux.org/viewtopic.php?id=54201

Future problems:
where is archbang install script stored (since planning to remove openbox)

Last edited by vaidotas203 (2012-05-19 12:27:50)

Offline

#17 2012-05-19 12:33:24

Evert7
Member
From: Lier, Belgium
Registered: 2012-02-18
Posts: 63
Website

Re: Making custom Live CD of Arch 2012.04.23

Do (in the chroot)

nano /etc/resolv.conf

Now write

 nameserver 8.8.8.8 

in it.
Press Ctrl+O to save and then press Enter. Then do Ctrl+x to quit.
Now you should have internet connection. (At least I do tongue )

PS: nameserver 8.8.8.8 is google's DNS server.

Last edited by Evert7 (2012-05-19 12:34:51)


Website: evertheylen.appspot.com (new!)

Offline

#18 2012-05-19 12:39:46

Evert7
Member
From: Lier, Belgium
Registered: 2012-02-18
Posts: 63
Website

Re: Making custom Live CD of Arch 2012.04.23

Installation script is:

abinstall

But to remove openbox you could just do

 pacman -Rs openbox 

Last edited by Evert7 (2012-05-19 12:42:18)


Website: evertheylen.appspot.com (new!)

Offline

#19 2012-05-19 13:00:52

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

Evert7 wrote:

Installation script is:

abinstall

But to remove openbox you could just do

 pacman -Rs openbox 

Internet is in chroot smile
I can edit and remove files, but when I try to install, I get this:

[root@vaipui /]# pacman -S gparted
resolving dependencies...
looking for inter-conflicts...

Targets (1): gparted-0.12.1-1

Total Download Size:    1.30 MiB
Total Installed Size:   5.32 MiB

Proceed with installation? [Y/n] y
:: Retrieving packages from extra...
 gparted-0.12.1-1-i686                            1335.6 KiB  29.1K/s 00:46 [------------------------------------------] 100%
(1/1) checking package integrity                                            [------------------------------------------] 100%
(1/1) loading package files                                                 [------------------------------------------] 100%
(1/1) checking for file conflicts                                           [------------------------------------------] 100%
error: could not determine filesystem mount points
error: not enough free disk space
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
[root@vaipui /]#

There is 2.1GB free space on mount point, and there is more then 200GB free space where the moint point it self is created...

Currently trying this-> https://bbs.archlinux.org/viewtopic.php?id=133927

[root@vaipui /]# df -i
df: cannot read table of mounted file systems: No such file or directory

Did: rm /etc/mtab
ln -s /proc/self/mounts /etc/mtab

Did not helped


EDIT: Disabled CheckSpace in pacman.conf seems like okay

Last edited by vaidotas203 (2012-05-19 13:18:09)

Offline

#20 2012-05-19 13:25:35

Evert7
Member
From: Lier, Belgium
Registered: 2012-02-18
Posts: 63
Website

Re: Making custom Live CD of Arch 2012.04.23

Any more problems? I hope it boots smile

Btw; you look like somebody who would really like Arch Studio (just an idea though)


Website: evertheylen.appspot.com (new!)

Offline

#21 2012-05-19 13:36:19

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

Evert7 wrote:

Any more problems? I hope it boots smile

I hope it will, now downloading/updating packages.

PS: packing it back will be~ ?
mksquashfs squashfs-root

Offline

#22 2012-05-19 13:52:46

Evert7
Member
From: Lier, Belgium
Registered: 2012-02-18
Posts: 63
Website

Re: Making custom Live CD of Arch 2012.04.23

vaidotas203 wrote:
Evert7 wrote:

Any more problems? I hope it boots smile

I hope it will, now downloading/updating packages.

PS: packing it back will be~ ?
mksquashfs squashfs-root

I think so, then add it back in the iso, so you can burn it. Just placing the files in your cd could cause the cd not to boot.


Website: evertheylen.appspot.com (new!)

Offline

#23 2012-05-19 13:59:54

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

Evert7 wrote:
vaidotas203 wrote:
Evert7 wrote:

Any more problems? I hope it boots smile

I hope it will, now downloading/updating packages.

PS: packing it back will be~ ?
mksquashfs squashfs-root

I think so, then add it back in the iso, so you can burn it. Just placing the files in your cd could cause the cd not to boot.

is there such tools which would allow to add/replace it easiliy inside .iso file?

Offline

#24 2012-05-19 15:34:47

Evert7
Member
From: Lier, Belgium
Registered: 2012-02-18
Posts: 63
Website

Re: Making custom Live CD of Arch 2012.04.23

I think I can do that with Ark...


Website: evertheylen.appspot.com (new!)

Offline

#25 2012-05-19 16:10:31

vaidotas203
Member
Registered: 2012-04-03
Posts: 31

Re: Making custom Live CD of Arch 2012.04.23

Evert7 wrote:

I think I can do that with Ark...

I did that with Windows tools, the disk is bootable, but when I select entry I get error:

 losetup: failed to setup loop device: no such file or directory 

Repeated same process again, with minor changes of only windows manager (and .xinitrc /skel), same think happened.

With access to chroot I can make what I want, although a bit trashy with left overs from ArchBang, but I first need to make it work with minor changes.

Have any ideas? So far you have been very helpful.

Last edited by vaidotas203 (2012-05-19 17:08:00)

Offline

Board footer

Powered by FluxBB