Linux - NewbieThis 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.
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.
I here people say "/dev/sda1 is mounted on /" .Shouldn't the wording me "/dev/sda1" is mounted as /" ?
Another question regarding the same subject - the directory /dev/ to exist, the parent / has to exist first. It is like chicken and egg situation. Can someone explain or refer to the article that explains this please. I am new to these Linux concepts.
Since this is your first post a belated welcome to LinuxQuestions.
In a nutshell it is all in the start up process. In most distributions the root filesystem is first created by the initrd and once the kernel is up running the init process mounts the root partition via the /etc/fstab. I am far from being a kernel expert so excuse any errors...
When you ring your mum, do you say you are talking to your mum - or do you say you are talking to a microphone chip ?. Better to get comfortable with accepted usage rather than trying to change the world.
As for / versus /dev/, the kernel creates the root (i.e. the kernel is running before the root directory is created) and the standard directories. Then it goes looking for what you want to mount where.
In all likelihood, the more answers you get the more confused you will be.
I don't know if all Linux distributions do it the way Debian does it, but the basic sequence of events is:
1) The bootloader loads up the Linux kernel and an initial ramdisk image. This has a "/" ramdisk that fits entirely within ram.
The ramdisk image is pretty minimal, but it has enough file system stuff to mount the real / (either over nfs or local drive) and read /etc/fstab from it
2) The linux kernel starts executing boot up scripts in the initrd. It mounts the real / to something like /rootmount
3) After doing this, it does some other stuff and then chroots to the real / at /rootmount. Before doing this, it'll scoot other mounts to below /rootmount or something like that
So fundamentally, the "chicken and egg" problem is solved by first loading a "chicken" entirely within ram in a minimalistic ramdisk install. Then it mounts the "real" stuff and scoots over into the "real" / and mount points.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.