Author Topic: partition question  (Read 721 times)

CaptainCool

  • Member
  • **
  • Posts: 129
  • Kudos: 0
partition question
« on: 26 October 2002, 06:31 »
I have an extra 5 gig partition on my hdd that has nothing on it. I want to combine it with my Linux partition. any one know how to do this??

rtgwbmsr

  • VIP
  • Member
  • ***
  • Posts: 1,257
  • Kudos: 0
    • http://www.akgames.net
partition question
« Reply #1 on: 26 October 2002, 06:43 »
You wanna combine it?

If it's a different partition on the same drive:
You could resize the partition in most Linux installers. Write the partition, and quit. That's the easy way.

If you have partition magic, you could use that and pray all goes well.

The hard(er) way(s):
http://home.attbi.com/~dckrinke/jan_02_linux.html
http://web.gnu.walfield.org/mail-archive/linux-doc/2000-August/0002.html


If it's on a completely different drive:
I dunno if this can be done

[ October 25, 2002: Message edited by: The_Muffin_Man/B0b ]


CaptainCool

  • Member
  • **
  • Posts: 129
  • Kudos: 0
partition question
« Reply #2 on: 26 October 2002, 06:49 »
Yeah it's on the same hdd and I already tried to use the installer to write it but it gave me an error of "to many partitions" or somthing like that.
I have used partition magic before on windows and fooked it all up so I don't think ill be using that prog for awhile.

Stryker

  • VIP
  • Member
  • ***
  • Posts: 1,258
  • Kudos: 41
partition question
« Reply #3 on: 26 October 2002, 06:51 »
in fdisk (linux) you could delete the second partition, and change the ending cylinder of the first partition to where the last of the second was at. that should work (although i'd backup your stuff just in case)

CaptainCool

  • Member
  • **
  • Posts: 129
  • Kudos: 0
partition question
« Reply #4 on: 26 October 2002, 06:55 »
quote:
although i'd backup your stuff just in case)  

That's probably what I'll be doing anyway and just reinstallin Linux, that should fix it all up

rtgwbmsr

  • VIP
  • Member
  • ***
  • Posts: 1,257
  • Kudos: 0
    • http://www.akgames.net
partition question
« Reply #5 on: 26 October 2002, 07:13 »
Did you try one of the methods outlined in the two links?

I think they show how to use FDISK in Linux

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
partition question
« Reply #6 on: 26 October 2002, 08:03 »
quote:
Originally posted by Stryker:
in fdisk (linux) you could delete the second partition, and change the ending cylinder of the first partition to where the last of the second was at. that should work (although i'd backup your stuff just in case)

thatts not quite right i think....i dont think you can change the ending cylinder??

use fdisk to delete both partitions, then creat a partition that start from the same starting point as the first partition. Then make the endind point the same as the ending point on the second partition.
Then you must do resize2fs and make the filesystem the same size as the whole partition.
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
partition question
« Reply #7 on: 26 October 2002, 10:58 »
If the partition you want to merge immediately follows the good Linux partition you can use fdisk to delete the second partition and set the ending cylinder to the end of where the second partition was as mentioned in the previous post.

Once that is done you would use either the "resize2fs" or "resize_reiserfs" depending on what file system you are running. But if you have no problems with reinstalling you can certainly do it that way as well.

Of course this is all in the links that m0r gave you.

[ October 26, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
partition question
« Reply #8 on: 26 October 2002, 22:36 »
Go get GNU parted.  Use the resize function on your partition.  

This WILL work, I have done it at least four times so far.  

You must reinstall the boot loader after doing this.
In brightest day, in darkest night, no evil shall escape my sight....