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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-27-2017, 12:28 PM
|
#1
|
LQ Newbie
Registered: Jul 2017
Posts: 3
Rep:
|
What is the default partition size of /dev & /run in Linux7.3
Hi ,
I am new to Linux and recently I installed linux 7.3 on my system using manual partitions.
I wanted to define 5GB for my /dev & /run but both these mount points were prompted as invalid.
When I let the system to auto define, their size came up to be 24GB,so huge. By the way, I am using 3 x 600GB hard disks.
How can I force the size of these two mount points to 5GB instead?
Beside, I used only 300GB out of about 1.8TB and I can't locate the rest of my spare disk space. How to check?
Please advise.
Thanks all the Guru in advance.
|
|
|
07-27-2017, 01:06 PM
|
#2
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,912
|
These are both virtual filesystems which all modern Linuxen put on ramdisks. /dev is just a set of interfaces with the hardware drivers in the kernel; it takes up no room at all. /run is for session-specific temporary files (mostly small) that will all disappear when you shut down. Don't create partitions for them on the actual hard drive. Let the udev program do that at boot time.
The only partitions you really need are the root partition, a home partition for your personal files (think My Documents!) and a swap file. A server might need a separate /var partition but a desktop machine doesn't.
|
|
|
07-27-2017, 02:15 PM
|
#3
|
LQ Newbie
Registered: Jul 2017
Posts: 3
Original Poster
Rep:
|
Hi Hazel,
Thanks for your prompt reply.
I was confused as " df -h" shown the /dev and /run as 24GB.
They were not small in size. During installation, each time I specified /dev as a mount point,system always prompted
me as invalid mount point. I have no issue to define the partition size with other mount point.
How does the system define the sizing for these mount points, /dev & /run? These mount points and their sizing were automatically created during installation.
If these mount points are OS specific and not are allowed to be defined , I can accept it , but why can't I decide their size?
Any advise for this?
Thanks...
|
|
|
07-27-2017, 03:37 PM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,216
|
As stated /dev, /run use tmpfs which resides in memory/swap and by default has a maximum size of half your physical memory. Despite what it says in the output of the df command only as much RAM as necessary is used.
Depending on distribution tmpfs and other virtual filesystems might be mounted via /etc/fstab or in initialization scripts. The maximum size can be changed.
|
|
|
07-27-2017, 06:31 PM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,253
|
As stated, these are virtual filesystem that the kernel manages. What you are seeing is the potential maximum usage - the used is all you should be interested in. Best to leave it all alone - don't reduce the maximum unless you have a (very) good reason to. Generally that means only on advice from a kernel developer.
Quote:
Originally Posted by Teoh YH
Beside, I used only 300GB out of about 1.8TB and I can't locate the rest of my spare disk space. How to check?
|
From a terminal run this
|
|
1 members found this post helpful.
|
07-28-2017, 02:16 AM
|
#6
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,912
|
It's worth adding that tmpfs behaves differently from the old-style ramdisk, which had a fixed size and permanently sterilised that amount of ram. A tmpfs drive is only as large as it needs to be to contain the current data on it, and when it hasn't been read for a while, it gets swapped out of core. The sizes that are bothering you are maxima, not running sizes.
|
|
|
07-28-2017, 02:37 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,800
|
you may also say: /dev and /run are not real, but virtual filesystems, they have no real sizes, and stored only temporarily in RAM. They will not occupy a single byte on your HDD.
Code:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 7,8G 12K 7,8G 1% /dev
tmpfs 1,6G 1,5M 1,6G 1% /run
As you can see (check man df) the used size is relatively small, and actually there is no way to modify that.
|
|
1 members found this post helpful.
|
07-28-2017, 03:47 AM
|
#8
|
Member
Registered: Oct 2009
Distribution: Gentoo Linux
Posts: 39
Rep:
|
All partitions you need to define are / and /home. A swap partition really isn't needed that much, unless you use hybernate or have't got all that much RAM (less than 2GB). If you wish to use hybernate, make the swap partition the same size or bigger than your RAM.
/dev and /run you don't need to bother with. Those are dealt with automatically.
|
|
|
07-31-2017, 10:49 AM
|
#9
|
LQ Newbie
Registered: Jul 2017
Posts: 3
Original Poster
Rep:
|
Hi All ,
Thanks all for taking your time to reply to my questions.
I really appreciate it.
Keep the good work flowing.
Best Regards,
Teoh YH
|
|
|
07-31-2017, 03:06 PM
|
#10
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,892
|
To repeat:
A "virtual filesystem" in Linux does not necessarily correspond to any physical resource. For instance, /proc is a pure-fabrication: it is actually an interface to the guts of the Linux operating system.
This is an extremely-elegant notion which, so far as I can now recall, is supported by no other operating system.
|
|
|
08-01-2017, 02:04 AM
|
#11
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,912
|
They used to say "In UNIX, everything's a file". Hardware drivers appear as files in the /dev directory so that programs can talk to the hardware. The guts of the kernel appear in /proc as a series of readable text files. Programs can talk to each other via pipes and sockets and they look like files too.
|
|
|
08-02-2017, 05:48 PM
|
#12
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639
|
also there is no operating system called "linux 7.3"
there is the really NOT free RHEL7
or CentOS 7 ( 1611) -- a rolling release
or Scientific Linux 7.3
|
|
|
All times are GMT -5. The time now is 04:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|