Missing home directory after install

I just did a clean install of opensuse 11 on my Thinkpad T42 (I previously had opensuse 10.2). I have a separate /home partition, so during install I asked Yast to not format it. Suse installed OK and is up and running, but I can not find my files from my previous install in my /home. Right now there are just some basic files in there. I used gparted to look at my partitions and it shows on /home there is 7GB of space taken up. That sounds about the same as my /home under 10.2. I searched all over my hard drive but I can’t seem to find them. Does anyone have any idea as to what might of happened. My partition info is below. Thanks for any help.

fdisk -l

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcccdcccd

Device Boot Start End Blocks Id System
/dev/sda1 1 3867 31061646 7 HPFS/NTFS
/dev/sda2 6695 7296 4830840 12 Compaq diagnostics
Partition 2 does not end on cylinder boundary.
/dev/sda3 * 3868 3880 104422+ 83 Linux
/dev/sda4 3881 6694 22603455 f W95 Ext’d (LBA)
/dev/sda5 3881 3977 779121 82 Linux swap / Solaris
/dev/sda6 3978 5510 12313791 83 Linux
/dev/sda7 5511 6694 9510448+ 83 Linux

Partition table entries are not in disk order


df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda7 594512 121824 472688 21% /
udev 64323 1029 63294 2% /dev
/dev/sda3 26208 41 26167 1% /boot
/dev/sda6 1513024 456433 1056591 31% /home
/dev/sda1 10148124 76013 10072111 1% /windows/C

Did you spell your login name the same way as on 10.2? Look in /home. Is there another directory under a different account name?

msjones schrieb:
> I just did a clean install of opensuse 11 on my Thinkpad T42 (I
> previously had opensuse 10.2). I have a separate /home partition, so
> during install I asked Yast to not format it. Suse installed OK and is
> up and running, but I can not find my files from my previous install in
> my /home. …]
>
> df -i
> Filesystem Inodes IUsed IFree IUse% Mounted on
> /dev/sda7 594512 121824 472688 21% /
> udev 64323 1029 63294 2% /dev
> /dev/sda3 26208 41 26167 1% /boot
> /dev/sda6 1513024 456433 1056591 31% /home
> /dev/sda1 10148124 76013 10072111 1% /windows/C

Why the -i option? Inode use isn’t very interesting in this case.

Also post the results of the commands “ls -l /home” and “echo $HOME”.
Perhaps your new installation doesn’t recognize you as the same user
as before and therefore created a new home directory for you. In that
case the old data is still there, you only have to make it accessible.

HTH
T.

Yes, I kept the same user name. The only thing I changed was my password. I do not have another user in /home. However, there is another /home directory. So I have /home/username and /home/home. /home/home is empty.

Here is the output:
ls -l /home
total 180
drwxr-xr-x 2 root root 4096 2008-02-27 08:11 bin
drwxr-xr-x 2 root root 4096 2007-12-24 03:47 boot
lrwxrwxrwx 1 root root 11 2008-04-07 03:58 custom → /mnt/custom
drwxr-xr-x 5 root root 4096 2007-12-24 03:47 dev
drwxr-xr-x 91 root root 12288 2008-12-19 22:51 etc
drwxrwxrwx 3 root root 4096 2008-02-04 12:38 export
drwxr-xr-x 2 root root 4096 2007-12-24 03:47 home
drwxr----- 2 root root 4096 2008-02-02 09:24 .hplip
drwxr-xr-x 12 root root 4096 2008-10-23 18:12 lib
drwx------ 2 root root 16384 2007-12-24 03:46 lost+found
drwxr-xr-x 28 mark users 4096 2008-12-20 11:11 mark
drwxrwxr-x 6 mark root 4096 2008-12-19 22:51 media
drwxr-xr-x 4 root root 4096 2008-08-09 02:30 mnt
drwxr-xr-x 5 root root 4096 2008-11-26 16:15 opt
drwxr-xr-x 3 root root 4096 2007-12-24 03:47 proc
drwx------ 30 root root 4096 2008-12-19 22:51 root
drwxr-xr-x 3 root root 12288 2008-10-23 18:12 sbin
drwxr-xr-x 4 root root 4096 2007-12-24 03:48 srv
-rw-r–r-- 1 root root 0 2008-12-19 22:51 success
drwxr-xr-x 3 root root 4096 2007-12-24 03:47 sys
drwxrwxrwt 143 root root 65536 2008-12-19 22:51 tmp
drwxr-xr-x 13 root root 4096 2008-01-14 10:08 usr
drwxr-xr-x 15 root root 4096 2008-08-17 15:16 var
-rw-r–r-- 1 root root 2073 2008-01-14 10:09 webmin-setup.out


echo $HOME

/root

You have the /home directory showing the contents of ‘/’.

I fear you may have formatted the wrong partition and preserved the contents of ‘/’ from before rather than home.

Can you cat the contents of /home/etc/issue please?

cat /home/etc/issue

Welcome to openSUSE 10.2 (i586) - Kernel \r (\l).

Maybe I will re-install and keep original password.

Well I hope you had a back up or there wasn’t anything too important there lost.

I’m not sure if there’s evidence in the installation logs, to see if the installer lied to you, or if you made a mistake.

For future, giving these partitions Labels, and mounting via the label, when you create them, will make it more likely that you spot something is wrong, than using complicated device names.

It happened to me as well - I just rebooted using a livecd Ikki Boot and transfered my /home data on an external storage. For some strange reason the oss installation program just messed my partition scheme. Just backup 1st!

Was your partition table unususal to? With cylinders out of order?

See ppl do this sort of thing before release, and yannoo… it worked for me :slight_smile:

Thanks for getting back to me with your suggestions. I’m afraid I selected the wrong partitions when I was installing.:frowning: Luckily I had tared my /home earlier.:slight_smile: I just reinstalled and formatted clean. I’ve spent the past few hours untarring and selecting what I want to keep. With that problem aside, I must say it installed like a breeze on my Thinkpad. I’m very impressed with it. Who knows, maybe one day I’ll accidentally delete my windows partition and gain more room on my HD!