Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 02-18-2013, 11:01 AM   #1
Registered: Feb 2013
Posts: 36

Rep: Reputation: Disabled
Is it necessary to unmount other partitions (like Windows ntfs ones) before shutdown?

Hi, I have 4 partitions, 1: ext4 for Linux, 2: ntfs for windows, 3: ntfs for data, 4: ntfs extra. On boot, I mount both the 2nd and 3rd partition (via the fstab file).

Is it really important to unmount them before shutdown? OR is it that Linux does this autumatically for me?

I'm asking cuz I had an accident once, with this mounting/unmounting thing, lost everything in a partition.

This is how I mount a partition: mount /dev/sdxx /mnt/dir
And this is how I unmount them: umount /mnt/dir

If it's important to unmount them before shutdown, one might forget, so is there a way to unmount them automatically on shutdown, just like how we did on mounting them on booting via fstab? just like a destructor in programming.

Old 02-18-2013, 11:25 AM   #2
Senior Member
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
You can shutdown the machine via software w/o any problem, the system will unmount everything before turn off the machine.
You should post this under software, just a thought.

Old 02-18-2013, 11:27 AM   #3
Registered: Mar 2011
Location: /
Distribution: Fedora (typically latest release or development release)
Posts: 372

Rep: Reputation: Disabled
As far as I know, you do not have to manually unmount the partitions. The entries in fstab should be unmounted automatically during shutdown.

Also, in my experience, I have never had to manually unmount *any* partition during shutdown. I have also lost data when I accidentally unplugged a hard disk when data writing was in progress.
Old 02-20-2013, 12:58 PM   #4
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,866

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
Most distros unmount everything in /etc/mtab i.e. everything mounted with a umount -a or similar and remount / read only before closing.
Old 02-22-2013, 11:07 PM   #5
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2
Posts: 362

Rep: Reputation: 79
To lose a partition like that, something else had to have happened that has not been mentioned. Not waiting for the shutdown to complete before yanking a power cord, or a power failure during a storm sometimes will do it or even introduce a logical defect that later evolves into failure. But most often, some damaging command was done 2 hours earlier during a flurry of maintenance activity.


mount, partition

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] delete and resize windows basic ntfs partitions with gparted yokkem Linux - Newbie 3 03-22-2011 04:13 AM
how can i see my ntfs partitions (windows) into redhat linux operating system Prasi Linux - Newbie 2 04-18-2010 05:15 PM
How to mount NTFS partitions of Windows in FC6 ajeya Linux - Newbie 5 02-05-2008 03:14 PM
Can Linux write to NTFS windows partitions? Stevetgn Linux - General 12 02-04-2004 05:00 AM
Read multi partitions in Windows NTFS from linux java8964 Linux - General 5 11-19-2003 11:18 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration