First, thanks to all those who helped me out here on the forum - dd, carlos,and please_try_again.
Finally got it done this morning. Went with the advice from please_try_again in reply of 11-JUN-2012 20:44, with just a few slight differences.
Here is what I did, might be useful to others who want do something similar.
SITUATION: running out of space for XP on a 80Gbyte disk which is split half each for XP and opensuse 10.2. Want split roughly 60Gbyte for XP and rest for opensuse. Am scared will never be able to boot again after such an operation !
SOLUTION: boot from a live linux cd ( I used 84_Hope ), such that hard disk not is use at all while re-partitioning being done. Used partition program gparted which I started from 84_Hope live suse DVD.
Resize sda7 to 2Gbyte
Resize sda6 to 10Gbyte and moved towards the right --almost to start of sda7
Resize sda5 to 1Gbyte and moved right
Resize sda2, the extended partition in which 7,6 and 5 are logical partitions.
I chose to resize on cylinder boundaries for all the above.
Install GRUB into the extended partition, sda2. Used YaST -->boot loader for this, running from the 84_Hope DVD
( I used the custom option to do this–selected /dev/sda2 as place to install GRUB )
Select use generic boot code in MBR, mark boot partition as active
That is what I did using live DVD. Left XP partition alone at that stage – did not touch it.
Shutdown/Restart and see what happens… came up fine. Usual GRUB menu displayed
Go into XP this time, to resize ( upwards ) the XP partition.
Started PartitionMagic 8.0,
resized XP up to close to start of sda2
Shutdown/Restart …again come up fine.
Following are the BEFORE and AFTER results from
uname a, cat /etc/SuSE-release, fdisk -l, df -hlT, cat /proc/partitions, cat /etc/fstab, cat /boot/grub/menu.lst,
findgrub, findgrub -v
SITUATION BEFORE RE-PARTITIONING
linux-hn5m:~ # fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4463 35849016 7 HPFS/NTFS
/dev/sda2 8012 9729 13799835 f W95 Ext'd (LBA)
/dev/sda5 8013 8140 1028160 82 Linux swap / Solaris
/dev/sda6 8200 9474 10240362 83 Linux
/dev/sda7 9475 9729 2048256 83 Linux
linux-hn5m:~ # df -hlT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda6 ext3 9.7G 4.7G 4.5G 51% /
udev tmpfs 502M 80K 502M 1% /dev
/dev/sda7 ext3 2.0G 153M 1.7G 9% /home
/dev/sda1 ntfs 35G 25G 9.6G 73% /windows/C
linux-hn5m:~ # cat /proc/partitions
major minor #blocks name
8 0 78150744 sda
8 1 35849016 sda1
8 2 1 sda2
8 5 1028160 sda5
8 6 10240362 sda6
8 7 2048256 sda7
8 16 15638528 sdb
8 17 15634496 sdb1
linux-hn5m:~ # cat /etc/fstab
/dev/sda6 / ext3 acl,user_xattr 1 1
/dev/sda7 /home ext3 acl,user_xattr 1 2
/dev/sda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda5 swap swap 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
linux-hn5m:~ # cat /boot/grub/memu.lst
cat: /boot/grub/memu.lst: No such file or directory
linux-hn5m:~ # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Sat Oct 17 11:35:07 UTC 2009
default 1
timeout 8
gfxmenu (hd0,5)/boot/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.2
root (hd0,5)
kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/sda6 vga=0x314 resume=/dev/sda5 splash=silent showopts
initrd /boot/initrd-2.6.18.2-34-default
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
rootnoverify (hd0,0)
chainloader (hd0,0)+1
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.2
root (hd0,5)
kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/sda6 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd-2.6.18.2-34-default
linux-hn5m:~ # findgrub
Find Grub Version 3.8 - Written for openSUSE Forums
/bin/findgrub: line 553: =hd0: command not found
/bin/findgrub: line 559: udevadm: command not found
/bin/findgrub: line 559: udevadm: command not found
- reading MBR on disk /dev/sda ... --> Legacy GRUB found in sda MBR => sda6 0x83 (openSUSE)
- searching partition /dev/sda1 * (NTFS) ... --> Windows NT/2K/XP 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 (hd0,0)
chainloader +1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- reading bootsector /dev/sda2 (Extended) ...
- skipping partition /dev/sda5 (swap)
- reading bootsector /dev/sda6 (LINUX) ...
- reading bootsector /dev/sda7 (LINUX) ...
linux-hn5m:~ # findgrub -v
Find Grub Version 3.8 - Written for openSUSE Forums
/bin/findgrub: line 553: =hd0: command not found
/bin/findgrub: line 559: udevadm: command not found
/bin/findgrub: line 559: udevadm: command not found
- reading MBR on disk /dev/sda ... --> Legacy GRUB found in sda MBR => sda6 0x83 using stage1.5 (openSUSE)
- searching partition /dev/sda1 * (NTFS) ... --> Windows NT/2K/XP Loader found in /dev/sda1
- reading bootsector /dev/sda2 (Extended) ...
- skipping partition /dev/sda5 (swap)
- reading bootsector /dev/sda6 (LINUX) ...
- reading bootsector /dev/sda7 (LINUX) ...
SITUATION AFTER RE-PARTITIONING and RE-INSTALLING GRUB
linux-hn5m:~ # uname -a
Linux linux-hn5m 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686 i686 i386 GNU/Linux
linux-hn5m:~ # cat /etc/SuSE-release
openSUSE 10.2 (i586)
VERSION = 10.2
linux-hn5m:~ # fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 8011 64348326 7 HPFS/NTFS
/dev/sda2 * 8012 9729 13799835 f W95 Ext'd (LBA)
/dev/sda5 8013 8140 1028160 82 Linux swap / Solaris
/dev/sda6 8200 9474 10240362 83 Linux
/dev/sda7 9475 9729 2048256 83 Linux
linux-hn5m:~ # df -hlT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda6 ext3 9.7G 4.7G 4.5G 51% /
udev tmpfs 502M 80K 502M 1% /dev
/dev/sda7 ext3 2.0G 153M 1.7G 9% /home
/dev/sda1 ntfs 62G 25G 37G 41% /windows/C
linux-hn5m:~ # cat /proc/partitions
major minor #blocks name
8 0 78150744 sda
8 1 64348326 sda1
8 2 1 sda2
8 5 1028160 sda5
8 6 10240362 sda6
8 7 2048256 sda7
linux-hn5m:~ # cat /etc/fstab
/dev/sda6 / ext3 acl,user_xattr 1 1
/dev/sda7 /home ext3 acl,user_xattr 1 2
/dev/sda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda5 swap swap 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
linux-hn5m:~ # cat /boot/grub/memu.lst
cat: /boot/grub/memu.lst: No such file or directory
linux-hn5m:~ # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Sat Jun 23 15:40:57 IST 2012
default 1
timeout 8
gfxmenu (hd0,5)/boot/message
##YaST - generic_mbr
##YaST - activate
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.2
root (hd0,5)
kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/sda6 vga=0x314 resume=/dev/sda5 splash=silent showopts
initrd /boot/initrd-2.6.18.2-34-default
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
rootnoverify (hd0,0)
chainloader (hd0,0)+1
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.2
root (hd0,5)
kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/sda6 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd-2.6.18.2-34-default
linux-hn5m:~ # findgrub
Find Grub Version 3.8 - Written for openSUSE Forums
/bin/findgrub: line 553: =hd0: command not found
/bin/findgrub: line 559: udevadm: command not found
/bin/findgrub: line 559: udevadm: command not found
- reading MBR on disk /dev/sda ... --> Legacy GRUB found in sda MBR => sda6 0x83 (openSUSE)
- searching partition /dev/sda1 (NTFS) ... --> Windows NT/2K/XP 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 (hd0,0)
chainloader +1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- reading bootsector /dev/sda2 * (Extended) ...
- skipping partition /dev/sda5 (swap)
- reading bootsector /dev/sda6 (LINUX) ...
- reading bootsector /dev/sda7 (LINUX) ...
linux-hn5m:~ # findgrub -v
Find Grub Version 3.8 - Written for openSUSE Forums
/bin/findgrub: line 553: =hd0: command not found
/bin/findgrub: line 559: udevadm: command not found
/bin/findgrub: line 559: udevadm: command not found
- reading MBR on disk /dev/sda ... --> Legacy GRUB found in sda MBR => sda6 0x83 using stage1.5 (openSUSE)
- searching partition /dev/sda1 (NTFS) ... --> Windows NT/2K/XP Loader found in /dev/sda1
- reading bootsector /dev/sda2 * (Extended) ...
- skipping partition /dev/sda5 (swap)
- reading bootsector /dev/sda6 (LINUX) ...
- reading bootsector /dev/sda7 (LINUX) ...
Again, big thankyou to please_try_again, carlos and dd