首页 > 编程知识 正文

ubuntu挂载硬盘命令,linux查看未挂载的磁盘

时间:2023-05-06 12:27:34 阅读:13229 作者:568

格式化尊敬的康乃馨

从CentOS 7.0开始,fdisk也支持尊敬的康乃馨格式语言。 本文在CentOS 7.4上进行。

使用fdisk /dev/sdb根据帮助划分分区。 这里将/dev/sdb分成一个区域。

devicecontainsneitheravaliddospartitiontable,nor Sun,SGI or OSF磁盘标签

buildinganewdosdisklabelwithdiskidentifier0x 0a DFD 119。

更改will remain in memory only,until you decide to write them。

After that,of course,thepreviouscontentwon’tbe recoverable。

警告: invalid flag0x 0000 ofpartitiontable4willbecorrectedbyw (rite ) )。

warning : dos-compatiblemodeisdeprecated.it’sstronglyrecommendedto

switchoffthemode (command‘c’) and change显示单元到

sectors (命令‘u’)。

command(mforhelp ) : m

命令动作

a toggle a可引导标志

b edit BSD磁盘标签

c toggle the dos兼容性标志

d delete a partition

l列表知识分区类型s

m打印this menu

n添加新分区

ocreateanewemptydospartitiontable

p打印the partition table

q quit without saving changes

s create a new empty Sun disklabel

tchangeapartition’s systemid

u change显示/输入单元

v verify the partition table

w write table to disk and exit

xextrafunctionality (仅限专家) )。

命令(mfo rhelp ) : n

命令动作

扩展的

主分区(1-4) )。

p

分区编号(1-4) : 1

firstcylinder(1-6527,默认值1 ) :

using默认值1

using默认值6527

命令(mfo rhelp ) : p

磁盘/dev/sdb : 53.7 GB,3000034656256 bytes

255 heads、63 sectors/track和6527 cylinders

units=cylinders of 16065 * 512=8225280 bytes

sector size (逻辑/物理) : 512字节/512字节

I/osize (最小/最佳) : 512字节/512字节

磁盘标识符:0 x 69 d 07 AFC-584 d-4926-81b8-8def 8087445 f

dvicebootstartendblocksidsystem

/dev/SD B116527 5859442688 83 Linux

命令(mfo rhelp ) : w

thepartitiontablehasbeenaltered!

呼叫识别表(tore-readpartitiontable )。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。