Có an toàn để tháo ổ USB khi máy tính đang ngủ?

Mục lục:

Có an toàn để tháo ổ USB khi máy tính đang ngủ?
Có an toàn để tháo ổ USB khi máy tính đang ngủ?

Video: Có an toàn để tháo ổ USB khi máy tính đang ngủ?

Video: Có an toàn để tháo ổ USB khi máy tính đang ngủ?
Video: Reset SMC, NVRAM, PRAM nếu máy Mac của bạn gặp những lỗi này! - YouTube 2024, Tháng Ba
Anonim
Chúng tôi đã nghe tất cả những lời khuyên về việc loại bỏ một cách an toàn các thiết bị USB khi chúng tôi thực hiện xong với chúng, nhưng nếu hệ điều hành bị treo và bạn quyết định rút phích cắm thiết bị USB sau đó thì sao? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc tò mò.
Chúng tôi đã nghe tất cả những lời khuyên về việc loại bỏ một cách an toàn các thiết bị USB khi chúng tôi thực hiện xong với chúng, nhưng nếu hệ điều hành bị treo và bạn quyết định rút phích cắm thiết bị USB sau đó thì sao? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc tò mò.

Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.

Câu hỏi

Người đọc siêu người dùng IQAndreas muốn biết liệu có an toàn khi tháo phương tiện USB khi máy tính bị treo hay không:

We are often cautioned against unplugging USB drives in case they are currently being read from or written to. When a computer is suspended, hibernated, or asleep, it is obviously not writing any data. It may have been in the middle of a read or write operation, however, and it will have put such an operation on hold.

Since no arms are moving (for USB hard drives), or bytes on the drive flickering on and off (for flash drives), is it then “safe” to unplug the drive in question?

Is this true even if data was being written to it, but the operation was temporarily suspended? (Assuming you do not mind that specific file having been only half-written to the USB drive.)

Có an toàn để tháo phương tiện USB khi máy tính bị treo không?

Câu trả lời

Người đóng góp của SuperUser kinokijuf có câu trả lời cho chúng tôi:

While there are indeed no transfers going on, the reason you do the Safely Remove Hardware dance is not because of the transfers. You are doing this to cleanly unmount the file system. Programs may still be using the USB drive and some files may still be unwritten to the disk, even after the application using them is closed. This is the same reason why you do not just hibernate and switch operating systems. A mounted file system is never guaranteed to be in a consistent state.

Ever wondered why an operating system slowed down to a crawl when using floppies? It is because the cache was flushed after writing each sector so that the floppy could be removed at any time when not in use.

You will still get a dialog pop-up and your program will hang if you try to access a floppy that was removed behind your back. Just insert the floppy back and be done. This will not work with USB drives because they get a different identifier each time. The program will just crash and the operating system may too if a driver was accessing a file.

Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.

Hình ảnh tín dụng: Ambuj Saxena (Flickr)

Đề xuất: