LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-20-2011, 09:59 AM   #1
tovis
Member
 
Registered: Jan 2007
Location: Budapest
Distribution: Debian
Posts: 74

Rep: Reputation: 15
Linux on USB .- setup aufs filesystem


I need to boot and running a slightly customized, no X Squeeze (Debian stable) from USB stick. The problem is that a running linux (kernel-2.6.32-5) is writing USB more then 100 times per hour to the USB even in "idle" state - doing nothing, waiting for user interaction.
1. I have not use swap.
2. I have mount the root file system with "noatime" option.
3. I have mount tmpfs "over" teh /tmp directory.
But what to do with /var?
Running system is using this really intensivelly /var/log? The first idea suggested was unionfs. It can create a unified file system using ramdisk - everything you write to unified fs, in case if it is on USB will be written to USB and files existing on ramdisk and newly created files goes to ramdisk. Minimize USB writing. After some struggling I have realized that unionfs some what outdated and now should be used aufs which could do tha same things and more. Problem is that the documentation is really pure, many thing about what do not do, and some really complicated examples, to make full root filesystem as aufs, but how to mount branch of directories(?) to minimize USB writings as described above - nothing
I have downloded and installed on USB the Debian live 6.x to get some clues/tips - but it's using squashfs also and directory structure nearly unrecognizable (for me). I have read several documents, man for aufs, aufs documentation, I have even found a copy of "Unionfs in examples" missing form www.filesystems.org/project-unionfs.html. May be a step-by-step guide?
Some one could help me, or have a better explanation of how to configure/setup branches?
Any help?
 
Old 11-26-2011, 06:30 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,484

Rep: Reputation: Disabled
Maybe of help:-

When I created livecds, I put both /var & /tmp into ram.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why did my aufs filesystem get configured so small? redss Ubuntu 0 06-16-2011 11:40 AM
what files of filesystem are required automount USB after pluggin in to linux machine venkat.rohidas Linux - General 5 09-19-2008 10:35 AM
Which linux distros use Aufs Unionfs? assasukasse Linux - General 5 04-01-2008 02:55 AM
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration