成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

linux劃分文件系統(tǒng)

運(yùn)維 系統(tǒng)運(yùn)維
查看主機(jī)硬盤(pán)劃分情況,我們需要在/dev/sdb劃分一文件系統(tǒng),大小在80G左右。

linux版本為

[root@hzmc ~]# uname -a

Linux hzmc 2.6.18-53.el5xen #1 SMP Mon Nov 12 03:26:12 EST 2007 i686 i686 i386 GNU/Linux

1、查看主機(jī)硬盤(pán)劃分情況,我們需要在/dev/sdb劃分一文件系統(tǒng),大小在80G左右。

[root@hzmc bin]# fdisk -l

Disk /dev/sda: 154.7 GB, 154750418432 bytes

255 heads, 63 sectors/track, 18814 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1         255     2048256   83  Linux

/dev/sda2             256        5992    46082452+  83  Linux

/dev/sda3            5993        8542    20482875   83  Linux

/dev/sda4            8543       18814    82509840    5  Extended

/dev/sda5            8543       11092    20482843+  83  Linux

/dev/sda6           11093       12367    10241406   83  Linux

/dev/sda7           12368       13642    10241406   83  Linux

/dev/sda8           13643       14662     8193118+  83  Linux

/dev/sda9           14663       15044     3068383+  83  Linux

/dev/sda10          15045       15426     3068383+  83  Linux

/dev/sda11          15427       15808     3068383+  83  Linux

/dev/sda12          15809       16063     2048256   82  Linux swap / Solaris

/dev/sda13          16064       16254     1534176   83  Linux

/dev/sda14          16255       16267      104391   83  Linux

/dev/sda15          16268       18814    20458746   8e  Linux LVM

Disk /dev/sdb: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System

/dev/sdb1               1        2433    19543041   83  Linux

/dev/sdb2            2434        3679    10008495   83  Linux

/dev/sdb3            3680        3804     1004062+  83  Linux

/dev/sdb4            3805       60801   457828402+   5  Extended

/dev/sdb5            3805        7452    29302528+  83  Linux

/dev/sdb6            7453        7577     1004031   83  Linux

2、在/dev/sdb上劃分文件系統(tǒng)

[root@hzmc bin]# fdisk /dev/sdb

The number of cylinders for this disk is set to 60801.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n

First cylinder (7578-60801, default 7578):

Using default value 7578

Last cylinder or +size or +sizeM or +sizeK (7578-60801, default 60801): +81920M

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.

The kernel still uses the old table.

The new table will be used at the next reboot.

Syncing disks.

注意系統(tǒng)提示“Device or resource busy.”,當(dāng)出現(xiàn)這一提示時(shí),需要手工通知操作系統(tǒng)分區(qū)表已經(jīng)作了改動(dòng)

[root@hzmc bin]# partprobe /dev/sdb

3、將/dev/sdb7格式化成ext3文件系統(tǒng)

[root@hzmc bin]# mkfs -t ext3 /dev/sdb7

mke2fs 1.39 (29-May-2006)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

10010624 inodes, 20002925 blocks

1000146 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=0

611 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,

4096000, 7962624, 11239424

Writing inode tables: done

Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 23 mounts or

180 days, whichever comes first.  Use tune2fs -c or -i to override.

You have new mail in /var/spool/mail/root

[root@hzmc bin]# mkdir /siqi

[root@hzmc bin]# mount /dev/sdb7 /siqi

4、將文件系統(tǒng)信息添加到fstab文件中,隨系統(tǒng)自啟動(dòng)

/dev/sdb7               /siqi                   ext3    defaults        0 0

這里注意第4,5,6列數(shù)字含義

The 4th column uses the default options that are rw, suid, dev, exec, auto, nouser, and async.

The 5th column in /etc/fstab is the dump option. Dump checks it and uses the number to decide if a filesystem should be backed up. If it's zero, dump will ignore that filesystem. If you take a look at the example fstab, you'll notice that the 5th column is zero in most cases.

The 6th column is a fsck option. fsck looks at the number in the 6th column to determine in which order the filesystems should be checked. If it's zero, fsck won't check the filesystem.
 

【編輯推薦】

  1. 深入講述Linux uevent屬性文件系統(tǒng)
  2. 簡(jiǎn)單講述Linux文件系統(tǒng)分區(qū)了解
  3. Linux文件系統(tǒng)限制及特點(diǎn)
責(zé)任編輯:趙寧寧 來(lái)源: chinaitlab
相關(guān)推薦

2011-01-13 14:10:30

Linux文件系統(tǒng)

2020-07-22 14:53:06

Linux系統(tǒng)虛擬文件

2021-06-06 16:55:22

Linux文件系統(tǒng)

2021-04-12 05:44:44

Linux文件系統(tǒng)

2009-12-22 15:12:33

Linux擴(kuò)展文件系統(tǒng)

2021-05-31 07:50:59

Linux文件系統(tǒng)

2009-12-14 13:14:57

2021-11-01 13:38:55

Linux文件系統(tǒng)

2011-01-13 13:18:38

Linux網(wǎng)絡(luò)文件

2019-09-20 10:04:45

Linux系統(tǒng)虛擬文件

2018-08-24 10:10:25

Linux文件系統(tǒng)技術(shù)

2009-12-18 17:08:10

Linux常見(jiàn)文件系統(tǒng)

2009-09-11 08:41:59

Linux文件系統(tǒng)ACLs權(quán)限控制

2019-01-29 10:43:59

Linux 系統(tǒng) 數(shù)據(jù)

2018-07-02 15:18:39

Linux文件系統(tǒng)

2019-08-27 18:28:54

Linux文件系統(tǒng)文件系統(tǒng)類(lèi)型

2020-09-25 07:48:12

Linux系統(tǒng)文件

2020-10-29 08:34:48

Linux - tmp

2011-01-06 14:03:18

2011-01-11 10:29:35

Linux文件
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)

主站蜘蛛池模板: 色99视频 | 成人午夜视频在线观看 | www.av7788.com| 国产精品99久久久久久宅男 | 一级片在线视频 | 国产欧美一区二区精品久导航 | 婷婷久久综合 | 天天干天天草 | 国产在线视频一区二区董小宛性色 | 狠狠干网站 | 免费av观看 | 91亚洲一区 | 精品久久久久国产免费第一页 | 国产精品久久久久久久久免费软件 | 中文字幕人成人 | 国产一级一级毛片 | 综合久久综合久久 | 自拍偷拍3p | 一级片视频免费 | 久久99精品国产 | 国产精品1区 | 免费观看的黄色网址 | 黄色男女网站 | 国产一区二区在线免费观看 | 欧美久久久网站 | 中文字幕在线精品 | 国产一级在线 | 99精品视频在线 | 久久青青 | 国产免费一区二区三区网站免费 | 黄免费观看视频 | 精品国产精品三级精品av网址 | 久热精品在线 | 久久久精品一区 | 中文字幕一区二区三区在线观看 | 91精品国产91综合久久蜜臀 | 欧美国产日韩在线观看成人 | 天堂久久网 | 伊人久操| 成人一区av偷拍 | 亚洲专区在线 |