LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1150|回复: 4

有没有能修改主分区激活标记的软件?

[复制链接]
发表于 2005-12-21 12:50:20 | 显示全部楼层 |阅读模式
请问一下linux有没有能修改主分区激活标记的软件?
DOS下diskgen可以。不知道linux有没有?
发表于 2005-12-21 12:52:33 | 显示全部楼层
cfdisk
or
sfdisk
回复 支持 反对

使用道具 举报

发表于 2005-12-21 14:42:51 | 显示全部楼层
字符下可以用 cfdisk , 或更强大的 fdisk
图形的可以用 gparted 或  qtparted


  1. hua@vgh:~$ sudo fdisk /dev/hda
  2. The number of cylinders for this disk is set to 9964.
  3. There is nothing wrong with that, but this is larger than 1024,
  4. and could in certain setups cause problems with:
  5. 1) software that runs at boot time (e.g., old versions of LILO)
  6. 2) booting and partitioning software from other OSs
  7.    (e.g., DOS FDISK, OS/2 FDISK)
  8. Command (m for help): p
  9. Disk /dev/hda: 81.9 GB, 81964302336 bytes
  10. 255 heads, 63 sectors/track, 9964 cylinders
  11. Units = cylinders of 16065 * 512 = 8225280 bytes
  12.    Device Boot      Start         End      Blocks   Id  System
  13. /dev/hda1               1        1000     8029728   83  Linux
  14. Partition 1 does not end on cylinder boundary.
  15. /dev/hda2            1001        2432    11502540   83  Linux
  16. /dev/hda3            2433        9500    56773710    5  Extended
  17. /dev/hda5            2433        2675     1951866   82  Linux swap / Solaris
  18. /dev/hda6            2676        8754    48829536   83  Linux
  19. /dev/hda7            8755        9500     5992213+  83  Linux
  20. Command (m for help): p
  21. Disk /dev/hda: 81.9 GB, 81964302336 bytes
  22. 255 heads, 63 sectors/track, 9964 cylinders
  23. Units = cylinders of 16065 * 512 = 8225280 bytes
  24.    Device Boot      Start         End      Blocks   Id  System
  25. /dev/hda1   *           1        1000     8029728   83  Linux
  26. Partition 1 does not end on cylinder boundary.
  27. /dev/hda2            1001        2432    11502540   83  Linux
  28. /dev/hda3            2433        9500    56773710    5  Extended
  29. /dev/hda5            2433        2675     1951866   82  Linux swap / Solaris
  30. /dev/hda6            2676        8754    48829536   83  Linux
  31. /dev/hda7            8755        9500     5992213+  83  Linux
  32. Command (m for help): w
  33. The partition table has been altered!
  34. Calling ioctl() to re-read partition table.
  35. WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
  36. The kernel still uses the old table.
  37. The new table will be used at the next reboot.
  38. Syncing disks.
  39. hua@vgh:~$ sudo fdisk -l
  40. Disk /dev/hda: 81.9 GB, 81964302336 bytes
  41. 255 heads, 63 sectors/track, 9964 cylinders
  42. Units = cylinders of 16065 * 512 = 8225280 bytes
  43.    Device Boot      Start         End      Blocks   Id  System
  44. /dev/hda1   *           1        1000     8029728   83  Linux
  45. Partition 1 does not end on cylinder boundary.
  46. /dev/hda2            1001        2432    11502540   83  Linux
  47. /dev/hda3            2433        9500    56773710    5  Extended
  48. /dev/hda5            2433        2675     1951866   82  Linux swap / Solaris
  49. /dev/hda6            2676        8754    48829536   83  Linux
  50. /dev/hda7            8755        9500     5992213+  83  Linux
  51. hua@vgh:~$
  52. .
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-12-21 15:26:48 | 显示全部楼层
Post by jhuangjiahua
cfdisk , 或更强大的 fdisk

偶比较菜,感觉这话应该倒过来,呵呵。
回复 支持 反对

使用道具 举报

发表于 2005-12-21 15:29:55 | 显示全部楼层
没有错

fdisk 比其它都要强大

(注意 , 是 Linux 下的 fdisk , 不是 DOS 下的 )
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表