Linux网络操作系统第11次作业

标签:
教育 |
一. 通过菜单 虚拟机-设置-添加 -磁盘 向系统中添加scsi磁盘,重启计算机,然后显示系统当前磁盘的分区信息。
新加磁盘设备为:/dev/hdb
1.用fdisk新建一个分区。
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
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 the next reboot.
Syncing disks.
[root@linux /]# reboot
最后的警告,要求系统重启,新的分区表才会生效。
另外,我们还可以做如下的操作:
d--删除分区
a--调整活动分区
l --是列出分区类型,以供我们设置相应分区的类型
m -- 是列出帮助信息
2.完成建立主分区(p)、建立扩展分区(e)、删除分区(d)、调整活动分区(a)、再查看系统的分区表有何变化。
3.格式化该分区。
4.把该分区挂载到/mnt/music目录。
5.在/etc/fstab最后添加一项,使其每次开机都自动挂载。
1.插入U盘后,就可查看该U盘的设备名(名称不固定,比如/dev/sdc1)及分区表信息。
2.然后手动挂载。
3.手动缷载