Resizing main linux partition, suse 12.1 - kde

Hello all. Yast - partition manager says I need to ‘unmount the drive to resize it.’

Can someone direct me to an article or tell me how do this. Thanks.

It needs to go from 300 gig to 70 gig. Restore my original settings. I’m using about 15 gigs. So, resizing down won’t be a problem.

Personally I’d use a utility disk like Parted Magic
This video shows a resize on sda3
https://dl.dropbox.com/u/10573557/win_lin_partitions.m4v

Not all of it is relevant, so use discretion.

*Note: If you are only resizing, fine. But if you change the partition table eg; delete a partition, your device map will be out.

I downloaded it off sourceforge and burned it: pmagic_2012_08_09.iso

The md5 checksum is right. I boot my computer with the cd and nothing happens. ??

Edit: I remember using spacebar to start windows xp installer. That worked for starting “parted magic”.

Note: If you are only resizing, fine. But if you change the partition table eg; delete a partition, your device map will be out.

I resized it down to 70.01 gigs. Then did a disk check for errors. Added a partition for windows 7 and checked it. Nothing came up. I booted everything is fine. Any more you imply I have to do? Thanks.

@l_v
It’s difficult to say…
I’m not sure if you have a problem or not from what you write…

I resized it and added a new partition to the list with parted magic. To make grub and suse see the new partition I have to add the partition with yast - partitions? Install windows 7 into it. Make grub be able to boot to it.

Post result of

su -
fdisk -l

Tell us what is what

I went into parted magic and deleted the new partition. I resized suse main to 100 gig.

Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbb2ebb2e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63   614389859   307194898+   7  HPFS/NTFS/exFAT
/dev/sda2   *   614389860  1807906904   596758522+   f  W95 Ext'd (LBA)
/dev/sda5       614389923   681493364    33551721    b  W95 FAT32
/dev/sda6       681493428  1108019177   213262875    7  HPFS/NTFS/exFAT
/dev/sda7      1108019200  1112244223     2112512   82  Linux swap / Solaris
/dev/sda8      1112246272  1154189311    20971520   83  Linux
/dev/sda9      1154191360  1363924991   104866816   83  Linux

Disk /dev/sdb: 320.1 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625140335 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x32783277

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63   625121279   312560608+   7  HPFS/NTFS/exFAT

I have two sets unallocated partition space. I can’t figure out to merge them.

On 08/11/2012 08:36 PM, lord valarian wrote:
> I have two sets unallocated partition space. I can’t figure out to
> merge them.

carefully delete one, then enlarge the other…maybe


dd http://tinyurl.com/DD-Caveat

I have two sets unallocated partition space. I can’t figure out to merge them.

I need more than that.

Take a screen of what you have in Gparted
Tell me which partitions you want to do what with
More info…please

I can’t take a screen of gparted. So, I have an image from yast-partitioner.

Partitions

GParted:

211 gigs unallocated
64 gig unallocated.

Add partition then install windows 7 into it. Will grub see it as bootable? If not what do I do. Thanks.

I don’t see what you refer to
You need to expand the tree on the left like this: SUSE Paste

I take it sda1 is a windows installation too?

Yes, It’s the windows xp boot partition. I’m going to keep it until I’m sure all my programs will work with it.

SUSE Paste

When I try to add a new partition, I select this:

primary- 70 gigs
logical - 211 gigs

maximum size

don’t format partition

mount point: /windows

This last part won’t work. I’m going to try it out for a while.

On Sat, 11 Aug 2012 06:26:02 GMT, lord valarian
<lord_valarian@no-mx.forums.opensuse.org> wrote:

>
>I resized it and added a new partition to the list with parted magic. To
>make grub and suse see the new partition I have to add the partition
>with yast - partitions? Install windows 7 into it. Make grub be able
>to boot to it.

Win7 requires 2 primary partitions now, one rescue partition (hidden about
100 MB) and a target partition of at least 150 GB (though it only needs 20
GB or so). Building Win7 dual boot machines is a real pain now.

?-)

Win7 requires 2 primary partitions now,
Not correct
I installed it in a single ntfs yesterday

@l-v
You can only create logical partitions in that space
It is possible to install windows in a logical but it will write the loader to sda1 and the MBR
You’ll need to follow my guide to repair guide to repair grub after installing windows
Forget a mount point for now

Nope, window 7 won’t install to it. Looks like it won’t install to logical drive, only a primary partition.

SUSE Paste

How do I use parted magic to delete this logical drive and expand the extra primary?

I figured out how to shrink the logical and expand the primary. I checked for errors on all the linux partitions, none found. I installed window 7 successfully. However when I loaded parted magic, ALL MY SUSE partitions are gone! All the mswin partitions are fine. I’m running a scan find the linux files. It could take hours. Need help bad here… :frowning:

Now, I have to reinstall suse. Then reset the partition changes it makes.

Any kind of work like this requires you to backup, that’s a given.
Windows can install to a logical.

Parted Magic has a tool called Test Disk
Look it up and read about it
It could help you recover lost data

With tools from mswin and suse, I managed to fix my partition sizes. I recovered my home folder and only that. The suse system was lost. After deleting all the suse partitions, I reinstalled suse and restored my home folder from backup. Now, on to windows 7.

My boot partition shows:

windows 1(changed to ‘windows xp’) dev/sd1/
windows 2 dev/sdb1/

Windows XP boots successfully.

Windows 7 64bit shows in ‘my computer’ as /windows/G/

How do I get it into the boot menu?

On Tue, 14 Aug 2012 00:36:03 GMT, lord valarian
<lord_valarian@no-mx.forums.opensuse.org> wrote:

>
>I figured out how to shrink the logical and expand the primary. I
>checked for errors on all the linux partitions, none found. I installed
>window 7 successfully. However when I loaded parted magic, ALL MY SUSE
>partitions are gone! All the mswin partitions are fine. I’m running a
>scan find the linux files. It could take hours. Need help bad here…
>:(

Yes, i experienced that behavior as well. G&^&^*&( ^&%T^ 587%%^5%
78587%&
megasnot. Failing to leave alien partitions alone should be
prosecuted as a criminal offence.
>
>Now, I have to reinstall suse. Then reset the partition changes it
>makes.

If you know the approximate locations and sizes of the linux partitions
there is a decent chance to recover them. I have done it using parted
from the command line. I do not remember if that facility is replicated
in Parted Magic GUI.

?-)