Linux硬盘分区知识简介
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x3571e2ec Device Boot Start End Blocks Id System /dev/sdb1 * 1 9729 78148161 7 HPFS/NTFS ivan@ivan-desktop:~$
分区示例: ivan@ivan-desktop:~$ sudo fdisk /dev/sda The number of cylinders for this disk is set to 19457. 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): m #帮助 Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition''s system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): d #删除分区 Partition number (1-8): 2 Command (m for help): p # 打印分区表 Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0003ce53 Device Boot Start End Blocks Id System /dev/sda1 * 1 3825 30720000 7 HPFS/NTFS /dev/sda3 7650 11474 30720000 7 HPFS/NTFS /dev/sda4 11475 19457 64123447 5 Extended /dev/sda5 11475 14444 23856472 7 HPFS/NTFS /dev/sda6 19247 19457 1694826 82 Linux swap / Solaris /dev/sda7 14445 15660 9767488 83 Linux /dev/sda8 15661 19246 28804513 83 Linux Partition table entries are not in disk order Command (m for help): n #建立新分区 Command action l logical (5 or over) p primary partition (1-4) p #主分区 Selected partition 2 First cylinder (3825-19457, default 3825): #开始柱面 Using default value 3825 Last cylinder, cylinders or size{K,M,G} (3825-7649, default 7649): #结束柱面 Using default value 7649 Command (m for help): MBR的备份与恢复 MBR的损坏,对于计算机用户来说,无疑是致命性的打击,本人就曾多次遭遇过这种打击.MBR一旦损坏,意味着系统无法正常引导,分区表被破坏,以致于数据的大量丢失.为了减轻这种灾难所带来的损失,备份MBR是值得的.我们已经知道,MBR就是一块硬盘的第一个扇区的那512字节,它的结构也已经清楚了.在LInux环境下,备份MBR |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |