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

The solution that hard disk can not be mounted by linux

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

Share

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

Mounting is a process in which the operating system makes computer files and directories on a storage device (such as hard disk, CD-ROM, or shared resources) accessible to users through the computer's file system.

In general, when the computer shuts down, each mounted storage undergoes an unmount to ensure that all queued data is written and to ensure the integrity of the file system structure on the media.

Execute dumpe2fs / dev/sda5-h | head to check file system status

See that Filesystem state: clean with errors is an error message.

Direct umount / dev/sda5 uninstall

If the unmount is not successful, there should be a process using the current file system, using fuser-mk / dev/sda5 to force the process of the file system to end. Then use df-h to see if the uninstall is successful.

(fuser this command lists the processes that use any file on the device. -m: specify a loaded file system or a loaded block device;-k: kill all processes accessing the specified file)

Uninstall fsck-y / dev/sda5 for file repair

The fsck command is used to check and attempt to fix errors in the file system. When an error occurs in the file system, you can use the fsck directive to try to fix it. The option for-y is to enter: y) in subsequent confirmation dialogs.

Reboot after repair and you can mount or use it again!

Use mount or dumpe2fs / dev/sda5-h | head to see if it is back to normal.

Note: df and du are used to check file system size, fsck file system repair, and dumpe2fs to check file system status. The du command also looks at the usage space, but unlike the df command, whether the Linux du command looks at the space used by the file and directory disk, or whether it is different from the df command.

These are the details of the hard drive that cannot be mounted on linux. Please pay attention to other related articles for more information.

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

Servers

Wechat

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

12
Report