Installing Opensuse 11.3 to upgrade/replace 11.0 saving /home directory

Dear all,

I would like to install Opensuse 11.3 to upgrade/substitute my present version (11.0). I work on a 64bit machine on which also Windows Vista is installed. In the following you can see how my hard disk was partitioned during the installation of Opensuse 11.0 some 2 years ago.

fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbbc58b91

Device Boot Start End Blocks Id System
/dev/sda1 1 1020 8192000 1c Hidden W95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 1020 16221 122098688 7 HPFS/NTFS
/dev/sda3 16221 30402 113906688 f W95 Ext’d (LBA)
/dev/sda5 16221 22047 46796796 7 HPFS/NTFS
/dev/sda6 22048 22309 2104483+ 82 Linux swap / Solaris
/dev/sda7 22310 24920 20972826 83 Linux
/dev/sda8 24921 30400 44018068+ 83 Linux

In order not to loose all my data and programs (my /home directory should be in sda8) what do you suggest me to do?

Thanks!

mig-37

First off, using your old openSUSE, I would download and run the Findgrub script shown in message #59. This program should confirm where is grub loaded and which Windows drive is your boot drive.

Looking for Grub and Windows bootloader in all partitions.

Once you know what you have, you must duplicate the same thing by selecting custom partitioning. I would install openSUSE as NEW, no upgrade. I would setup your old / root partition as new and to be formatted. I would setup the old /home folder for the new version, but you DO NOT FORMAT it. You must elect to put grub back in the same place (either in the MBR or in the / root partition, which only works when in /sda1, 2, 3, or 4.). You would expect to Have The Same Exact Partition Setup before elect to start the install as you had before the install. You might save your old Windows entry in your grub menu.lst file to make sure you know what works. By doing a new install, openSUSE 11.3 will work the best. By keeping the same /home partition and NOT formatting it, your many personnel settings should be maintained.

Thank You,

When I upgraded, I went into the partition options. There was a selection to use the partitioning from my previous version. That pretty much copied over the “/etc/fstab” info. Then I set it to format the root partition, but to not format the “/home” partition.

When I was later asked about setting up users, there was an option to copy the users from the previous version. That worked out well, too. And, without any prompting, it actually copied over the ssh host key from the previous version.

I am using just over 10G on my root partition. But I have kdm, gnome and xfce all installed, and I have tex/latex installed. If you use only one of those desktops and/or don’t install tex/latex, you should have sufficient space in your current root partition. I think my laptop is using around 7G, with kde as the only installed desktop (but tex/latex still installed).

On 2010-11-29 23:36, mig-37 wrote:

> In order not to loose all my data and programs (my /home directory
> should be in sda8) what do you suggest me to do?

You can install as new the way they have told you, or you can do a system
upgrade the traditional and tedious way - which is what I do.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Ok, thank you very much to all of you for your suggestions. I’ll try to do my best, then I will tell you the results…

Thanks again.

Cheers,

mig-37

Generally, it’s been written to delete and format the / (root) partition and of course leave /home untouched. However, if you’re running servers Apache, MySQL, News, etc. you should make backups of /var, /srv wherever the server keeps data. Like /var/lib/MySQL ? I also like to backup configuration files, hosts*, sudoers, found in /etc it helps me quickly restore some of my original settings.

Also, whether installing or upgrading you should use the manually assign partitions, and don’t forget to label, ie, /home, /swap.

I installed and launched findgrub and the result is the following:

findgrub -d
Root User Permissions are required, Please Enter the …

root’s password:

Find Grub Version 2.2b - Written for openSUSE Forums

  • reading MBR on disk /dev/sda … → Grub found in MBR
/dev/sda2 Bootsector
---------------------------------------------------------------------------
 RNTFS
          FDpD3hhffNTFSuAUr
                           UuuhHXr
                                  uZ3 fwfufTCPAurhhph   fSfSfUhfajffffhfPShhBfYZfYfYfufat
A disk read error occurred
BOOTMGR is missing
BOOTMGR is compressed
Press CtrlAltDel to restart
U
----------------------------------------------------------------------------
0000000 58eb 4d90 4453 534f 2e35 0030 0802 0026
0000020 0002 0000 f800 0000 003f 00ff 0800 0000
0000040 0000 00fa 3e61 0000 0000 0000 0002 0000
0000060 0001 0006 0000 0000 0000 0000 0000 0000
0000100 0080 0029 895f 4e14 204f 414e 454d 2020
0000120 2020 4146 3354 2032 2020 c933 d18e f4bc
0000140 8e7b 8ec1 bdd9 7c00 4e88 8a02 4056 41b4
0000160 aabb cd55 7213 8110 55fb 75aa f60a 01c1
0000200 0574 46fe eb02 8a2d 4056 08b4 13cd 0573
0000220 ffb9 8aff 66f1 b60f 40c6 0f66 d1b6 e280
0000240 f73f 86e2 c0cd 06ed 6641 b70f 66c9 e1f7
0000260 8966 f846 7e83 0016 3875 7e83 002a 3277
0000300 8b66 1c46 8366 0cc0 00bb b980 0001 2be8
0000320 e900 032c faa0 b47d 8b7d acf0 c084 1774
0000340 ff3c 0974 0eb4 07bb cd00 eb10 a0ee 7dfb
0000360 e5eb f9a0 eb7d 98e0 16cd 19cd 6066 7e80
0000400 0002 840f 0020 6a66 6600 0650 6653 1068
0000420 0100 b400 8a42 4056 f48b 13cd 5866 5866
0000440 5866 5866 33eb 3b66 f846 0372 ebf9 662a
0000460 d233 0f66 4eb7 6618 f1f7 c2fe ca8a 8b66
0000500 66d0 eac1 f710 1a76 d686 568a 8a40 c0e8
0000520 06e4 cc0a 01b8 cd02 6613 0f61 7582 81ff
0000540 00c3 6602 4940 9475 42c3 4f4f 4d54 5247
0000560 2020 2020 0000 0000 0000 0000 0000 0000
0000600 0000 0000 0000 0000 0000 0000 0000 0000
*
0000640 0000 0000 0000 0000 0000 0000 0a0d 6552
0000660 6f6d 6576 6420 7369 736b 6f20 2072 746f
0000700 6568 2072 656d 6964 2e61 0dff 440a 7369
0000720 206b 7265 6f72 ff72 0a0d 7250 7365 2073
0000740 6e61 2079 656b 2079 6f74 7220 7365 6174
0000760 7472 0a0d 0000 0000 ac00 d8cb 0000 aa55
0001000

/dev/sda5 Bootsector
---------------------------------------------------------------------------
 RNTFS
          nXXt3hhffNTFSuAUr
                           UuuhHXr
                                  uZ3 fwfufTCPAurhhph   fSfSfUhfajffffhfPShhBfYZfYfYfufat
A disk read error occurred
BOOTMGR is missing
BOOTMGR is compressed
Press CtrlAltDel to restart
U
----------------------------------------------------------------------------
0000000 58eb 4d90 4453 534f 2e35 0030 0802 0026
0000020 0002 0000 f800 0000 003f 00ff 0800 0000
0000040 0000 00fa 3e61 0000 0000 0000 0002 0000
0000060 0001 0006 0000 0000 0000 0000 0000 0000
0000100 0080 0029 895f 4e14 204f 414e 454d 2020
0000120 2020 4146 3354 2032 2020 c933 d18e f4bc
0000140 8e7b 8ec1 bdd9 7c00 4e88 8a02 4056 41b4
0000160 aabb cd55 7213 8110 55fb 75aa f60a 01c1
0000200 0574 46fe eb02 8a2d 4056 08b4 13cd 0573
0000220 ffb9 8aff 66f1 b60f 40c6 0f66 d1b6 e280
0000240 f73f 86e2 c0cd 06ed 6641 b70f 66c9 e1f7
0000260 8966 f846 7e83 0016 3875 7e83 002a 3277
0000300 8b66 1c46 8366 0cc0 00bb b980 0001 2be8
0000320 e900 032c faa0 b47d 8b7d acf0 c084 1774
0000340 ff3c 0974 0eb4 07bb cd00 eb10 a0ee 7dfb
0000360 e5eb f9a0 eb7d 98e0 16cd 19cd 6066 7e80
0000400 0002 840f 0020 6a66 6600 0650 6653 1068
0000420 0100 b400 8a42 4056 f48b 13cd 5866 5866
0000440 5866 5866 33eb 3b66 f846 0372 ebf9 662a
0000460 d233 0f66 4eb7 6618 f1f7 c2fe ca8a 8b66
0000500 66d0 eac1 f710 1a76 d686 568a 8a40 c0e8
0000520 06e4 cc0a 01b8 cd02 6613 0f61 7582 81ff
0000540 00c3 6602 4940 9475 42c3 4f4f 4d54 5247
0000560 2020 2020 0000 0000 0000 0000 0000 0000
0000600 0000 0000 0000 0000 0000 0000 0000 0000
*
0000640 0000 0000 0000 0000 0000 0000 0a0d 6552
0000660 6f6d 6576 6420 7369 736b 6f20 2072 746f
0000700 6568 2072 656d 6964 2e61 0dff 440a 7369
0000720 206b 7265 6f72 ff72 0a0d 7250 7365 2073
0000740 6e61 2079 656b 2079 6f74 7220 7365 6174
0000760 7472 0a0d 0000 0000 ac00 d8cb 0000 aa55
0001000

/dev/sda Partition table
---------------------------------------------------------------
0000000 2000 0021 fa1c fbff 0800 0000 0000 00fa
0000020 fb80 fbc1 fe07 ffff 0800 00fa 2800 0e8e
0000040 fe00 ffff fe0f ffff 3000 0f88 2800 0d94
0000060 0000 0000 0000 0000 0000 0000 0000 0000

I hope everything will work fine, despite the errors displayed…Now, when starting my pc, I can correctly choose to load windows or opensuse 11.0 (or even opensuse failsafe): I hope it will be the same also with opensuse 11.3…I am not so expert with MBR, GRUB and things like that, but the outcome I got launching ‘findgrub’ doesn’t sound very good to me…

Thanks again,

cheers

It looks like you are using one of the diagnostic modes of Findgrub. When I run Findgrub with no options, here is the print out on my PC:

Find Grub Version 2.2b - Written for openSUSE Forums


 - reading MBR on disk /dev/sdb                    ...
 - skiping partition   /dev/sdb1   (swap)         
 - reading bootsector  /dev/sdb2   (LINUX)         ... --> Grub found in /dev/sdb2
 - reading bootsector  /dev/sdb3   (LINUX)         ...
 - reading MBR on disk /dev/sda                    ...
 - searching partition /dev/sda1   (NTFS)          ... --> Windows7/Vista Loader found in /dev/sda1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can add the following entry to /boot/grub/menu.lst :

###Don't change this comment - YaST2 identifier: Original name: WindowsBootLoader###
title Windows on /dev/sda1
    rootnoverify (hd1,0)
    chainloader +1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 - reading MBR on disk /dev/sdc                    ...
 - searching partition /dev/sdc1   (NTFS)          ...

I must say that I have not see that output before. We could ask the author of Findgrub for their advice if you like.

Thank You,