LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2010, 10:26 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Rep: Reputation: 110Reputation: 110
Do I really need /var and /boot?


I am doing some clean-up and restructuring of my OS, and I've been wondering:

- How important is the /var directory in a desktop installation? Suppose I mount it in an XFS filesystem (known for corrupting data easily) or in an EXT2 partition (no journal), and never do any backups of that one partition, what kind of woes can I have if that entire partition ever goes kaput for any given reason?

- Does /boot have to remain mounted after the system is running? Isn't the kernel loaded and kept in memory? Really, I have no idea. Or, if it's really necessary all the time, can it be mounted read-only in fstab? Ubuntu mounts it rw, but maybe because it's assumed to be in the same partition as / where lots of things have to be rw.

TIA
 
Old 06-12-2010, 10:27 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Are you asking if either of those need to be put on their own partitions? No, they don't.

If you are asking if those directories need to exist, then yes they do.
 
Old 06-12-2010, 10:40 PM   #3
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Original Poster
Rep: Reputation: 110Reputation: 110
Of course they need to exist, I am not THAT much of a newbie. What I want to know is, what is likely to stop working if I get a corrupted /var partition? And, can I unmount /boot after the system is running, and can I mount it read-only in the first place?
 
Old 06-12-2010, 10:47 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
A corrupted /var is likely to be pretty disastrous. Daemons may behave unpredictably if they are unable to write/access their log files, some distributions (like Slackware for instance) keep their package information under /var, and information about running processes is kept under /var/run.

I suppose you could remount /boot after the system starts, but there is no need for it to be on it's own partition in the first place (not since the early PC days anyway).
 
Old 06-12-2010, 11:03 PM   #5
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Original Poster
Rep: Reputation: 110Reputation: 110
I formatted my / partition as EXT4. I've read that may cause problems with older kernels, or GRUB, or something. So I made a separate EXT2 /boot partition.
 
Old 06-13-2010, 01:13 AM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Not saying you shouldn't unmount /boot (but you shouldn't unmount /var), but what do you hope to gain by doing so?
--- rod.
 
Old 06-13-2010, 02:22 AM   #7
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,433

Original Poster
Rep: Reputation: 110Reputation: 110
Thumbs up Solved

Quote:
Originally Posted by theNbomr View Post
Not saying you shouldn't unmount /boot (but you shouldn't unmount /var), but what do you hope to gain by doing so?
I expect to drastically reduce the possibility of the kernel/boot files getting damaged by any kind of incident.

Looks like my question has been answered: I made the separate boot partition and it is not mounted anyway, although it is present in fstab. Solved.

Thank you.
 
  


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
NO bootlog messages in /var/log/boot cccc Debian 2 01-07-2010 07:50 PM
boot, var, proc partition sizes TheStarLion Linux - General 4 12-22-2009 05:07 PM
some strange lines in /var/log/boot ekdya Debian 1 09-18-2006 08:05 AM
/var/log/boot Michael_aust Debian 4 05-12-2006 05:22 PM
Partition Scheme /boot, /root, /var, etc allpurpbox Slackware 5 01-25-2006 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:31 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