当前位置:首页> 滚动 >

当前观点:linux大硬盘怎么分区

时间:2023-02-09 00:09:00    来源:互联网

随着硬盘的增大,linux系统对大硬盘,大分区的支持也有了相应的设置。很多刚刚学习的小白还是不太懂硬盘的挂载。为此学习啦小编为大家整理推荐了相关的知识,希望大家喜欢。

linux大硬盘分区的详细方法


(资料图片仅供参考)

查看分区

root@Dios ~]# fdisk -l (这个命令是查看你为挂载的分区的位置)WARNING: GPT (GUID Partition Table) detected on "/dev/cciss/c0d1"! The util fdisk doesn"t support GPT. Use GNU Parted.Disk /dev/cciss/c0d1: 4000.6 GB, 4000684662784 bytes255 heads, 63 sectors/track, 486388 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System/dev/cciss/c0d1p1 1 267350 2147483647+ ee EFI GPT

Parted工具分区转换

1. 使用parted命令:[root@Dios ~]# parted /dev/cciss/c0d1 (这个命令是对我们上面查到的分区进行GPT转换)GNU Parted 1.8.1Using /dev/cciss/c0d1Welcome to GNU Parted! Type "help" to view a list of commands.(parted) mklabel gpt Warning: The existing disk label on /dev/cciss/c0d1 will be destroyed and all data on this disk will be lost. Do you want tocontinue?Yes/No? y New disk label type? [gpt]? gpt

2. (parted) mkpart primary 0 4000GB(进行转换及分区)(parted) print Model: Compaq Smart Array (cpqarray)Disk /dev/cciss/c0d1: 4001GBSector size (logical/physical): 512B/512BPartition Table: gptNumber Start End Size File system Name Flags1 17.4kB 4001GB 4001GB primary (parted) quit Information: Don"t forget to update /etc/fstab, if necessary.

格式化分区

1.[root@Dios ~]# mkfs.ext3 -F /dev/cciss/c0d1(格式化为EXT3文件系统)mke2fs 1.39 (29-May-2006)Filesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)488374272 inodes, 976729654 blocks48836482 blocks (5.00%) reserved for the super userFirst data block=0Maximum filesystem blocks=029808 block groups32768 blocks per group, 32768 fragments per group16384 inodes per groupSuperblock backups stored on blocks:32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,102400000, 214990848, 512000000, 550731776, 644972544Writing inode tables: done Creating journal (32768 blocks): doneWriting superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 22 mounts or180 days, whichever comes first. Use tune2fs -c or -i to override.

开机自动挂载分区

1.挂载(因为这样挂在比较麻烦 我们用下面的命令进行开机挂在)[root@Dios ~]# mkdir -p /mnt/cciss/c0d1[root@Dios ~]# mount /dev/cciss/c0d1 /mnt/cciss/c0d1[root@Dios ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/cciss/c0d0p5 15G 1.8G 12G 13% //dev/cciss/c0d0p3 19G 173M 18G 1% /usr/local/dev/cciss/c0d0p2 862G 200M 817G 1% /else/dev/cciss/c0d0p1 251M 21M 218M 9% /boottmpfs 2.0G 0 2.0G 0% /dev/shm/dev/cciss/c0d1 3.6T 197M 3.4T 1% /mnt/cciss/c0d1

开机自动挂载这块硬盘:vi /etc/rc.local加上:mount /dev/cciss/c0d1 /mnt/cciss/c0d1

标签: 大硬盘分区

百利天恒:融资净买入1396.39万元,融资余额2391.22万元(03-14)_天天热门

2023年3月14日百利天恒融资净买入1396 39万元,融资余额2391 22万元

2023-03-15

世界最资讯丨甲类厂房设计要求_甲类厂房

1、制药厂甲类厂房的防火间距按建规是12m,而石化规范为30m,按照石油化工企业防火设计规范吧,不同地方审查依据不同的规

2023-03-15

爱奇艺破译会员_爱奇艺会员破解

[emailprotected]本文就为大家分享到这里,希望小伙伴们会喜欢。

2023-03-14

80年代超经典的电影_80年代超生女

1、二十世纪八十年代提出一对夫妻一个孩要求时。2、不能超生。以上就是【80年代超经典的电影,80年代超生女】相关内容。

2023-03-14

环球资讯:中交地产10亿元公司债券票面利率为4.4%

中交地产10亿元公司债券票面利率为4 4%-3月13日,据深交所披露,中交地产股份有限公司2023年面向专业投资者公开发行公司债券(第一期)票面利

2023-03-14

今年南昌人社将深化“退休一件事”改革 实现退休“不见面”审批

今年南昌人社将深化“退休一件事”改革实现退休“不见面”审批

2023-03-14

孕妇可以吃冰激凌吗孕中期_孕妇可以吃冰激凌吗_每日速讯

1、孕妇可以吃冰激凌吗?孕妇可以吃冰淇淋。2、孕妇夏天不耐热。3、爱出汗,夏天想吃点凉的,可以吃冰淇淋。4、但是,冰淇淋

2023-03-14

世界快资讯丨上交所新增受理富烯科技科创板上市申请

3月13日上交所新增受理常州富烯科技股份有限公司科创板上市申请。公司拟募集资金4 03亿元。常州富烯科技股份有限公司(简称富烯科技)成立于2014

2023-03-14

中国中铁(601390)3月13日主力资金净买入1.23亿元

截至2023年3月13日收盘,中国中铁(601390)报收于6 89元,上涨7 15%,换手率1 8%,成交量367 51万手,成交额24 87亿元。

2023-03-14

天天观点:你永远无法想象“老头乐转正”有多可怕,3.99万买埃尔法

见多识广的你,路上偶遇一辆奔驰G级、Jeep牧马人、丰田埃尔法、路虎揽胜等极具辨识度的豪华车型,想必一眼就能认出。殊不知,时光往回倒流几年

2023-03-14

X 关闭

X 关闭