1

This might sound like, an "Edit /etc/fstab" answer. My fstab has the SD card mounted to /home directory. However, when I start the computer, the home directory ends up on the same partition as my / directory, instead of on the SD card.

  1. Mounting the SD card to any other directory (e.g. /home2) works.
  2. Moving the /home entry up/down in fstab does not help.
  3. Modifying parameters of the /home mount does not help.
  4. Manually typing in "mount /home" at the command prompt after the computer is started does work.

Entry from cat /proc/mounts: [first one comes from fstab]

mtd0 on / type jffs2 (rw,noatime,rp_size=4096)
mtd0 on /home type jffs2 (rw,relatime,rp_size=4096)
mtd0 on /versions type jffs2 (rw,relatime,rp_size=4096)
mtd0 on /security type jffs2 (rw,relatime,rp_size=4096)

(then come remaining entries from fstab)

I have Fedora 18. To answer comments:

After running "mount /home", the entries listed above stay; however, a new entry is added below, which results in a correct mount:

/dev/mmcblk0p3 /home ext3 rw,relatime,user_xattr,barrier=1,nodelalloc,data=ordered  0 0

My /etc/fstab file:

/dev/root   /   ext4    defaults,noatime    0 0
devpts  /dev/pts    devpts  gid=5,mode=620  0 0
tmpfs   /dev/shm    tmpfs   defaults,size=50m   0 0
proc    /proc   proc    defaults    0 0
sysfs   /sys    sysfs   defaults    0 0
/dev/mmcblk0p2  swap    swap    0 0
/dev/mmcblk0p1  /usr    ext3    defaults    0 0
/dev/mmcblk0p4  /var    ext2    defaults    0 0
/dev/mmcblk0p3  /home   ext3    defaults    0 0

How do I keep /home from mounting on the same partition as /?

migrated from serverfault.com Jan 5 '16 at 3:56

This question came from our site for system and network administrators.

  • We say "a device is mounted on a directory", not the other way round. It looks like you mount the same device to several mount points. This makes sense with file systems with subvolumes (like btrfs) only. What is the output of cat /proc/mounts after running mount /home manually? – Hauke Laging Jan 5 '16 at 4:07
  • 1
    @drewbenn It's root= not init= – Hauke Laging Jan 5 '16 at 5:04
  • 1
    What is the output of cat /proc/cmdline? – Hauke Laging Jan 5 '16 at 5:04
  • 1
    Search in the output of journalctl -b for home or mount. – Hauke Laging Jan 5 '16 at 14:48
  • 2
    You know, in my opinion, the best answers are selfies. Especially for one-offs - my answer would just be conjecture, but it's your problem and you fixed it, so who could be better to document it than you? If you post an answer, I'll upvote it. – mikeserv Jan 6 '16 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.