重回blogger,关于sdb的挂载
我的资料库acnis.com域名被xinnet搞瘫后,记录在此
从阵列中获取了一个900G的磁盘空间,挂载到一个/www的挂载点
//运行fdisk -l 获取磁盘信息,得到以下内容
[root@localhost ~]# fdisk -l
Disk /dev/sda: 146.5 GB, 146578341888 bytes
255 heads, 63 sectors/track, 17820 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1940 15478627+ 83 Linux
/dev/sda3 1941 9773 62918572+ 83 Linux
/dev/sda4 9774 17820 64637527+ 5 Extended
/dev/sda5 9774 10165 3148708+ 82 Linux swap
/dev/sda6 10166 13644 27945036 83 Linux
/dev/sda7 13645 16254 20964793+ 83 Linux
/dev/sda8 16255 17559 10482381 83 Linux
/dev/sda9 17560 17820 2096451 83 Linux
Disk /dev/sdb: 899.8 GB, 899877437440 bytes
255 heads, 63 sectors/track, 109403 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
//运行以下命令进行磁盘格式化
[root@localhost ~]# mke2fs -j /dev/sdb
mke2fs 1.35 (28-Feb-2004)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
max_blocks 4294967295, rsv_groups = 0, rsv_gdb = 1024
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
109854720 inodes, 219696640 blocks
10984832 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=222298112
6705 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, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Writing inode tables: done
inode.i_blocks = 155656, i_size = 4243456
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information:
done
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@localhost ~]# mount /dev/sdb /www
[root@localhost ~]# cd /www
ok
从阵列中获取了一个900G的磁盘空间,挂载到一个/www的挂载点
//运行fdisk -l 获取磁盘信息,得到以下内容
[root@localhost ~]# fdisk -l
Disk /dev/sda: 146.5 GB, 146578341888 bytes
255 heads, 63 sectors/track, 17820 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1940 15478627+ 83 Linux
/dev/sda3 1941 9773 62918572+ 83 Linux
/dev/sda4 9774 17820 64637527+ 5 Extended
/dev/sda5 9774 10165 3148708+ 82 Linux swap
/dev/sda6 10166 13644 27945036 83 Linux
/dev/sda7 13645 16254 20964793+ 83 Linux
/dev/sda8 16255 17559 10482381 83 Linux
/dev/sda9 17560 17820 2096451 83 Linux
Disk /dev/sdb: 899.8 GB, 899877437440 bytes
255 heads, 63 sectors/track, 109403 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
//运行以下命令进行磁盘格式化
[root@localhost ~]# mke2fs -j /dev/sdb
mke2fs 1.35 (28-Feb-2004)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
max_blocks 4294967295, rsv_groups = 0, rsv_gdb = 1024
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
109854720 inodes, 219696640 blocks
10984832 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=222298112
6705 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, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Writing inode tables: done
inode.i_blocks = 155656, i_size = 4243456
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information:
done
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@localhost ~]# mount /dev/sdb /www
[root@localhost ~]# cd /www
ok
