Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I typically unmount my USB drive (using umount) from /dev/sdb1 before I shutdown my computer but if I shut it down using shutdown -P now and then restart it, the drive is no longer mounted.

Is this a safe way to unmount the drive?

share|improve this question
up vote 5 down vote accepted

Yes, all mounted drives are automatically unmounted during shutdown.

share|improve this answer
thanks for the answer, I would upvote but I don't have quite enough rep yet. – KennyPeanuts May 7 '11 at 1:45
I'm guessing this holds true whether any of the following commands are issued: reboot, shutdown, halt, poweroff ? – dtmland Feb 24 '15 at 18:59
@dtmland, al disks are umounted before shutting down - after killing all user processes. Now, if the system starts again (as in the case of reboot) they can be mounted again on boot - or not, depending on configuration. – Rmano Feb 24 '15 at 21:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.