LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2009, 01:48 PM   #1
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Difficult: 'buntu upstart won't unmount /home partition cleanly


I have spent the entire weekend on this, and I'm prepared to admit that I'm stuck.
I have searched until my fingers are raw, and you-know-who is sick of my questions.

I am running eeebuntu-3.0 (basically ubuntu 9.04, with a 2.6.29-1-netbook kernel tweaked for the eee)

It works fine.

Because I want to use it with GPS (tangoGPS is excellent!) I moved /home from the internal SSD "disk" to the SDHC card slot, where I have a 16GB card. Lots of room for maps
/dev/sdb1 is mounted by its UUID as /home by an entry in fstab. It works.

When I shutdown (verbosely), it goes through all the usual stuff, and finishes with
Unmounting local filesystems [OK]
Will now halt.

[Turns off]

So far, so good.

But when I reboot it says SDHC (SDHC is the volume label for my ext2 formatted SDHC "home" card) was not cleanly unmounted, check forced, and it runs fsck (which sometimes "dies with error code 1").

Then, everything seems to work.

If I log out of the gnome GUI, log into a root CLI terminal on F1, and unmount /dev/sdb1 manually, it unmounts without problems.
I can then issue reboot and I get a clean boot, without the fsck.

So, why isn't the GUI shutdown doing the unmounting of /home properly?

I have looked at /etc/init.d/umountfs and it seems OK, but it is quite a complex script.

I added this near the start of /etc/init.d/umountroot (because root is supposed to be unmounted after everything else, right?)

Code:
log_action_begin_msg "Forcing unmount of /dev/sdb1 from umountroot"
/bin/umount /dev/sdb1
log_action_end_msg $?
Now I get this error at shutdown:
Code:
Forcing unmount of /dev/sdb1 from umountroot
umount: /dev/sdb1: is not mounted
But then at the next boot I still get :
SDHC was not cleanly unmounted, check forced.

And fsck runs again.

How can /dev/sdb1 be "not mounted" and yet "was not cleanly unmounted"?

Any ideas?
 
Old 12-07-2009, 11:01 PM   #2
flakblas
Member
 
Registered: Jun 2009
Location: Maryland
Distribution: Fedora, CentOS, RHEL, Ubuntu
Posts: 41

Rep: Reputation: 3
I had the same problem a while back and eventually gave up on having my /home on an SD card. Hope there's a work-around for this.
 
  


Reply


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
External USB hard drive doesn't unmount cleanly at shutdown DavidHindman Slackware 6 02-18-2009 10:04 PM
is it difficult to share a partition between Linux and XP? mhg Linux - Newbie 11 09-25-2008 05:43 AM
Unmount Windows partition Krishnan.V Ubuntu 2 11-22-2007 05:43 AM
how to unmount a drive where my '/home' is mounted anindyanuri Debian 3 06-25-2006 09:46 AM
unmount hd for partition kuhof Linux - Newbie 5 03-12-2006 04:15 PM


All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration