Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use external storage devices such as USB flash drive in linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "how to use USB disk and other external storage devices in linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

How to use external storage devices such as USB flash drive in linux

1. Insert a flash drive

two。 View

Lsblk # View all block devices

Mine is the 256MB flash drive, which is the sdb device shown in the picture. Mountpoint is empty because it has not been mounted yet. The path corresponding to sdb should be / dev/sdb (you can check it with fdisk-l) 3. Mounting

Mkdir / mnt/usb # create a new directory to mount the flash drive mount / dev/sdb / mnt/usb # mount the flash drive to / mnt/usblsblk # check it out

The mountpoint of sdb is no longer empty, but the mount point / mnt/usb

Congratulations! You can browse the contents of the flash drive under / mnt/usb.

After using 4.umount, execute it first.

Umount / dev/sdb / mnt/usb # Uninstall lsblk # first check

Mountpoint is empty again. But you use fdisk-l to check (shows that the flash drive is still there), then you need to turn off the drive.

5. Safely shut down the drive

Udisksctl power-off-b / dev/sdb # safely shut down the drive fdisk-l # View

Now the flash drive is gone (popped up) Note: if prompted

The program 'udisksctl' is currently not installed. You can install it by typing:apt install udisks2

Install udisks2 and try again

Apt install udisks2 # install udisks2

6. Unplug the flash drive

This is the end of the introduction of "how to use external storage devices such as flash drives in linux". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report