- 33
- 0
- 约8.62千字
- 约 8页
- 2018-01-13 发布于河南
- 举报
实验八 文件系统和磁盘管理
实验需求
对该分区进行格式化;
把该分区挂载到/mnt/music目录;
要求每次机器启动都自动挂载。
【系统及软件环境操作系统:ed Hat AS 4.0
【实验配置文件
1.配置文件:/etc/fstab
2.命令:/sbin/fdisk,/sbin/mkfs.ext3,/bin/mkdir,/bin/mount
【实验步骤[root@linux /]# fdisk -l
Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1288 83 Linux
/dev/hda3 1289 1415 1020127+ 82 Linux swap
/dev/hda4 1416 9733 5 Extended
/dev/hda5 1416 1496 650601 8e Linux LVM
/dev/hda6 1497 1517 168651 fd Linux raid autodetect
/dev/hda7 1518 1538 168651 fd Linux raid autodetect
/dev/hda8 1539 1557 152586 83 Linux
/dev/hda9 1558 2321 6136798+ 83 Linux
/dev/hda10 2322 2386 522081 82 Linux swap 由上面的信息可知,系统的扩展分区/dev/hda4中还有空闲的空间(因为该磁盘共有9733个柱面,/dev/hda4的结束柱面为9733,而该扩展分区中的最后一个逻辑分区/dev/hda10的结束柱面为2386,所以柱面2387~9733都是空闲的),于是可以新建一个100M的分区。
2.用fdisk新建一个分区。
[root@linux /]# fdisk /dev/hda
The number of cylinders for this disk is set to 9733.
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 (2387-9733, default 2387): 2387
Using default value 2387
Last cylinder or +size or +sizeM or +sizeK (2387-9733, default 9733): +100M
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 th
原创力文档

文档评论(0)