Second Home Folder

Hello all,

I did a reinstallation of Suse when 13.2 was released and have had a few issues since then. I am not really sure what I have done but I now have 2 home folders. One is the original from Suse 12.2 then within that is another home folder containing my current user name. I have difficulties running fdisk without putting the /sbin/ folder in front of the command as well as many other anomalies when using super user mode in File Manager. I feel as though this is all related. I am wondering if reinstalling the software is the best way to go. I am worried as it is hosting files for business clients. I was wondering if I were to move the current user folder up one level into the old home folder. I could see that causing a host of issues as well. Just looking for guidance on how to proceed from those better versed in linux than I.

Eternally grateful to the Linux User Base

J

On 2014-01-24 22:06, jvamos wrote:
>
> Hello all,
>
> I did a reinstallation of Suse when 13.2 was released and have had a few
> issues since then.

No wonder. Time travel does create some issues >:-)

openSUSE 13.2 has not been released yet in our time line. Tell us, how
does it feel? :stuck_out_tongue:

{kidding}

> I am not really sure what I have done but I now have
> 2 home folders. One is the original from Suse 12.2 then within that is
> another home folder containing my current user name. I have difficulties
> running fdisk without putting the /sbin/ folder in front of the command
> as well as many other anomalies when using super user mode in File
> Manager. I feel as though this is all related. I am wondering if
> reinstalling the software is the best way to go. I am worried as it is
> hosting files for business clients. I was wondering if I were to move
> the current user folder up one level into the old home folder. I could
> see that causing a host of issues as well. Just looking for guidance on
> how to proceed from those better versed in linux than I.

Well… I don’t have a clear image of what you really have. Difficult to
help.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Perhaps what the OP is describing is a result of

Having 12.2 under user: xxxx

And now 13.1 under user: xxxy

If you want to use the same /home and user, you must be sure the user you set in the install is identical to the older username
ie;

old: xxxx
new: xxxx

jvamos wrote:
>
> Hello all,
>
> I did a reinstallation of Suse when 13.2 was released and have had a few
> issues since then. I am not really sure what I have done but I now have
> 2 home folders. One is the original from Suse 12.2 then within that is
> another home folder containing my current user name. I have difficulties
> running fdisk without putting the /sbin/ folder in front of the command
> as well as many other anomalies when using super user mode in File
> Manager. I feel as though this is all related. I am wondering if
> reinstalling the software is the best way to go. I am worried as it is
> hosting files for business clients. I was wondering if I were to move
> the current user folder up one level into the old home folder. I could
> see that causing a host of issues as well. Just looking for guidance on
> how to proceed from those better versed in linux than I.
>
> Eternally grateful to the Linux User Base
>
> J
>
>
do you mean to say that you had /home/old and after an
disastrous/unsupported upgrade you have /home/old/new/ instead of
/home/old and /home/new ?


GNOME 3.10.2
openSUSE 13.1 (Bottle) (x86_64) 64-bit
Kernel Linux 3.11.6-4-desktop

Phew, OK, let me shake it out here and loosen my neck.

So the tree looks like
root →
…home → userOLD
…-> home → userNEW

Of course there is a bunch of other stuff in the tree I didn’t list. I seem to have a metahome folder as the kids are saying these days. I don’t know a better way to represent the tree, I only have ssh access from where I am now. I did a bitstream copy of the system disk before I left and that disk is still plugged in.

Thanks all!

j

On 2014-01-25 16:56, jvamos wrote:

> I don’t know a better way to represent the tree I only have ssh access
> from where I am now.


tree -d -L 3 /


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I have a paste but I would like to keep it private as it contains the entire file system. What is the best way to post the output? I will pm it but even that bugs me a bit. I am afk and on my mobile. Would it be best to clip out that part of the tree?

On 2014-01-25 18:06, jvamos wrote:
>
> I have a paste but I would like to keep it private as it contains the
> entire file system. What is the best way to post the output? I will pm
> it but even that bugs me a bit. I am afk and on my mobile. Would it be
> best to clip out that part of the tree?

Just edit out the private parts :slight_smile:

I don’t know how to concoct an exact command line to produce only the
interesting parts, without knowing what exactly to expect.

At least the command I gave you list no files, only directories.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Hey,

OK I think I did what was necessary and users on the server’s names won’t be exposed. My username blunder is apparent though. It’s a bit buried at the bottom.

Cheers,

http://pastebin.com/zRjzaG4k

On 2014-01-25 22:06, jvamos wrote:
>
> Hey,
>
> OK I think I did what was necessary and users on the server’s names
> won’t be exposed. My username blunder is apparent though. It’s a bit
> buried at the bottom.

I see.


├── home
│   ├── home
│   │   ├── josh
│   │   ├── linuxserver
│   │   ├── lost+found

│   ├── iislinuxserver
│   │   ├── Desktop
│   ├── josh

│   ├── linuxserver

│   ├── lost+found

That’s sufficient to see the problem. Difficult to believe.

Ok… please post your fstab and we’ll think of a plan.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I am not really sure where my error was in the process but user error is likely.

linux:~ # sudo /etc/fstab
/etc/fstab: line 1: /dev/disk/by-id/ata-WDC_WD3200AAKS-00VYA0_WD-WMARW
0304328-part1: Permission denied
/etc/fstab: line 2: /dev/disk/by-id/ata-WDC_WD3200AAKS-00VYA0_WD-WMARW
0304328-part2: Permission denied
/etc/fstab: line 3: /dev/disk/by-id/ata-WDC_WD3200AAKS-00VYA0_WD-WMARW
0304328-part3: Permission denied
/etc/fstab: line 4: /dev/sdb1/: Not a directory
/etc/fstab: line 6: proc: command not found
/etc/fstab: line 7: sysfs: command not found
debugfs 1.42.6 (21-Sep-2012)
/sys/kernel/debug: Attempt to read block from filesystem resulted in s
hort read

