輕松的完成Linux創(chuàng)建文件系統(tǒng)
現(xiàn)在家家?guī)缀醵紦碛须娔X,我們知道電腦是怎樣工作的么?電腦中必不可少的就是操作系統(tǒng)。Linux的發(fā)展也非常迅速。這里介紹Linux的知識,讓你學好應用Linux系統(tǒng)。今天一講Linux創(chuàng)建文件系統(tǒng)的知識,希望你記住Linux創(chuàng)建文件系統(tǒng)方法。
創(chuàng)建LV
[root@jusdoi oracle]# lvcreate -n u01 -L 15G VolGroup01
建文件系統(tǒng)
- [root@jusdoi ~]# mkfs -t ext3 /dev/VolGroup01/u01 15g
- mke2fs 1.39 (29-May-2006)
- Filesystem label=
- OS type: Linux
- Block size=4096 (log=2)
- Fragment size=4096 (log=2)
- 1966080 inodes, 3932160 blocks
- 196608 blocks (5.00%) reserved for the super user
- First data block=0
- Maximum filesystem blocks=4026531840
- 120 block groups
- 32768 blocks per group, 32768 fragments per group
- 16384 inodes per group
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
- Writing inode tables: done
- Creating journal (32768 blocks): done
- Writing superblocks and filesystem accounting information: done
- This filesystem will be automatically checked every 37 mounts or
- 180 days, whichever comes first. Use tune2fs -c or -i to override.
建目錄
- [root@jusdoi ~]# mkdir /u01
- mount
- [root@jusdoi ~]# mount /dev/VolGroup01/u01 /u01
查看已經(jīng)mount上了
- [root@jusdoi ~]# df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/mapper/VolGroup01-LogVol00
- 20G 2.3G 17G 13% /
- /dev/sda1 99M 14M 81M 15% /boot
- tmpfs 1.8G 0 1.8G 0% /dev/shm
- none 1.8G 104K 1.8G 1% /var/lib/xenstored
- /dev/hde 3.4G 3.4G 0 100% /mnt
- /dev/mapper/VolGroup01-u01
- 15G 166M 14G 2% /u01
為使重啟后生效,修改/etc/fstab
/dev/mapper/VolGroup01-u01 /u01 ext3 defaults 0 0
希望本文講解的Linux創(chuàng)建文件系統(tǒng)知識對你有所幫助。
【編輯推薦】