LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Search this Thread
Old 02-18-2013, 12:01 PM   #1
Vexe
Member
 
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.

Thanks!
 
Old 02-18-2013, 12:25 PM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,029

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.

Regards
 
Old 02-18-2013, 12:27 PM   #3
nonamedotc
Member
 
Registered: Mar 2011
Posts: 343

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, 01:58 PM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,564

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
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-23-2013, 12:07 AM   #5
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37
Posts: 271

Rep: Reputation: 54
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.
 
  


Reply

Tags
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 05:13 AM
how can i see my ntfs partitions (windows) into redhat linux operating system Prasi Linux - Newbie 2 04-18-2010 06:15 PM
How to mount NTFS partitions of Windows in FC6 ajeya Linux - Newbie 5 02-05-2008 04:14 PM
Can Linux write to NTFS windows partitions? Stevetgn Linux - General 12 02-04-2004 06:00 AM
Read multi partitions in Windows NTFS from linux java8964 Linux - General 5 11-19-2003 12:18 PM


All times are GMT -5. The time now is 08:39 PM.

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