You are not logged in.

#1 2011-09-29 13:18:18

martinmartiini
Member
Registered: 2011-09-25
Posts: 6

smallest possible arch installation

installed tinycore linux on SD-card - installation size 20Mb (yes, twenty mb !!) (graphical desktop, apps, web)
what is smallest possible usb-stick Arch install?
Thanks

Offline

#2 2011-09-29 13:21:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: smallest possible arch installation

Much bigger, because we use coreutils, not busybox.
I'm not sure if you get webapps (or any apps - apart from busybox and util-linux - for that matter ;P) in that 20 MB in tinycore though.
Tinycore version 4 gets you kernel (3.03), busybox, udev, eglibc, e2fsprogs, gcc-base, util-linux, and Xlibs.

Last edited by karol (2011-09-29 13:24:37)

Offline

#3 2011-09-30 12:08:09

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: smallest possible arch installation

AFAIK installing only packages from base is the smallest supported installation.
you can of course go smaller then that if you tinker enough.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#4 2011-09-30 12:20:57

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: smallest possible arch installation

You mean the full install is 20MB? Or the installation media, which is compressed? If it's the full install, whoa!

You can remove a lot from Arch post-install and still have a functional system. But you'll have to do such trimming every time you do an update. Because, for example, the Arch util-linux package will install everything util-linux has to offer and not just the parts that are strictly necessary. And even if you do such trimming, you won't get even close to 20MB. Arch is simply not built for that.

Offline

#5 2011-09-30 12:29:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: smallest possible arch installation

Gusar wrote:

You mean the full install is 20MB? Or the installation media, which is compressed? If it's the full install, whoa!

The standard iso for the latest tinycore is just 12 MB.

Offline

#6 2011-09-30 12:55:08

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: smallest possible arch installation

karol wrote:

The standard iso for the latest tinycore is just 12 MB.

Yeah, but that's compressed. And surely this decompresses to more than 20MB? Which browser is in there? And does X support more than vesa?

Offline

#7 2011-09-30 13:05:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: smallest possible arch installation

Gusar wrote:
karol wrote:

The standard iso for the latest tinycore is just 12 MB.

Yeah, but that's compressed. And surely this decompresses to more than 20MB? Which browser is in there? And does X support more than vesa?

By default there's no web browser, you get kernel (3.03), busybox, udev, eglibc, e2fsprogs, gcc-base, util-linux, and Xlibs, as mentioned https://bbs.archlinux.org/viewtopic.php … 84#p996584

I've never installed it and I have no idea how much space does it need for install.

Offline

#8 2011-09-30 14:58:58

broken pipe
Member
Registered: 2010-12-10
Posts: 238

Re: smallest possible arch installation

i always start from a really stripped down system which is about 200mb big. the only thing you really need to install is the linux package (pacman and dhcpd are also recommendable tongue ), because it draws all other needed dependencies. you'll also need a bootloader to boot the system.
+ removing locales gives you more free space

tinycore is quite nice but if you want to use your programms which are familiar, tinycore will also be bloated.

Offline

#9 2011-09-30 15:15:33

elliott
Member
Registered: 2006-03-07
Posts: 296

Re: smallest possible arch installation

karol wrote:
Gusar wrote:
karol wrote:

The standard iso for the latest tinycore is just 12 MB.

Yeah, but that's compressed. And surely this decompresses to more than 20MB? Which browser is in there? And does X support more than vesa?

By default there's no web browser, you get kernel (3.03), busybox, udev, eglibc, e2fsprogs, gcc-base, util-linux, and Xlibs, as mentioned https://bbs.archlinux.org/viewtopic.php … 84#p996584

I've never installed it and I have no idea how much space does it need for install.

The install media is the same as the installed system, if that makes any sense. All of that stuff is in the initramfs, it is extracted every boot, so that is all of the space you need for a basic install. You install software by mounting it as a loopback device, so it only takes up as much space as the package.

It is a very unique and interesting distribution, it definitely has some advantages. For one, if you set it up right and someone purposely or accidentally trashes the system, a restart is all that is needed to bring it back to normal.

I've crammed an amazing amount of functionality into a 128mb SD card before with TinyCore.

Last edited by elliott (2011-09-30 15:16:25)

Offline

#10 2011-09-30 15:18:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: smallest possible arch installation

Removing docs and man pages further slims the default Arch install.


@elliott
Not sure what you mean by 'very unique' - slitaz works in a similar way. You need a liveCD / liveUSB system + some overlay fs for the changes you want to keep (persistent /home etc.).

