Welcome! Log In Create A New Profile

Advanced

Any easy way to burn a modern debian system to Dockstar's flash?

Posted by Pan Nana 
I updated uboot of the dockstar to the latest version, is there any easy way to put Debian 4.12.1 to its internal flash (, remove something to make it smaller of course),..., I don't want to use a flash drive, my cat always steps on it...
Re: Any easy way to burn a modern debian system to Dockstar's flash?
May 24, 2019 08:38PM
Pan Nana,

> I updated uboot of the dockstar to the latest
> version, is there any easy way to put Debian
> 4.12.1 to its internal flash (, remove something
> to make it smaller of course),..., I don't want to
> use a flash drive, my cat always steps on it...

Dockstar flash is too small to run Debian.

If you really have to do it, I would run OpenWrt, not Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Any easy way to burn a modern debian system to Dockstar's flash?
May 24, 2019 10:20PM
I have a 512MB flash dockstar.
Re: Any easy way to burn a modern debian system to Dockstar's flash?
June 15, 2019 12:35AM
This is how I was able to fit Debian into internal 512MB flash and have some space to spare :D
These command are dangerous so please be careful or make a backup first.
rm -r /usr/share/locale/*
rm -r /usr/share/doc/*
rm -r /usr/share/man/*
rm -r /var/lib/apt/lists/*
rm -r /var/log/*
rm -r /tmp/*
rm -r /var/cache/apt/*
After this, you will have to first run 'apt update' in order to install something.
Then, to prevent flash from filling up after upgrade and to reduce the amount of write, edit fstab:
nano /etc/fstab
Add the following lines at the bottom:
tmpfs		/var/log		tmpfs	defaults	0	0
tmpfs		/var/cache/apt		tmpfs	defaults	0	0
tmpfs		/tmp			tmpfs	defaults	0	0
tmpfs		/var/lib/apt/lists	tmpfs	defaults	0	0
tmpfs		/usr/share/locale	tmpfs	defaults	0	0
tmpfs		/usr/share/doc		tmpfs	defaults	0	0
tmpfs		/usr/share/man		tmpfs	defaults	0	0
And reboot.
You can also build your own rootfs with debootstrap because I think Bodhi added some packages which are not installed by default on a Debian Stretch minimal system.



Edited 2 time(s). Last edit at 06/15/2019 12:37AM by kalehrl.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: