The file system of Linux is asynchronous, that is to say, writing a file is not immediately saved to the medium (hard disk, U disk, etc.), but stored in the buffer, and then accumulated to a certain extent and then saved to the medium together. . If there is no umount, the U disk is illegally pulled out, the program does not know, fopen, fwrite and other functions are still returned correctly, knowing that the operating system should write the media, it will prompt I /O error. However, a lot of data will be lost due to this untimely error report.
In fact, the USB driver modified the system configuration file when the USB disk was inserted and removed.
For example, the U disk driver will insert Attached: Yes or No in the /proc/scsi/usb-storage-0/0 when inserting or unplugging. By viewing this file, It is not difficult to detect if the USB flash drive is inserted or removed.
Note: Whether the U disk is inserted or not is not related to mount.
It is quite cumbersome to add and remove programs in Linux. The installation of th
The icons in the upper left corner of Windows 7 Explorer are Favorites, Desktops, and various Librar
>> load heart_scale error using the loadASCII file The number of columns in the third row of h
The YUV format has two broad categories: planar and packed. For the planar YUV format, the Y of all
Modify Linux native IP, gateway and DNS server
Teach you completely free self-built Linux firewall
What is the difference between Linux and BSD?
Linux port listener implementation tutorial
UDP and socket functions (binding ports)
PXE+TFTP+DHCP network automatically boots and installs Linux
Linux system network connection common problem diagnosis
Linux operating system Embedded DVR stability is guaranteed
Win7 closes the skills of own small games
Microsoft wants Win7 to stop selling reasons today
Solve the Win10 preview version of Windows Defender can not start the way
Thunder new function Tumblr picture introduction
What should I do with win8 Bluetooth offline?
Windows RT is a thing of the past or integrated by Windows Blue
CentOS 5.8 release, open source enterprise Linux
How to set user account password in Windows7 system
Meteor Butterfly Sword second off how to play Meteor Butterfly Sword second off Raiders