什么是linux挂载,什么是挂载?

编程入门 行业动态 更新时间:2024-10-14 08:26:19

什么是<a href=https://www.elefans.com/category/jswz/34/1770067.html style=linux挂载,什么是挂载?"/>

什么是linux挂载,什么是挂载?

windnest 于 2010-10-09 20:31:27发表:

只可意会不可言传!!!这个东西基础的 多用用就懂了

eclipse101 于 2010-10-09 19:21:15发表:

:0)1

gondn125 于 2010-10-05 08:57:46发表:

Wow, that is a complex problem.I think we should talk about it from VFS(virtual file system).

The concept of VFS imports a model of file system, which observes the rule of Unix file system model. It includs the below objects:

superblock object

inode object

dentry object

file object

all of them, the object "superblock" is very important for this case.

superblock is useful to describe the whole info of file system, there is own superblock in every file system."superblock" would be created by nernel, when nernel initialize and register in the memory.In other words, superblock only exists in memory.All the superblock objects will link as a double linked list,We could check the details structure of superblock in the directory "/lib/include"(if I don't make mistake).

We could find a very important variable "u", which is a union in C programm,and it points to the superblock that VFS supports to.When a new file system is added the VFS,the superblock of the new file system will be copied into the relevant structure.

Now,that is the process of adding a new disk and formating, e.g. mkfs -t ext3 /dev/hda2

the second,we could mount that is also called installing,we should check the data struct "vfsmount",during this process, system will create the mount point, link the / to this mount point, initialize the superblock to new mount point and get the info and operations about the new file system.e.g mount /dev/hda2 /mnt

solo_pig 于 2010-09-27 13:09:52发表:

非常感谢 我也一直不明白

lucifer143 于 2010-09-25 14:36:25发表:

2楼不错,学习一下

symchen 于 2010-08-02 09:02:33发表:

学习学习

wangzi 于 2010-07-21 22:19:41发表:

mount -t iso9660 /dev/cdrom /mnt/cdrom

注意空格

wangzi 于 2010-07-21 22:17:20发表:

mount命令的功能强大,命令格式也比较丰富。

但是常用挂载文件系统命令格式:mount ¨Ct type dev dir

其中¨Ct type选项指出需要挂载的文件系统类型,光盘文件系统类型是:iso9660;dev表示需要挂载文件

系统的设备名称,光盘驱动器的设备名称是/dev/cdrom; dir表示挂载点,即挂载到的文件目录路径。光盘设备

在linux 系统中的默认路径是/mnt/cdrom。

wangzi 于 2010-07-21 22:07:54发表:

我觉得你需要讲明白的是挂载的使用方法,命令的格式,参数。结果,最好有抓图

kanejeff 于 2010-07-16 15:15:39发表:

mount就是挂载了。很好理解,自己多动动手就知道了

kanejeff 于 2010-07-16 15:15:37发表:

mount就是挂载了。很好理解,自己多动动手就知道了

66648798 于 2010-07-14 16:28:08发表:

奥,原来是这样的啊~~学习了

66648798 于 2010-07-14 16:28:03发表:

奥,原来是这样的啊~~学习了

chinawazi 于 2010-07-14 00:25:36发表:

二楼已经很详细的说了,我就不说了

svolta 于 2010-07-13 18:00:58发表:

做个不是很恰当的比喻吧,就想井水,直接喝不到,要打上来才能喝~

cf630314 于 2010-07-08 08:03:36发表:

mount 挂载 umount 卸载 Linux中的所有硬件都可以当成是某个文件夹中的一系列文件 所以挂载就是把硬件信息告诉内核 可以使用了

hackzb86 于 2010-07-07 18:24:59发表:

学习2楼~~虽然不全面 哈哈```{:2_92:}

haoqiang2001 于 2010-07-07 15:15:33发表:

不好解释。

love35459 于 2010-07-06 18:05:26发表:

不?的?西

??分享

liuhao123 于 2010-07-06 12:18:32发表:

其实很简单,比如你要向别人要东西,就必须先伸出手,挂载就好比你的手

hn126wz 于 2010-06-30 20:54:43发表:

相当于是把某个用的设备导入,这样可以节省系统很多开销

wucongdonglai 于 2010-06-30 13:55:26发表:

在我的理解里挂载和指针比较相似,将一个设备(通常是存储设备)挂接到一个已存在的目录上,说白了不就是给一个指定的地址去找到该设备嘛

moonreplace 于 2009-08-21 14:32:22发表:

二楼的解释很好

l460618498 于 2009-08-21 11:38:35发表:

学习

system_fans 于 2009-08-21 10:00:16发表:

学习了

spanthrive 于 2009-08-20 22:58:24发表:

安装Linux OS , 当你选择了虚拟分区后,会提示选择mount的,一般为根 / .

这个好像和分区有关联,查查工具书吧

xuejinhou 于 2009-08-20 12:17:58发表:

不好说

greatesteclipse 于 2009-08-20 11:01:20发表:

你就当成是原本有的东西,但不能马上用,挂载就是把它给临时的装上能用----这只是一种理解方法,别当真

ffsedan 于 2009-08-20 10:58:15发表:

一些基本概念还是多查几本书,好好看看比较好

balini 于 2009-08-20 10:54:38发表:

谢谢,学习了.........

we2008 于 2009-08-20 10:23:36发表:

不是很好解释

飞灰不分 于 2009-08-20 10:22:23发表:

我就知道在LINUX下想要访问XP下的盘,要挂载后才行的

wangyu 于 2009-08-20 10:02:36发表:

解释很费事啊

Gcmjiu 于 2009-08-20 09:16:21发表:

能用该用的东西

hantu 于 2009-08-20 02:02:40发表:

挂载(mount)就是将各种文件系统(可以是本地的,也可以是远程的)装载入虚拟文件系统(VFS)的目录树中并提供一致性的访问,比如:

挂软盘: mount -t vfat /dev/fd0 /mnt/floppy

挂光盘: mount -t iso9660 /dev/cdrom /mnt/cdrom

挂U盘: mount -t vfat /dev/sdb1 /mnt/udisk

挂本地硬盘上的win C盘: mount -t ntfs /dev/sda1 /mnt/c (sda1是SCSI或SATA硬盘的第一主分区,如果是IDE硬盘则改为hda1)

挂网络上的win机器共享: mount -t smbfs //192.168.1.8/share /mnt/share

或 mount -t cifs //192.168.1.8/smb-share /mnt/smb-share

挂网络上的NFS共享: mount -t nfs 192.168.1.9:/nfs-share /mnt/nfs-share

等等 ...

更多推荐

什么是linux挂载,什么是挂载?

本文发布于:2024-03-05 00:27:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1710821.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:linux   挂载

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!