LinuxQuestions.org
Visit Jeremy's Blog.
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, 11:26 PM   #1
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 715

Rep: Reputation: 72
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, 11:27 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 11:40 PM   #3
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 715

Original Poster
Rep: Reputation: 72
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, 11:47 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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-13-2010, 12:03 AM   #5
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 715

Original Poster
Rep: Reputation: 72
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, 02:13 AM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
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, 03:22 AM   #7
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 715

Original Poster
Rep: Reputation: 72
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 01:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration