[ro.ot@localhost ~]# fd.isk -l 健康
Disk /dev/sda: 8589 MB,. 85899345.92 bytes学习
255 heads, 63 sec.tors/.track, 1044 cylinders 杀毒
Units = cylinders of 16065 * 512 = 8225280 .byt.es 建材
. Devi.ce Boot Start End Blocks Id System.
/d.ev/sda1 * 1 13 10.4391 83 Linux健康
/dev/sd.a2 14 78 522112+. 82 Linux swap ./ Solaris.
/dev/sda3 .79 104.4 7759395 83 Linux 杀毒
Di.sk /dev/sdb: 8589 MB, 8589934592. bytes.
255 heads, 63 sect.ors/track,. 1044 cylinders电影
Units = cylinders of .1.6065 * 512 = 8225280 bytes教育
Disk. /dev/sdb doesn't contain a valid .partition table.
[.root@localhost ~.]# rpm -q quota 外汇
quota-3.13-1.2..3.2.el5.
[root.@localhost data]# umo.unt /dev/sdc4外贸
umount: /data: dev.ice. is busy 建材
umount: /data: device is bus..y 汽车
[
root@localho.st data.]# cd /学习
[root@localhost /].#. umount /dev/sdc4.
[
roo.t@localh.ost /]# fdisk -l.
Dis.k. /dev/sda: 8589 MB, 8589934592 bytes 鲜花
255 h.eads, 63 sectors/track, 104.4 cylinders 婚庆
Units = cylinders. of 16.065 * 512 = 8225280 bytes域名
Device .Boot Start End . Blocks Id System--------------彩票
/dev/sda1 * 1 . 13 10439.1 83 Linux教育
/de.v/sda2 14 . 78 522112+ 82 Linux swa.p / Solaris学习
/dev/sda3 . 79 . 1044 7759395 83 Linux--- 印刷
Dis.k /dev/sdb: 8589 MB, 858993459.2 bytes( 游戏 )
255 heads, 63 sectors/.track, 1044 cyli.nders 鲜花
Units = cylinders of 160.65 * 51.2 = 8225280 bytes外贸
Disk /dev/sdb doesn't contain a valid.. partition table 健康
Disk /dev/sdc:. 2118 MB, 211864.7808 bytes 建材
255 heads, 6.3 se.ctors/track, 257 cylinders 电子
Units = cylinders of 160.65 * 5.12 = 8225280 bytes 婚庆
Device. Boot .Start End Blocks Id System 乙肝
/dev/sdc4 * .1 . 258 2068960+ b W95 FAT32 杀毒
Partition 4 has different phys.ical/logi.cal endings: 婚庆
phys=(256, 254, 63) logical=(257., 1.47, 1[成人用品]
[ro.ot@localhost. /]# fdisk -l--------------彩票
Disk.. /dev/sda: 8589 MB, 8589934592 bytes服务器
255 heads, 63 sectors/track, 1044 cy.lin.ders电脑
Units = cylinders of 16065 .* 512 = 8225280 by.tes投资
Device Boot . Start . End Blocks Id System教育
/dev/sda1 * . 1 . 13 104391 83 Linux.
/dev/sda2 14 78 522112+ 82 . Linux swap. / .Solaris 鲜花
/dev/sd.a3 79 1044 775939.5 83 Linux投资
Di.sk /dev/sdb: 8589 MB, 8589934592 .bytes域名
255 heads, 6.3 sectors./track, 1044 cylinders 乙肝
Units = cylinders of 16065 * 512 = 8225280. by.tes.
Disk ./dev/sdb doesn't contain a valid partition table.学习
[root@localhost /]# cl.ear 女人
[
roo.t@loc.alhost /]# fdisk /dev/sdb虚拟主机
D.evice contai.ns nei.ther a valid DOS partition table, nor Sun, SGI or OSF disklabel域名
Building a n.ew DOS disklabel. Changes will remain in memory only.,.
until you decid.e to write them.. After that, of course, the previous(广告)
conten.t won't be recov.erable.服务器
The number of. cy.linders for this disk is set to 1044.健康
There is nothing w.rong with that, but this is larger tha.n 1024, 杀毒
and could in certain. setups cause pr.oblems with:虚拟主机
1) software that runs at boot time (e.g., old ve.r.sions of LILO)电脑
2) .booting a.nd partitioning software from other OSs域名
(e.g., .DOS FDISK, OS/2 FD.ISK).
Warning: invalid flag 0x0000 of partition table 4 will be co.rrected by w(.ri.te) 乙肝
C.ommand (m for help): p.
Disk /dev/sdb: 8.589 MB, 8589934.592 bytes( 游戏 )
255 head.s, 63 sectors/track, 1044 cylinde.rs( 游戏 )
Units = cylin.ders of 16065 * 512 = 8225280 byte.s 杀毒
Device Boot . Start End Block.s Id System.
Comma.nd (m for help): n.
Command action
.e extended<性病>
p. p.rimary partition (1-4) 外汇
p
Partition num.ber (1-4): 1 美容
F.irst cylinder (1-.1044, default 1): 外汇
Using defau.lt value 1 女人
Last cylinder. or +size or +sizeM or +sizeK (1-1044, de.fault 1044): +2048M.
Command (m for hel.p): p.
Di.sk /dev/sdb: 8589 MB, .8589934592 bytes电影
25.5 he.ads, 63 sectors/track, 1044 cylinders健康
Units = cylinders of 16065 * 51.2 = 8.225280 bytes( 游戏 )
Device Boot Start . . End Blocks Id System.
/dev/sdb1 1 250 20.080.93+ 83 Linux服务器
Com.mand (m for help): b 女人
There is no *BSD parti.tion. on /dev/sdb..
Command (m for. help): n 女人
Command action
e e.xtended<性病>
p primary p..artition (1-4).
e
Partition numbe.r (1-4): 2 外汇
First cylinder (251.-1044, d.efault 251): 健康
Using de.fault value 251外贸
Last cylinder or +size or +sizeM or +si.zeK. (251-1044, default 1044): 电脑
Using default value 1044.服务器
Command (m for he.lp): 外汇
Command .(m for help): n--------------彩票
Command action
l logical (.5 or o.ver) 美容
p. . primary partition (1-4)[成人用品]
l
First cylinder (251-1044,. defaul.t 251): .
Using defa.ult value 251学习
Last cylinder or +size or +sizeM or +si.zeK (251-10.44, default 1044): .
Using default value 10.44服务器
Command (m f.or help): w.
The .partition table has been altered!. 婚庆
Ca.lling ioctl(.) to re-read partition table.虚拟主机
Syncing disks.
[root@localhost /]#. fdisk -l.电影
Disk /dev/.sda.: 8589 MB, 8589934592 bytes 电子
255 heads, 63 sectors./track, 104.4 cylinders 杀毒
Units = cylind..ers of 16065 * 512 = 8225280 bytes 外汇
.Devic.e Boot Start End Blocks Id System学习
/dev/sda.1 * 1 13 .104391 83 Linux电影
/dev/sda2 . 14 . 78 52.2112+ 82 Linux swap / Solaris 美容
/dev/sda3 79 1044 . 7759395 83 Linu.x.
Disk /dev/sdb: 85.89 .MB, 8589934592 bytes.
255 heads, 63 sector.s/track, 1044 .cylinders.
Units = c.ylinders of 16065 * 51.2 = 8225280 bytes.
Devic.e Boot Start . End Blocks Id System[成人用品]
/dev/sdb1 1 250 200.809.3+ 83 Linux域名
/de.v/sdb2 . 251 1044 6377805 5 Extended--------------彩票
/dev/sdb5 . 251 1044 6377.773+ 83 Linux.
[root@localhost /].# part.
parted partp.robe partx . .
[.root@localhost /]# pa.rtprobe 建材
War.ning: Unable to ope.n /dev/hdc read-write (Read-only file system). /dev/hdc has been opened read-onl.y.--------------彩票
[root@localhost /]# mkfs..ext3. /dev/sdb1外贸
m.ke2fs 1.39 (29-May-2006)服务器
Filesystem label.= 汽车
OS type: Linux
Block size=4096 (.log=2)电脑
Fr.agment size=4096 (lo.g=2)电影
25139.2 .inodes, 502023 blocks 汽车
25.101 b.locks (5.00%) reserved for the super user电影
First data b.lock=0.
M.a.ximum filesystem blocks=515899392.
16 b.lock groups 乙肝
3.2768 blocks per group, 32768 fragments per. group外贸
157.12 inodes per group 电子
Sup.e.rblock backups stored on blocks: .
32768, 983.04, 163840, 229376, .294912 婚庆
W.riting inode tables: done . 汽车
C.reating journal (8192 blocks.): done 乙肝
Writing superblocks a.nd. filesystem accounting information: done 杀毒
This fil.esystem will be automatically checked every 24 mou.nts or学习
180 days, whichever comes first. Use tu.ne2f.s -c or -i to override.(广告)
[root@localhost /]# m.kdir. data2.
[r.oot@localhost /]# ls.
bin data dev home lo.st+found misc net pro.c sbin srv tmp var.
boot data2 etc lib .m.edia mnt opt root selinux sys usr健康
[roo.t@localhost /]# e2label. /dev/sdb1 '/data2' 美容
[root.@localhost /]# findfs LABEL=/da.ta2 汽车
/dev/sdb1
[.root@localhost /]#. vi /etc/fstab 服务器
[root@.localhost /].# mount LABEL=/data2 /data2.
[root.@loc.alhost /]# cd data2教育
[root@localhost data2]# .l.s(广告)
lost+found
[r.oot@localhost data2.]# cd /外贸
[root@localhost /]# quotacheck -cugm ./data2.--------------彩票
quotacheck: Mountpoint (or devic.e) /data2 not. found. 汽车
quotacheck: Can't find filesystem to check or file.system not mounted with quota. o.ption. 杀毒
[
root@l.ocalhost /]# mount -o remount /dat.a2.
[
root@loca.lhost ./]# quotacheck -cugm /data2 乙肝
[root@localhost /].#. cd /data2 婚庆
[
root@local.hos.t data2]# ls.
aq.uota.grou.p aquota.user lost+found
[root@localhost data..2]# useradd user电脑
[roo.t@localhost data2]# passwd .user(广告)
Changing pa.ssword for use.r user. 建材
New UNIX passw.ord: 域名
BAD PAS.SWORD: it is WAY .too short 建材
R.etype new UNIX passw.ord: <性病>
pass.wd: all authentication tokens up.dated successfully.投资
[
root@localho.st dat.a2]# edquota user.
[
root@local.host data2]# .quotaon -av.
/dev/sdb1 [/data2]: group quotas turned ..on虚拟主机
/dev/sdb1 [/data2]: user. quotas turn.ed on 乙肝
[
root@localh.ost data2]# qu.ota user健康
Disk quotas for. user user (uid. 500): none 杀毒