where does root (/) mount point exist — linux
2015-12-30 17:56
429 查看
There are actually two root filesystems in most normal Linux boot processes.
The real root filesystem is located in a partition or logical volume on a physical disk - it is not loaded into RAM as a filesystem, though blocks of it will exist in cache in RAM when they have been
accessed recently. Updates to this filesystem are written to disk as they happen. The root filesystem may also be on a network resource, though in this case it is usually held in a partition/volume/file on a physical disk somewhere too.
The initial root filesystem is loaded into RAM along with the kernel very early in the boot process. This is a small filesystem found in a file under
just the kernel modules/drivers, scripts, and other utilities that might be required to find, verify and mount the real root filesystem (RAID and LVM modules for instance, or NFS modules/tools if you mount root over the network). Once the real root filesystem
is mounted this special "initial" one is thrown away. The
stands for INITial Ram Disk) will be rebuilt when significant changes are made, such as installing a new kernel package. It is not (usually) updated by other actions.
The above is true for most Linux installs, though it can be quite different for special cases such as some live systems on writeable CDs/DVDs or USB drives.
It doesn't physically. Unlike other mount points which are directories in other filesystems (such as directories under
though they can be practically anywhere) the mount point for
no physical presence and is a virtual object held only in the kernel's internals. The filesystem mounted as
the other hand is one of the two listed above - an
in memory during the early boot process or a filesystem on a physical disk or network resource at other times (except, as mentioned above, in some special cases).
The real root filesystem is located in a partition or logical volume on a physical disk - it is not loaded into RAM as a filesystem, though blocks of it will exist in cache in RAM when they have been
accessed recently. Updates to this filesystem are written to disk as they happen. The root filesystem may also be on a network resource, though in this case it is usually held in a partition/volume/file on a physical disk somewhere too.
The initial root filesystem is loaded into RAM along with the kernel very early in the boot process. This is a small filesystem found in a file under
/bootcontaining
just the kernel modules/drivers, scripts, and other utilities that might be required to find, verify and mount the real root filesystem (RAID and LVM modules for instance, or NFS modules/tools if you mount root over the network). Once the real root filesystem
is mounted this special "initial" one is thrown away. The
initrd(which
stands for INITial Ram Disk) will be rebuilt when significant changes are made, such as installing a new kernel package. It is not (usually) updated by other actions.
The above is true for most Linux installs, though it can be quite different for special cases such as some live systems on writeable CDs/DVDs or USB drives.
but where does directory / exist.. ?
It doesn't physically. Unlike other mount points which are directories in other filesystems (such as directories under
/mntor
/media,
though they can be practically anywhere) the mount point for
/has
no physical presence and is a virtual object held only in the kernel's internals. The filesystem mounted as
/on
the other hand is one of the two listed above - an
initrdfile
in memory during the early boot process or a filesystem on a physical disk or network resource at other times (except, as mentioned above, in some special cases).
相关文章推荐
- Linux socket 初步
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- 基于 Linux 集群环境上 GPFS 的问题诊断
- 谁是桌面王者?Win PK Linux三大镇山之宝