Besides all the methods described above, there is also a quick method in Linux that allows you to check the current condition, temperature, cycle count, power-on hours, and an Overall Assessment of your hard disk. In Linux, for partition editing tasks, most users are very fond of usingGpar...
Scan Hard Disk Bad Sectors in Linux In the command above,badblocksis scanning device/dev/sda10(remember to specify your actual device) with the-venabling it to display details of the operation. In addition, the results of the operation are stored in the filebadsectors.txtby means of output ...
When prompted, press'p'for print. This prints out the partition’s information. From the output, you can see that a new partition/dev/sdb1has been created with Linux as the filesystem type. We need to format it to the ext4 filesystem type which we will do so in the next section. L...
You can use the fsck command to repair corrupted file systems when the system fails to boot, or a partition can’t be mounted, or if it’s become read-only. In this article, we’ll see how to use the‘fsck’or‘e2fsck’command in Linux to repair a corrupted file system. Note: Exe...
How to List Block Devices in Linux Using the lsblk Command Thelsblkcommand displays information about all available or specified block devices. While its primary purpose is to show your system’s storage configuration,lsblkcan also provide details about disk space and partition sizes. ...
In this chapter, we’ll discuss in detail how to work with disks on a Linux system. You’ll learn how to partition disks, create and maintain the filesystems that go inside disk partitions, and work with swap space. 在第三章中,我们讨论了内核提供的一些顶层磁盘设备。 在本章中,我们将...
To initialize an Ext4 filesystem, use themkfs.ext4utility. You can add a partition label with the-Lflag. Select a name that will help you identify this particular drive: Note:Make sure you provide the path to the partition and not the entire disk. In Linux, disks have names likesda,sdb...
Explore how to check disk usage using the df and the du commands and learn how a variety of simple arguments can enhance your workflow.
In this article I will show how to change UUID of Linux partition. Change UUID of Linux Partition Follow the below steps to change the UUID of Linux Partition. 1. Run the below command to find out UUID of the devices. # blkid
Using a partition for the swap space Linux includes many native tools to create and manage partitions. You can choose any one you prefer. In this tutorial, we will use thegdiskcommand. It needs the disk path as an argument. It allows us to create, update, and delete partitions on the ...