Last edited by karol (2011-09-30 15:20:34)

Offline

#11 2011-09-30 15:26:31

elliott
Member
Registered: 2006-03-07
Posts: 296

Re: smallest possible arch installation

karol wrote:

@elliott
Not sure what you mean by 'very unique' - slitaz works in a similar way. You need a liveCD / liveUSB system + some overlay fs for the changes you want to keep (persistent /home etc.).

Unique when compared to the mainstream distributions and their clones and derivatives. If you've only used normal distributions (yes, Arch would classify as normal) it will take some getting used to. It took a while for me to understand everything going on, remastering my own initramfs and making my own packages really helped me understand.

Offline

#12 2011-09-30 15:33:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: smallest possible arch installation

elliott wrote:
karol wrote:

@elliott
Not sure what you mean by 'very unique' - slitaz works in a similar way. You need a liveCD / liveUSB system + some overlay fs for the changes you want to keep (persistent /home etc.).

Unique when compared to the mainstream distributions and their clones and derivatives. If you've only used normal distributions (yes, Arch would classify as normal) it will take some getting used to. It took a while for me to understand everything going on, remastering my own initramfs and making my own packages really helped me understand.

Ah, now I get it.
We do have archboot https://wiki.archlinux.org/index.php/Archboot, but it's not the smallest system :-)

Offline

#13 2011-09-30 16:08:42

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: smallest possible arch installation

karol wrote:

Removing docs and man pages further slims the default Arch install.


@elliott
Not sure what you mean by 'very unique' - slitaz works in a similar way. You need a liveCD / liveUSB system + some overlay fs for the changes you want to keep (persistent /home etc.).

You could add Puppy to that list. I haven't played around with it in quite some time, but the devs used to advertise a 64MB RAM cache to boot into a live environment, with either a tiny bit of hard drive space or a non-finalized CD for persistence. Installing it takes ~100MB of disk space, which includes utilities like Gparted, graphical wifi support, a graphical browser (uzbl, I think?), ROX file manager, etc.

Offline

#14 2011-09-30 16:46:38

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: smallest possible arch installation

elliott wrote:

The install media is the same as the installed system, if that makes any sense. All of that stuff is in the initramfs, it is extracted every boot

Yeah, I figured that, it makes full sense, all live distros work similarly. Which means it's 20MB compressed, which isn't actually that impressive (I have a stripped down Arch which is 26.8MB compressed, about 90MB uncompressed, and provides a complete GTK environment, including gnome-mplayer, the Midori browser, and GParted).

The defining difference of TinyCore is the method to install new apps - by mounting filesystem images that contain the app.

Offline

#15 2011-09-30 18:43:37

elliott
Member
Registered: 2006-03-07
Posts: 296

Re: smallest possible arch installation

Gusar wrote:
elliott wrote:

The install media is the same as the installed system, if that makes any sense. All of that stuff is in the initramfs, it is extracted every boot

Yeah, I figured that, it makes full sense, all live distros work similarly. Which means it's 20MB compressed, which isn't actually that impressive (I have a stripped down Arch which is 26.8MB compressed, about 90MB uncompressed, and provides a complete GTK environment, including gnome-mplayer, the Midori browser, and GParted).

The defining difference of TinyCore is the method to install new apps - by mounting filesystem images that contain the app.

From what I remember, it isn't that heavily compressed. I am running it now in a VM, df -h tells me rootfs has 15.9mb used. I think I remember a dev telling me they could possibly compress it a lot more, but didn't want to trade speed.

Offline

#16 2011-09-30 19:27:24

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: smallest possible arch installation

elliott wrote:

From what I remember, it isn't that heavily compressed. I am running it now in a VM, df -h tells me rootfs has 15.9mb used. I think I remember a dev telling me they could possibly compress it a lot more, but didn't want to trade speed.

Well, what you also need to know is that only what's currently needed is decompressed. For example, in my case, libwebkit and Midori won't be decompressed until you actually launch Midori. I get the size/speed argument, I use an xz-compressed squashfs and launching apps does take a noticeable amount of time because of this.

But if TinyCore doesn't even have a browser (and probably missing a lot of other stuff too), it's small size isn't one bit surprising. The rules are very simple: Use busybox for as much as possible (busybox rocks!!). Use a compiler that produces small binaries (gcc-4.5 would be that, gcc-4.6 would not) and compile with -Os. Also, install from each package only what's absolutely necessary.

Offline

