Welcome 微信登录

首页 / 操作系统 / Linux / Linux 空闲空间的格式化与加载

本人有块SCSI硬盘,安装Linux AS4 时没有分区,安装好了系统后想把这块空闲分区使用上,以下是详细的操作步骤一、使用linux as4的硬件查看工具查看未使用的硬盘空间。二、使用fdisk对空闲分区分区。[root@www.linuxidc.com root]# fdisk /dev/sdaThe number of cylinders for this disk is set to 5221.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 <?XML:NAMESPACE PREFIX = ST1 />OSs   (e.g., DOS FDISK, OS/2 FDISK)Command (m for help): pDisk /dev/sda: 42.9 GB, 42949672960 bytes255 heads, 63 sectors/track, 5221 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes   Device Boot    Start       End    Blocks   Id  System/dev/sda1   *         1        13    104391   83  Linux/dev/sda2            14      2356  18820147+  83  Linux/dev/sda3          2357      2610   2040255   82  Linux swapCommand (m for help): nCommand action   e   extended   p   primary partition (1-4)eSelected partition 4First cylinder (2611-5221, default 2611): [root@www.linuxidc.com root]# fdisk /dev/sdaThe number of cylinders for this disk is set to 5221.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): nCommand action   e   extended   p   primary partition (1-4)pSelected partition 4First cylinder (2611-5221, default 2611): 2611Last cylinder or +size or +sizeM or +sizeK (2611-5221, default 5221): 5221Command (m for help): pDisk /dev/sda: 42.9 GB, 42949672960 bytes255 heads, 63 sectors/track, 5221 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes   Device Boot    Start       End    Blocks   Id  System/dev/sda1   *         1        13    104391   83  Linux/dev/sda2            14      2356  18820147+  83  Linux/dev/sda3          2357      2610   2040255   82  Linux swap/dev/sda4          2611      5221  20972857+  83  LinuxCommand (m for help): wThe 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.
  • 1
  • 2
  • 3
  • 下一页
RedHat AS4 U4 kernel-2.6.9-5 --> kernel-2.6.9-42 升级Linux嵌入式工程师成长经历相关资讯      Linux教程 
  • Linux教程:如何在命令行中查看目  (07/28/2014 12:22:23)
  • Linux 修改root密码  (11/03/2012 07:53:38)
  • su - root 与su root的区别  (06/06/2012 00:39:40)
  • Linux进程间通信:消息队列  (01/28/2013 09:43:00)
  • U盘安装Linux开机无法启动解决方法  (10/07/2012 08:55:52)
  • Windows 7/Linux 同步时间  (05/15/2012 06:17:55)
本文评论 查看全部评论 (0)
表情: 姓名: 字数