![]() ![]() In the remainder of this article, I will use /dev/sdb as the disk name in the examples. Once known, make a note of your USB drive disk name. By comparing the output of both commands, you can deduce the disk name of your USB drive. Afterwards, connect your USB drive and run the command one more time. When unsure which disk name belongs to your USB drive, simply run the command with the USB drive disconnected. ![]() The first one is the SSD where Linux is installed and the second one ( /dev/sdb) is my USB drive. The following command lists all disk names on your system:Īs a result you can see that my system has two disks. With other words, the disk name serves as an disk identifier under Linux. For performing formatting and mounting operations, you need to know the disk name to operate on. Typically the disk name looks like /dev/sdX. Finding the disk nameĪfter inserting the USB drive to your PC, Linux automatically assigns a disk name to the device. Therefore, the EXT4 file system is the file system of choice for this article. Since this website is dedicated to Linux tutorials, I assume that you primarily run Linux on your systems. The only real downside is that both Windows and macOS do not know how to access a EXT4 file system by default. Additionally, you do not have to worry about data fragmentation. ![]() With the EXT4 file system, you preserve file permissions when storing data on it. In the case you solely run Linux on your system, the EXT4 file system serves you far better. This makes the USB drive somewhat usable under all popular operating systems such as Windows, macOS and Linux. When you buy a USB drive, it is typically formatted to the FAT32 or NTFS file system. For this reason, this article explains how you can format and mount a USB drive directly in the Linux terminal. Once a day an automated script runs to mount the USB drive, run an incremental backup with BorgBackup and then unmount it again.Īs a server administrator you typically do not have the convenience of a desktop environment and you do all your work through the terminal. Personally, I have a backup USB drive connected to my Debian based Samba file server. Need to install the operating system for the first time? Need to quickly transfer files between systems? Looking for a place to backup your data? These are all potential use cases for a USB drive. Backgroundįor those that administer a physically present Linux server, a USB drive serves as an essential tool. It covers topics ranging from file system selection, all the way to creating a mount point on your system. Do you want to use a USB drive on your Linux server, but you are not sure how to manage the USB drive from the terminal? This article explains how to format and mount a USB drive in the Linux terminal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |