Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-06-2009, 12:48 PM   #1
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,142

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
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?)

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:
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, 10:01 PM   #2
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.


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 09:04 PM
is it difficult to share a partition between Linux and XP? mhg Linux - Newbie 11 09-25-2008 04:43 AM
Unmount Windows partition Krishnan.V Ubuntu 2 11-22-2007 04:43 AM
how to unmount a drive where my '/home' is mounted anindyanuri Debian 3 06-25-2006 08:46 AM
unmount hd for partition kuhof Linux - Newbie 5 03-12-2006 03:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:14 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
Open Source Consulting | Domain Registration