You are not logged in.

#1 2014-01-23 05:51:08

Xerict
Member
Registered: 2012-01-29
Posts: 21

[SOLVED] Fresh install has / duplicated in /home

So I just installed arch on an old tower of mine, and I noticed that all the directories that are normally in / are also in /home (including another home that is empty).  This is clearly something I did wrong during the mounting process before pacstrap, but I don't know what.

Mainly I just want to know if there is a way to fix this without just re-installing.  I get the feeling I could just delete all the directories in /home that aren't supposed to be there, but it would probably have detrimental effects to the systems ability to run at all.

It would also be nice to know what it is I did wrong during the install process, if anyone knows off-hand.  My install has 4 partitions that i mounted before installing:
/boot
swap
/
/home

Last edited by Xerict (2014-01-23 08:04:59)

Offline

#2 2014-01-23 06:08:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,823

Re: [SOLVED] Fresh install has / duplicated in /home

What is the output of mount  ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2014-01-23 06:25:35

Xerict
Member
Registered: 2012-01-29
Posts: 21

Re: [SOLVED] Fresh install has / duplicated in /home

--> mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=1024044k,nr_inodes=256011,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda4 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=40,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
tmpfs on /tmp type tmpfs (rw)
/dev/sda4 on /home type ext4 (rw,relatime,data=ordered)

Offline

#4 2014-01-23 06:28:24

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Fresh install has / duplicated in /home

You mounted /dev/sda4 twice.  Check your fstab.

Offline

#5 2014-01-23 06:34:19

Xerict
Member
Registered: 2012-01-29
Posts: 21

Re: [SOLVED] Fresh install has / duplicated in /home

Okay, that is definitely it.  Can I just regenerate fstab to fix this, and if so, how?

/etc/fstab:

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sda4
UUID=4ed9f157-1623-4cc7-9496-117e2808ae79       /               ext4            rw,relatime,data=ordered        0 1

# /dev/sda2
UUID=b315f7a6-3ca2-4eb7-85d4-81c1091c25d3       /boot           ext4            rw,relatime,data=ordered        0 2

# /dev/sda4
UUID=4ed9f157-1623-4cc7-9496-117e2808ae79       /home           ext4            rw,relatime,data=ordered        0 2

# /dev/sda3
UUID=379198b3-8dff-4881-8371-43eb33ba484c       none            swap            defaults        0 0

Offline

#6 2014-01-23 07:13:26

Awebb
Member
Registered: 2010-05-06
Posts: 6,330

Re: [SOLVED] Fresh install has / duplicated in /home

You can just delete the redundant lines mounting sda4 at home. No need for a tool, just a text editor.

Offline

#7 2014-01-23 07:19:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Fresh install has / duplicated in /home

Awebb wrote:

No need for a tool, just a text editor.

That could be Arch's tagline...

smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2014-01-23 07:23:09

Xerict
Member
Registered: 2012-01-29
Posts: 21

Re: [SOLVED] Fresh install has / duplicated in /home

I don't think that is what I need to do.  I have another partition at /dev/sda5 that is supposed to be mounted at /home, which is the bulk of the drive.  This is aparently not currently being mounted at all.

Offline

#9 2014-01-23 07:28:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Fresh install has / duplicated in /home

Use `blkid` to get the UUID of the drive and add it to your fstab when you remove the duplicate. Reboot and profit.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2014-01-23 08:03:56

Xerict
Member
Registered: 2012-01-29
Posts: 21

Re: [SOLVED] Fresh install has / duplicated in /home

Looks like this will probably work, however my user directory that is usually at /home/USER is currently at /USER, so stuff isn't loading.  I'm currently copying it to the correct location, so we'll see if it works.

Anyway, it looks like you may have solved my problem! Thanks a bunch smile

edit: Perfect! Some permissions and ownerships were messed up, but that was an easy fix (chmod & chown).  Thanks again.

Last edited by Xerict (2014-01-23 08:23:28)

Offline

Board footer

Powered by FluxBB