- 论坛徽章:
- 0
|
IBM有奖测试,大家帮我看看我错的是哪几个题!
[quote]原帖由 "sakulagi"] 我也觉得不应该选这个,可是测试的标准答案是c。估计是答案错了。[/quote 发表:
我觉得答案可以,我试了一下,
[root@test root]# fdisk /dev/hda
The number of cylinders for this disk is set to 2088.
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): p
Disk /dev/hda: 255 heads, 63 sectors, 2088 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 892 7164958+ 83 Linux
/dev/hda2 893 957 522112+ 82 Linux swap
/dev/hda3 958 1200 1951897+ 5 Extended
/dev/hda4 1201 1220 160650 83 Linux
/dev/hda5 958 1200 1951866 83 Linux
分区表如上,我建立了扩展分区hda3,又在上面建了逻辑分区hda5,之后我建立的hda4主分区,这样我就满足了硬盘上有逻辑分区,而且我也可以在hda4上建立分区类型ext2
[root@test root]# mkfs -t ext2 /dev/hda4
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
40320 inodes, 160650 blocks
8032 blocks (5.00%) reserved for the super user
First data block=1
20 block groups
8192 blocks per group, 8192 fragments per group
2016 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@test root]# mount /dev/hda4 /mnt
[root@test root]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 7052464 1827668 4866552 28% /
none 127724 0 127724 0% /dev/shm
/dev/hda4 155557 13 147512 1% /mnt
我的做法对吗? |
|