Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I have this portable hard disk with 4 partitions. When I need to safely remove the device I have to unmount each partition manually. Is there a way I can unmount all at once? Or is it suffice to unmount one partition only and remove the disk?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

If you know the device file, say /dev/sdb, you can unmount all partitions of the device with the command: sudo umount /dev/sdb?*

The command sudo umount -a should be avoided, because it would unmount also partitions you do not want to unmount at that moment.

By the way, I think that the gnome right click menu item "Safely remove" is the graphical best way to operate.

share|improve this answer
Thanks! Safely remove does the trick – thameera Oct 22 '10 at 8:29

The command sudo umount -a will unmount them all.

share|improve this answer

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.