![]() dispose of sensitive data on any brand of SSD(s) quickly and easily, without having to use various Samsung/Micron/Crucial/Intel tools. ![]() This article is just an NVMe update, for those of you who wish to: How to use Parted Magic's Secure Erase to restore performance of your home lab's abused SSDs.Why might you need a fast and easy way to quickly wipe all the data off any brand of SSD including PCIe NVMe and/or M.2 NVMe drives? I covered the SATA version of this back here: Parted is another great option for manipulating hard disks in Linux, and is about as easy to use as any tool I've seen! From creation, deletion, shrinking, extending, etc, there is so much functionality offered.Posted by Paul Braren on (updated on Oct 23 2016) in When you run the rm command, it will delete the partition number you give it. NOTE: Be sure that you have all of the information correct here, there are no safeguards or are you sure? questions asked. Again, you will need the partition number, which is found in the print output. Now, let's look at how to remove the partition you created at /dev/sdc1 by using the rm command inside of the parted suite. Warning: Shrinking a partition can cause data loss, are you sure you want to Keep in mind that shrinking a partition can cause data loss. You can now resize it back down to 50 MB. You can then verify the changes with the print command. You can see in the above output that I resized partition number one from 50 MB to 100 MB. You are then going to use the resizepart command to make the modifications. You can find this information by using the print command. Now that you have created the new partition at 50 MB, you can resize it to 100 MB, and then shrink it back to the original 50 MB. Modifying existing partitions with parted Number Start End Size Type File system Flags Partition type? primary/extended? primary For demonstration purposes, I chose to create a 50 MB partition. You are creating a new primary partition using the ext4 architecture. Then use mkpart to add the new partition. You can see in the output above that there is no partition table for this partition, so add one by using the mklabel command. Now that you can see what partitions are active on the system, you are going to add a new partition to /dev/sdc. Sector size (logical/physical): 512B/512B ![]() Welcome to GNU Parted! Type 'help' to view a list of commands. You will then use the print command to display disk information. It will default to your first listed drive. Run the parted command to start parted in interactive mode and list partitions. ![]() Displaying existing partitions allows you to make informed decisions moving forward and helps you nail down the partition names will need for future commands. The first thing that you want to do anytime that you need to make changes to your disk is to find out what partitions you already have. For now, let's take a look at the basic operations with which you will want to be familiar. Parted comes pre-installed in this particular distro, but if you need to install it on a different Linux flavor, there is plenty of information online. I am using parted on Red Hat Enterprise Linux 8 for this example. You will also need root access to the system. I recommend that you explore the tool on a virtual machine that contains no important data. Be sure of what you are doing when making changes to partitions. Parted allows you to add, shrink, extend, and remove partitions from storage disks on your system. Let's look at some of the functionality parted offers. We are going to focus on the command line variant here. It runs at the command line, or with a graphical interface, if that's more your speed. GNU parted (PARTition EDitor) was created by Andrew Clausen and Lennert Buytenhek. Today we are going to look at the parted command suite. As it turns out, there are a ton of different tools and command suites that you can use to accomplish this. So you need to manage a storage device? Well, if you are a Linux administrator, then you are in luck.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |