Extend Linux Opensuse 12.3 operating system with additional space

Hello everybody,

I need an advice, preferably step by step, for adding partition (additional space) to an existing Opensuse linux system.

I have dual boot computer system with Windows 7 and OpenSuse linux 12.3 installed. They reside on two separate physical disks.
Because i need additional space for the Linux i want to add one more partition for storing data.

My current Linux partition system is:

after command: df -k

Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 1457820 56 1457764 1% /dev
tmpfs 1474388 51976 1422412 4% /dev/shm
tmpfs 1474388 5120 1469268 1% /run
/dev/sda6 37245496 20613740 14739764 59% /
tmpfs 1474388 0 1474388 0% /sys/fs/cgroup
tmpfs 1474388 5120 1469268 1% /var/lock
tmpfs 1474388 5120 1469268 1% /var/run

The list of all of the devices are:

Device Boot Start End #cyls #blocks Id System
/dev/sda1 0+ 12- 13- 102400 7 HPFS/NTFS/exFAT
/dev/sda2 12+ 7832- 7820- 62812160 7 HPFS/NTFS/exFAT
/dev/sda3 7832+ 33940- 26108 209712510 7 HPFS/NTFS/exFAT
/dev/sda4 * 33940+ 38913- 4973- 39942144 f W95 Ext’d (LBA)
/dev/sda5 33940+ 34201- 261- 2089984 82 Linux swap / Solaris
/dev/sda6 34201+ 38911 4711- 37839872 83 Linux

/dev/sda2 corresponds to C drive where windows system is installed. /dev/sda3 is the other physical drive where the linux is installed.

What i want is to take some free space (for example 30GB) from sda3 and to mount it into sda6 (or extend sda6), the partition of Linux.
I would appreciate any useful advice,
thanks!

Some background information about the subject: https://en.opensuse.org/SDB%3ABasics_of_partitions,_filesystems,_mount_points

I hope you will understand that it is not that easy to take 30GB away from a Windows partition (that is of course at least partly a Windows problem). And even when you would have a then unused partition of 30GB, you must decide where to mount it.

I also have the impression that you did not use the default partitioning where there is a separate partition for /home. That will not make manouevring easier.

I would like to mount it on the root. To be able to be seen in the root directory like a folder. For example:

\bin
\boot
\dev
\etc

\home

\lib
\usr
\mounted_space

p.s I’ve seen that tutorial but only found some theoretical explanations without concrete directions for solving the problem.

What are all those \ for?

Are you sure you are talking about Linux?

\ is a windows convention Unix/Linx use /

It is extremely unclear what you expect?

If you free up space from the windows partition and since you are using the old style DOS partitioning you would have to in general do this. You can have only 4 primary partitions one being extended which then acts as a container for additional logical partitions

free up space move any partitions as needed to give free space in front of partition 4 the extended partition move the extended up to take up that space then increase it’s size. Then you could

  1. add another logical partition and mount it somewhere in Linux
    or
  2. increase the size of the Linux partition moving things as needed

You can only add to a partition to it’s end so things have to be moved about to provide the proper space that a partition can expand into.

Doing all this is very dangerous any little thing goes wrong or you do something wrong and all could be lost so first backup any important stuff

On 2015-03-10, kdzekov <kdzekov@no-mx.forums.opensuse.org> wrote:
> I need an advice, preferably step by step, for adding partition
> (additional space) to an existing Opensuse linux system.

Just a quick thought - if you’re using a desktop it’s a good to consider adding a second hard drive just for GNU/Linux -
that way you can plug in/out different operating systems with a lot more freedom rather than depending on a single
drive.

> I have dual boot computer system with Windows 7 and OpenSuse linux 12.3
> installed.

Well, I’m afraid openSUSE 12.3 is past EOL. You need to upgrade anyway (to 13.1 to 13.2 - 13.1 will supported for
longer). So if there isn’t anything too critical on your openSUSE installation, you might just consider a fresh
install?

> They reside on two separate physical disks.

You sure? I only ask because the only drive device you list is /dev/sda.

> My current Linux partition system is:
> <SNIP>
> /dev/sda6 37245496 20613740 14739764 59% /
> <SNIP>
>
> The list of all of the devices are:
>
> Device Boot Start End #cyls #blocks Id System
> /dev/sda1 0+ 12- 13- 102400 7 HPFS/NTFS/exFAT
> /dev/sda2 12+ 7832- 7820- 62812160 7 HPFS/NTFS/exFAT
> /dev/sda3 7832+ 33940- 26108 209712510 7 HPFS/NTFS/exFAT
> /dev/sda4 * 33940+ 38913- 4973- 39942144 f W95 Ext’d (LBA)
> /dev/sda5 33940+ 34201- 261- 2089984 82 Linux swap /
> Solaris
> /dev/sda6 34201+ 38911 4711- 37839872 83 Linux
>
>
> /dev/sda2 corresponds to C drive where windows system is installed.
> /dev/sda3 is the other physical drive where the linux is installed.

You sure? It appears /dev/sda3 is formatted with a Microsoft filing system, and your `df’ command output above suggests
/dev/sda6 is your root.

Let’s clear things up a bit and start by checking all devices you have and how they are formatted. Please output the
result of the following command…


sh-4.2$ for devsd in $(find /dev/sd* ! -name "*[0-9]"); do sudo parted $devsd unit MiB print; done

… inside code tags (#).