LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-08-2005, 10:16 PM   #1
cheetahman
Member
 
Registered: Feb 2005
Distribution: SuSE Linux 10/Windows XP
Posts: 208

Rep: Reputation: 30
Is it possible to merge two partitions


Because I am low on hardrive space which is about 70mb and want to upgrade to KDE 3.4 and I don't want to mess up my windows installation

These are the two I want to merge
/dev/hda5 /mount/dev/hda5/mnt/1GB_native reiserfs auto,acl,user_xattr 1 2
into
/dev/hda7 / reiserfs acl,user_xattr 1 1
 
Old 04-09-2005, 07:43 AM   #2
Gay R0b0t
Member
 
Registered: May 2004
Location: Sydney, Australia
Distribution: SUSE 9.3
Posts: 127

Rep: Reputation: 15
whats on /dev/hda6?

if /dev/hda5 and /dev/hda7 are not consecutive it cannot be done.

if they are consecutive, is it possible to move all the important data in the second partition somewhere else? if you can, it is simply a matter of then deleting /dev/hda7 and extending /dev/hda5 into the empty space.

Last edited by Gay R0b0t; 04-09-2005 at 07:45 AM.
 
Old 04-09-2005, 12:42 PM   #3
cheetahman
Member
 
Registered: Feb 2005
Distribution: SuSE Linux 10/Windows XP
Posts: 208

Original Poster
Rep: Reputation: 30
hda1 Primary Dell Utility 32.91
hda2 Boot Primary NTFS 26781.52
hda5 Logical Linux ReiserFS 1077.52
hda6 Logical Linux swap 263.21
hda7 Logical Linux ReiserFS 1850.69

Here you go

Disk /dev/sda: 65 MB, 65208320 bytes
129 heads, 11 sectors/track, 89 cylinders
Units = cylinders of 1419 * 512 = 726528 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 90 63674 b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(89, 128, 11) logical=(89, 97, 1)

Disk /dev/hda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 4 32098+ de Dell Utility
/dev/hda2 * 5 3260 26153820 7 HPFS/NTFS
/dev/hda3 3261 3648 3116610 f W95 Ext'd (LBA)
/dev/hda5 3261 3391 1052226 83 Linux
/dev/hda6 3392 3423 257008+ 82 Linux swap
/dev/hda7 3424 3648 1807281 83 Linux
 
Old 04-09-2005, 08:15 PM   #4
Gay R0b0t
Member
 
Registered: May 2004
Location: Sydney, Australia
Distribution: SUSE 9.3
Posts: 127

Rep: Reputation: 15
heres what I would do:

delete hda6 (swap), and extend hda5 into the empty space.
then transfer as much of the data (from hda7) as you can into hda5.
if there is still data in hda7 you can either make a cd of it (if you have a burner) or if there is very little data left (ie less than 1 mg) you could email it to yourself in chunks (which can then be retrieved after extending hda5 again and making another swap out of some remaining space).

this should work well because the swap will still be hda6 (if done right) and your main partition will still be hda5. this will mean less changes to fstab.

can you please post the results of running "df"? or look in KDiskFree and tell me how much space there is in each partition.

do you have a burner? that would be the best way to transfer data that won't initially fit.
 
Old 04-09-2005, 08:56 PM   #5
cheetahman
Member
 
Registered: Feb 2005
Distribution: SuSE Linux 10/Windows XP
Posts: 208

Original Poster
Rep: Reputation: 30
/dev/hda7 is where the main partitioin where suse is stored
 
Old 04-10-2005, 12:20 AM   #6
Gay R0b0t
Member
 
Registered: May 2004
Location: Sydney, Australia
Distribution: SUSE 9.3
Posts: 127

Rep: Reputation: 15
so?
we can't do any of this from inside suse anyway. you'll need a livecd (ie knoppix) to do it easiest.

will the data in hda7 fit inside the remaining space on hda5 and hda6 (assuming we make hda6 into a usable partition)?

the best way to find this out will be to open a shell (eg Konsole) and type:
Code:
df
Then tell me the results to "df" so that i can better help you.

edit:
forgot to mention, we will make hda5 the primary partition. By this i mean that we will keep the same directory structure as before so that "/" which is hda7 will be the lowest directory on hda5, and move all the data in hda5 to its mount point when it is all mounted in a running system. we can do this by making this folder in hda5 "/mount/dev/hda5/mnt/1GB_native" (or whatever its mount point is - df will tell you) and moving everything in hda5 to that folder. This means that hda5 will resemble how the file system looks on a system with both hda5 and hda7 mounted, but without all the data thats on hda7 (we will then want to move all of that into hda5 from hda7)

tell me which bits don't make sense, i know most of it doesn't. got a broken finger so re-typing it will take ages.

Last edited by Gay R0b0t; 04-10-2005 at 12:27 AM.
 
Old 04-10-2005, 10:50 AM   #7
cheetahman
Member
 
Registered: Feb 2005
Distribution: SuSE Linux 10/Windows XP
Posts: 208

Original Poster
Rep: Reputation: 30
Will my windows installation be hurt by this and my suse installation
 
Old 04-10-2005, 08:05 PM   #8
Gay R0b0t
Member
 
Registered: May 2004
Location: Sydney, Australia
Distribution: SUSE 9.3
Posts: 127

Rep: Reputation: 15
We are going to leave windows alone. No changes will be made to the windows partitions.

When you have suse running, look in the '/' directory. We are going to move all of hda7 (which contains most of the things in the '/' dir) into hda5. Then we will move all of the original data in hda5 to its position relative to '/'. This will be the same dir as its mount point (when suse is running).

To allow you to keep booting suse, we will make another swap partition (we deleted the old one), re-install the bootloader and edit fstab (and anything else we think of along the way).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to merge two mailboxes--------------------- dhanju Linux - Newbie 5 05-10-2010 06:35 AM
merge partitions? Leonig Mig Linux - General 2 06-06-2005 11:15 AM
merge mailboxes illtbagu Linux - Software 0 03-13-2004 01:53 PM
Merge 2 arrays in C linux_GNUbie Programming 6 12-11-2003 05:28 PM
split/merge zelda Linux - General 4 04-01-2002 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration