|
发表于 2003-10-4 13:48:32
|
显示全部楼层
回复: 超级菜鸟问题,关于fdisk的使用,请指点
最初由 gracepig 发表
[root@localhost init.d]# fdisk
bash: fdisk: command not found
怎么回事啊,救命啊
看一下这个,如果不会用,建议不要用。否则出了问题就麻烦了,特别是对于双操作系统共存的问题。fdisk不是新手就能一下就上手的。
[root@linux01 beinan]# /sbin/fdisk
Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
...
[root@linux01 beinan]#
[root@linux01 beinan]# /sbin/fdisk /dev/hda
The number of cylinders for this disk is set to 9729.
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):
比如我想操作/dev/hda这块硬盘,就要用
[root@linux01 beinan]# /sbin/fdisk /dev/hda
里面有提示信息和帮助,说的都很明白。仔细点就是了。
如果不会用fdisk ,建议用cfdisk ,这个倒是和DOS下的fdisk差不多。用起来也比较容易。
http://rpmfind.net/linux/rpm2htm ... p;submit=Search+...
下载安装:
[root@linux01 beinan]# rpm -ivh cfdisk-glibc-0.8g-1.i386.rpm
Preparing... ########################################### [100%]
1:cfdisk-glibc ########################################### [100%]
运行cfdisk
[root@linux01 beinan]# /sbin/cfdisk
界面如下:
cfdisk 0.8g
Disk Drive: /dev/hda
Heads: 255 Sectors per Track: 63 Cylinders: 9729
Name Flags Part Type FS Type Size (MB)
------------------------------------------------------------------------------
/dev/hda1 Boot Primary OS/2 HPFS or NTFS 8001.13
/dev/hda2 Primary Win95 Extended (LBA) 68315.48
[Bootable] [ Delete ] [ Help ] [Maximize] [ Print ]
[ Quit ] [ Type ] [ Units ] [ Write ]
Toggle bootable flag of the current partition
是不是很容易 ??? |
|