- 论坛徽章:
- 0
|
# fdisk -l
查看到如下:
Disk /dev/cciss/c0d3: 429.4 GB, 429497777664 bytes
255 heads, 32 sectors/track, 102801 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d3p1 1 55241 225383279+ 83 Linux
/dev/cciss/c0d3p2 55242 81620 107626320 83 Linux
/dev/cciss/c0d3p3 81621 92927 46132560 83 Linux
/dev/cciss/c0d3p4 92928 102801 40285920 5 Extended
/dev/cciss/c0d3p5 92928 95450 10293839+ 83 Linux
Disk /dev/cciss/c0d4: 388.5 GB, 388505417728 bytes
255 heads, 32 sectors/track, 92990 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d4p1 1 92990 379399184 83 Linux
Disk /dev/sdb: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 65270 524281243+ 83 Linux
Disk /dev/sdg: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdg1 1 65270 524281243+ 83 Linux
Disk /dev/sdh: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdh1 1 65270 524281243+ 83 Linux
2、可以看到/dev/sdb1分区
3、/sdb1分区下有目录:/DBArchive,如果我使用# mount -t ext3 /dev/sdb1 /DBArchive/可以手动挂接。
4、配置开机自动挂载
因为mount挂载在重启服务器后会失效,所以需要将分区信息写到/etc/fstab文件中让它永久挂载:
vi /etc/fstab
LABEL=/ImageVolume /ImageVolume ext3 defaults 0 0
LABEL=/ims_log /ims_log ext3 defaults 0 0
LABEL=/DBArchive /DBArchive ext3 defaults 0 0
5、 上面最后一行是我写进/etc/fstab,但未生效,不知何故,我这样写有问题吗? |
|