深入Linux:学会设置分区(linux设置分区)
With the development of Linux operating system,how to set up partition in Linux is becoming more and more important for those who desire to deeply conquer the former. Based on my long experience of the field, this article will illustrate my own way of setting up Linux partition.
Firstly, use fdisk to set up partition sizes. Fdisk is a program making it possible to help us create, delete, modify and check the partitions. When using it, we need to enter the following code line: fdisk –l, which helps show the information about the existing partitions. For example, the following statements shows the size, start and end sectors of the partition:
Command:fdisk –l
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table:msdos
Number Start End Size Type File system Flags
1 32.3kB 500GB 500GB primary ext4 lba
2 500GB 500GB 32.3kB Free space
Secondly, employ parted to create partition. To set up partition on different file system, parted is a must tool. With it we can easily create partitions on popular file systems like ext2, ext3, FAT16, FAT32 and others.Again, the following statement can be used when creating partition:
Command: parted /dev/sda
(parted) mkpart primary ext4 20GB 40GB
(parted) print
Number Start End Size File system Name Flags
1 32.3kB 20GB 20GB primary ext4 lba
2 20GB 40GB 20GB primary ext4
3 40GB 500GB 500GB primary ext4
Finally, resize the created partition. When the partition is being set up, the size is fixed. But with the help of gparted, the size of partition can be accelerated. The code line should be typed in terminal:
Command: gparted /dev/sda
(gparted) resize
The size of partition can be adjusted through the pop-up window.
All in all, it’s not difficult to set up partitions in Linux. With fdisk, parted and gparted, it is a breeze to create, modify, resize and check partitions. However, please pay attention to the warning message caused by wrong operations and make sure you understand what the code lines mean before operating.
我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题
本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 深入Linux:学会设置分区(linux设置分区)
相关文章
- Linux系统快速部署SSH服务(linux安装ssh服务)
- Linux:深入理解文件分类(linux文件分类)
- 掌握Linux命令快速设置IP(linux命令设置ip)
- Linux下静态库路径设置指南(linux静态库路径)
- 深入了解Linux系统的编码格式(linux系统编码格式)
- 建设Linux 日志服务器以获致意想安全(linux日志服务器)
- 深入了解Linux日志系统(linux日志系统)
- 深入学习Linux服务器维护与管理教程(linux服务器维护教程)
- 深入了解Linux系统文件路径(linux系统文件路径)
- Linux解压多个文件的简单方法(linux解压多个文件)
- Linux系统下安装.sh文件的教程(linux安装sh文件)
- 信息Linux中深入了解进程详细信息(linux查看进程详细)
- Linux下调整文件颜色的简易方法(linux设置文件颜色)
- Linux下简单字符替换脚本实现方法(linux字符替换脚本)
- Linux驱动路由器设置指南(linux配置为路由器)
- Linux文件存储:深入探索目录结构(linux文件的存储结构)
- 探索Linux内核堆栈空间(linux查看堆栈)
- Linux关闭Swap:一种实现方式(linux关闭swap)
- 深入探索 Linux 服务管理(linux服务查看)
- 结构Linux: 深入理解多级目录结构(linux多级目录)
- 服务Linux上快速完成DNS服务配置(linux配置dns)
- Linux的发展之路:从分支到进化(linux的分支)
- 深入探索 Linux 下的 jps 工具(jpslinux)
- 深入探索Linux服务器源码,解密开放软件的奥秘(linux服务器源码)
- Linux中确定目录是否存在的方法(linux判断目录是否存在)
- Linux下串口打印机的设置与使用(linux串口打印机)
- 深入探索Linux多媒体编程,让你的应用独树一帜(linux多媒体编程)
- 「深入理解Linux关机函数」(linux关机函数)
- Linux系统搭建之日志设置管理(linux 系统日志设置)
- 深入了解 Linux 只读系统文件的详细信息(linux只读系统文件)
- Linux入门:一本引路之书(linux系统入门书籍)
- 深入了解Linux版本,探索Linux专业知识,从知乎获取技能提升(linux知乎版本)
- Linux 为何物:添加用户名的方法(linux 添加用户名)
- 利用Linux创建便捷无线热点:简单设置,无需繁琐操作(linux无线热点)
- 25字中文文章标题:深入解析Linux中的Top命令(linux top命令详解)
- 如何在Linux上成功安装JDBC驱动程序(linux安装jdbc)
- Linux下文件命名指南:有效构建有序目录(文件名 命令 linux)
- 流畅体验:Linux配置虚拟主机指南(linux设置虚拟主机)
- 本深入了解Linux新版本,加快科技发展(linux 版)
- 在Linux系统中安装QQ,轻松给你的生活带来更多乐趣(qq安装linux)