netbook remix 9.04 -- /home not always mounted



The release candidate of Ubuntu 9.04 was looking pretty sweet, so i
decided to take the plunge and installed the netbook remix on my eeepc
901.  It's working rather well, but there's one issue which is giving
me a bit of trouble... the /home filesystem isn't recognized early
enough in the boot sequence when running on battery power, and
therefore doesn't get mounted.  When running on AC power, this doesn't
appear to be a problem.

The unit is configured with a small (100 MB or so) /boot partition on
/dev/sda, with the rest of /dev/sda and all of /dev/sdb joined
together into a lvm2 volume group.  The /home filesystem resides on a
SD card (/dev/sdc1), to allow for easy removal if I need to leave the
netbook behind for any reason.  My eventual goal is to encrypt /home,
although I haven't made any attempt to do so at this point.

The actual error message produced by mount indicates that the relevant
/dev/disk/by-uuid/XXXXX symlink isn't present... I'm pretty sure this
is a timing issue, because I can successfully run "sudo mount /home"
(from a text console) as soon as the GUI logon screen appears.  Also,
if I interrupt the boot process (using the "break=top" boot
parameter), within about 2 seconds a kernel message appears indicating
that /dev/sdc has been detected... hitting Ctrl-D at that point
results in a fully successful startup.


As a quick workaround, I've added the following lines to /etc/rc.local.

if [ "`mount | grep -c ' on /home '`" -eq 0 ]; then
  mount /home
fi

While this seems to work reliably, it's a bit too hackish for my
taste... this seems like something which would be better addressed
during the initramfs run. Unfortunately I've never dug into the
initramfs framework before, so I'm a bit out of my element here. Any
suggestions on a proper fix?

I suppose that configuring automount of /home would be another valid
approach, but that seems like overkill (and I have no experience with
it, either). I'm willing give it a try anyway if folks think it's the
right answer, however.

Thanx!

--
Oh no... not another learning experience!

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Ubuntu Live CD to the rescue
    ... My niece brought her thoroughly trashed Dell laptop with XP home over to me because it wouldn't boot up. ... I decided I didn't have a couple of days to spend trying to get the old install to run, so I downloaded the Ultimate Windows Boot CD so I could recover the files. ... So I burned an Ubuntu Live CD and much to my delight, it came right up, network and all. ... I was able to mount the ntfs volume, mount a share on my own computer, and transfer all the data across the network. ...
    (alt.os.linux)
  • Cant read Linux CDs.
    ... Ubuntu, Knoppix, etc., it won't mount. ... IBM Windoze recovery disc, which does boot. ...
    (Ubuntu)
  • Re: Cant read Linux CDs.
    ... Ubuntu, Knoppix, etc., it won't mount. ... IBM Windoze recovery disc, which does boot. ...
    (Ubuntu)
  • Re: problems with smbmount in /etc/fstab
    ... I assume you mean Ubuntu 7.10. ... That should mount at the boot the samba share, ... if I manually execute: ...
    (Ubuntu)
  • Re: Ubuntu/Kubuntu on Mac G5.
    ... Yaboot simply can't load OS X. it tries, and the screen flickers, but nothing happens. ... I'm quite puzzled by why OSX won't boot. ... it says that the line beginning "macosx=" should give the open firmware or unix device path to the OSX boot partition. ... You can use the mouse to select your OSX or your Ubuntu drive, ...
    (Ubuntu)