#17 2011-09-30 19:52:18

elliott
Member
Registered: 2006-03-07
Posts: 296

Re: smallest possible arch installation

Gusar wrote:
elliott wrote:

From what I remember, it isn't that heavily compressed. I am running it now in a VM, df -h tells me rootfs has 15.9mb used. I think I remember a dev telling me they could possibly compress it a lot more, but didn't want to trade speed.

Well, what you also need to know is that only what's currently needed is decompressed. For example, in my case, libwebkit and Midori won't be decompressed until you actually launch Midori. I get the size/speed argument, I use an xz-compressed squashfs and launching apps does take a noticeable amount of time because of this.

But if TinyCore doesn't even have a browser (and probably missing a lot of other stuff too), it's small size isn't one bit surprising. The rules are very simple: Use busybox for as much as possible (busybox rocks!!). Use a compiler that produces small binaries (gcc-4.5 would be that, gcc-4.6 would not) and compile with -Os. Also, install from each package only what's absolutely necessary.

Sure, the size alone isn't terribly impressive when you break it down, but the fact that it is still a very capable and easily expanded distribution is impressive. It also has extensions that can be mounted on demand, so you're not waiting for them all to be mounted at boot time.

I do wish they had wireless and sound support in the base initramfs, which is why I remastered it, I added wireless, replaced flwm with Fluxbox and added OSS.

Offline

#18 2011-09-30 20:20:49

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: smallest possible arch installation

elliott wrote:

but the fact that it is still a very capable and easily expanded distribution is impressive.

Definitely. It's really refreshing to see that Linux is still capable of something like that and that there are people willing to spend the time to produce such things, instead of going for, say, yet another Ubuntu derivative. It was not my intent to label TinyCore as something not impressive. It is definitely an inspiring little distro, to counterbalance the ever growing size of "mainstream" distros.

Offline

#19 2011-09-30 20:42:14

ninjaaron
Member
Registered: 2010-12-10
Posts: 296

Re: smallest possible arch installation

It's kinda funny that someone in this thread called util-linux bloat... but I guess nobody really needs to, I dunno, do anything besides boot.

Offline

#20 2011-09-30 20:52:09

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: smallest possible arch installation

ninjaaron wrote:

It's kinda funny that someone in this thread called util-linux bloat... but I guess nobody really needs to, I dunno, do anything besides boot.

I'm the only one who mentioned util-linux, but I don't see where I called it "bloat". But let me clarify: From the whole bunch of utils that come with the package, you only really need a few. So you can trim an installation by keeping only those instead of the entire util-linux package.

However, there's also this: Some of those utils can be replaced with busybox. And compared to busybox, util-linux and coreutils (and others) actually are "bloat".

Last edited by Gusar (2011-09-30 20:54:04)

Offline

#21 2011-09-30 21:34:34

ninjaaron
Member
Registered: 2010-12-10
Posts: 296

Re: smallest possible arch installation

I was referring to this post:

broken pipe wrote:

i always start from a really stripped down system which is about 200mb big. the only thing you really need to install is the linux package (pacman and dhcpd are also recommendable tongue ), because it draws all other needed dependencies. you'll also need a bootloader to boot the system.
+ removing locales gives you more free space

tinycore is quite nice but if you want to use your programms which are familiar, tinycore will also be bloated.

Offline

#22 2011-10-01 14:50:44

izobretenik
Member
Registered: 2011-09-23
Posts: 21

Re: smallest possible arch installation

Could you please give me some tips here on what can safety be removed on installation?

bbs.archlinux.org/viewtopic.php?id=127321

Last edited by izobretenik (2011-10-01 14:51:31)

Offline

#23 2011-10-21 22:19:56

FTian
Member
Registered: 2011-09-14
Posts: 5

Re: smallest possible arch installation

In debian , there is a tool named debootstrap , you can install debian in a existing unix/linux system , is there a similiar tool in Arch ?

Offline

#24 2011-10-21 22:21:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: smallest possible arch installation

FTian wrote:

In debian , there is a tool named debootstrap , you can install debian in a existing unix/linux system , is there a similiar tool in Arch ?

There is https://wiki.archlinux.org/index.php/Fa … nux_System but I'm not sure if that's what you want.

Offline

#25 2011-10-21 22:25:24

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: smallest possible arch installation

https://wiki.archlinux.org/index.php/In … ting_Linux

OK, karol was first (again?) wink

Last edited by bohoomil (2011-10-21 22:26:33)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

Board footer

Powered by FluxBB