輕鬆的完成Linux建立檔案系統

來源:互聯網
上載者:User

現在家家幾乎都擁有電腦,我們知道電腦是怎樣工作的嗎?電腦中必不可少的就是作業系統。Linux的發展也非常迅速。這裡介紹Linux的知識,讓你學好應用Linux系統。今天一講Linux建立檔案系統的知識,希望你記住Linux建立檔案系統方法。

建立LV

[root@jusdoi oracle]# lvcreate -n u01 -L 15G VolGroup01

建檔案系統

 
  1. [root@jusdoi ~]# mkfs -t ext3 /dev/VolGroup01/u01 15g  
  2. mke2fs 1.39 (29-May-2006)  
  3. Filesystem label=  
  4. OS type: Linux  
  5. Block size=4096 (log=2)  
  6. Fragment size=4096 (log=2)  
  7. 1966080 inodes, 3932160 blocks  
  8. 196608 blocks (5.00%) reserved for the super user  
  9. First data block=0 
  10. Maximum filesystem blocks=4026531840 
  11. 120 block groups  
  12. 32768 blocks per group, 32768 fragments per group  
  13. 16384 inodes per group  
  14. Superblock backups stored on blocks:   
  15.         32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208  
  16. Writing inode tables: done                              
  17. Creating journal (32768 blocks): done  
  18. Writing superblocks and filesystem accounting information: done  
  19. This filesystem will be automatically checked every 37 mounts or  
  20. 180 days, whichever comes first.  Use tune2fs -c or -i to override. 

建目錄

 
  1. [root@jusdoi ~]# mkdir /u01  
  2. mount  
  3. [root@jusdoi ~]# mount /dev/VolGroup01/u01 /u01 

查看已經mount上了

 
  1. [root@jusdoi ~]# df -h  
  2. Filesystem            Size  Used Avail Use% Mounted on  
  3. /dev/mapper/VolGroup01-LogVol00  
  4.                        20G  2.3G   17G  13% /  
  5. /dev/sda1              99M   14M   81M  15% /boot  
  6. tmpfs                 1.8G     0  1.8G   0% /dev/shm  
  7. none                  1.8G  104K  1.8G   1% /var/lib/xenstored  
  8. /dev/hde              3.4G  3.4G     0 100% /mnt  
  9. /dev/mapper/VolGroup01-u01  
  10.                        15G  166M   14G   2% /u01 

為使重啟後生效,修改/etc/fstab

/dev/mapper/VolGroup01-u01  /u01                ext3     defaults        0 0     

希望本文講解的Linux建立檔案系統知識對你有所協助。

  1. Linux作業系統基本知識
  2. 大致對Fedora Linux安裝介紹
  3. 學習手冊:Linux作業系統下的poll和select
  4. Linux作業系統吸引我們的優點
  5. 各種深入講解Linux作業系統

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.