On 2014-01-25 22:56, jvamos wrote:
>
> I am not really sure where my error was in the process but user error is
> likely.
>
> linux:~ # sudo /etc/fstab

Heh, you are trying to “run” that file. You simply need to view the
contents:


cat /etc/fstab

and please do so inside code tags (the ‘#’ button in the forum editor).

View this post and the next
Posting in
Code Tags - A Guide


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Oh-h-h-h!!! That might hurt! rotfl!

On 2014-01-26 08:36, Fraser Bell wrote:
>
> robin_listas;2619281 Wrote:
>>
>> Just edit out the private parts :slight_smile:
>>
>
> Oh-h-h-h!!! That might hurt! rotfl!

O my. Did not think what I wrote… :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Im sorry about that. I’m a little brain drained and maybe the fumes had gotten to me but I literally tried to run it six times never really thinking about it. I went it to execute command and post out put mode. :confused:

here are is my disks in fstab

/dev/disk/by-id/ata-WDC_WD3200AAKS-00VYA0_WD-WMARW0304328-part1 swap                swap       defaults              0 0
/dev/disk/by-id/ata-WDC_WD3200AAKS-00VYA0_WD-WMARW0304328-part2 /     
              ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-WDC_WD3200AAKS-00VYA0_WD-WMARW0304328-part3 /home 
              ext4       acl,user_xattr        1 2
/dev/sdb1/      /SFX    ext4    defaults        0 0


proc                 /proc                proc       defaults         
    0 0
sysfs                /sys                 sysfs      noauto           
    0 0
debugfs              /sys/kernel/debug    debugfs    noauto           
    0 0
usbfs                /proc/bus/usb        usbfs      noauto           
    0 0
devpts               /dev/pts             devpts     mode=0620,gid=5  
    0 0




~                                                                      
~                                                                      
~                                                                      
~                                                                      
~                                                                      
"/etc/fstab" 12L, 798C                    

You only have one home partition.

Show us

ls /home

since that is where you say the problem is

On 2014-01-26 21:26, gogalthorp wrote:
>
> You only have one home partition.
>
> Show us
>
> ls /home
>
> since that is where you say the problem is

He posted that already, as an output of “tree” here:
http://pastebin.com/zRjzaG4k

If there is only one home partition mounted, and seeing this structure
he posted (notice the telltale lost+found dirs):


├── home
│   ├── home
│   │   ├── josh
│   │   ├── linuxserver
│   │   ├── lost+found

│   ├── iislinuxserver
│   │   ├── Desktop
│   ├── josh

│   ├── linuxserver

│   ├── lost+found

the explanation could be that the old home was copied entirely inside
the new home partition.

Maybe the output of the command “mount” would clarify it further.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Last login: Sun Jan 26 09:43:53 2014 from 135-23-98-11.cpe.pppoe.caHave a lot of fun...
linux:~ # mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=1985032k,nr_inodes=49
6258,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=00
0)
/dev/sda2 on / type ext4 (rw,relatime,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,no
exec,relatime)
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,r
elatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=syst
emd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,re
latime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noex
ec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,re
latime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,r
elatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,r
elatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,r
elatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,rel
atime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexe
c,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,r
elatime,hugetlb)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=25,p
grp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sdb1 on /SFX type ext4 (rw,relatime,data=ordered)
/dev/sda3 on /home type ext4 (rw,relatime,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
none on /var/lib/ntp/proc type proc (ro,nosuid,nodev,relatime)
gvfsd-fuse on /run/user/1003/gvfs type fuse.gvfsd-fuse (rw,nosuid,node
v,relatime,user_id=1003,group_id=0)
gvfsd-fuse on /var/run/user/1003/gvfs type fuse.gvfsd-fuse (rw,nosuid,
nodev,relatime,user_id=1003,group_id=0)
/dev/sr0 on /run/media/iislinuxserver/openSUSE 13.1 GNOME Live type ud
f (ro,nosuid,nodev,relatime,uid=1003,gid=0,umask=77,iocharset=utf8,uhe
lper=udisks2)
/dev/sr0 on /var/run/media/iislinuxserver/openSUSE 13.1 GNOME Live typ
e udf (ro,nosuid,nodev,relatime,uid=1003,gid=0,umask=77,iocharset=utf8)

There doesn’t seem to be a way for me to edit my horrible grammar and autocorrects.

On 2014-01-27 02:36, jvamos wrote:

This are the physical mounts available:

> Code:
> --------------------
> Last login: Sun Jan 26 09:43:53 2014 from 135-23-98-11.cpe.pppoe.caHave a lot of fun…
> linux:~ # mount

> /dev/sda2 on / type ext4 (rw,relatime,data=ordered)

> /dev/sdb1 on /SFX type ext4 (rw,relatime,data=ordered)
> /dev/sda3 on /home type ext4 (rw,relatime,data=ordered)

> /dev/sr0 on /run/media/iislinuxserver/openSUSE 13.1 GNOME Live type ud f (ro,nosuid,nodev,relatime,uid=1003,gid=0,umask=77,iocharset=utf8,uhe> lper=udisks2)
> /dev/sr0 on /var/run/media/iislinuxserver/openSUSE 13.1 GNOME Live typ e udf (ro,nosuid,nodev,relatime,uid=1003,gid=0,umask=77,iocharset=utf8)
> --------------------

IMO, you simply copied the old home inside the new home. Thus you have
to decide which directories are the proper ones, and move or delete as
appropriate.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)