RedHat Linux磁盘空间不足 和 挂载新硬盘方法(3)

Device Boot      Start         End      Blocks   Id System
/dev/sdb3               1        3916    31455238+ 83 Linux

Disk /dev/sdc: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id System
/dev/sdc1               1        2610    20964793+   5 Extended
/dev/sdc5               1        2610    20964762   83 Linux

很好,一切正常

4、创建文件系统

执行mkfs.ext3 /dev/sdc5
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2621440 inodes, 5241190 blocks
262059 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
160 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

Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

正常

5、挂载到根目录下的datalog目录

mount /dev/sdc5 /datalog

再执行df

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3             18020368 15983692   1106516 94% /
/dev/sda1               256666     15923    227491   7% /boot
tmpfs                   777688         0    777688   0% /dev/shm
/dev/sdb3             30961664 24018284   5370620 82% /data
/dev/sdc5             20635668    176200 19411232   1% /datalog

都正常了。完美解决。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/25832.html