![]() ![]() So, the disk we are working with is a block EBS device called /dev/xvdb. In this example, we are going to use Ubuntu Server 14 as an instance in Amazon EC2 cloud. resize2fs - modifies existing file system to fit new size bounds.e2fsck - allows checking of the modified file system for errors.It will recreate partitions with newly specified bounds. mount / umount - simple tools allowing you to detach a partition to change its properties.df / lsblk - allows you to list available drives, including block devices.Linux has built-in tools (commands) to work with partitions: If done carefully, you will not lose your data on the modified element, despite the frightening phrase "delete the partition". Then you need to simply modify the file system properties to fit the new bounds. The primary way of resizing drive partitions in Linux is to delete the old one and create a new one, using the previous starting sector (you can think about it like “left bound of the new partition”). Build an effective backup strategy for your Linux system: download our free Once data is deleted it cannot be undeleted. We will use only built-in tools and commands.īefore you begin with partitions, make sure you have a solid backup. In this article, we will overview how to resize a partition in a Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |