LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-30-2005, 09:47 PM   #1
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Rep: Reputation: 30
Question Possible to create new partition by resizing existing?


I'm using GRUB with a single partition (besides the swap one).

I want to create a new partition in order to experiment with new kernels.

I can't figure out whether it is possible to create the space for a new partition by resizing my existing partition, without loss of data.

Yast's partitioner doesn't seem to want to, but then I read that it is just a front end for Parted, a program which allows resizing. Is it something to do with the need to mount and unmount filesystems, perhaps? SuSE uses ReiserFS.

Ideas appreciated...
 
Old 06-30-2005, 10:28 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,367

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
"I want to create a new partition in order to experiment with new kernels."

You can install multiple kernels on the same Linux system. You can set GRUB up to have all of your kernels in the selection menu and boot into whichever one that you want.

You only need seperate partitions if you want to have multiple complete OSs.

"Yast's partitioner doesn't seem to want to, but then I read that it is just a front end for Parted, a program which allows resizing. Is it something to do with the need to mount and unmount filesystems, perhaps? SuSE uses ReiserFS."

You cannot resize the partition that you are running on. If you want to resize or rearrange the partition(s) I suggest that you boot a rescue CD and use command line parted. (Personally, I prefer fdisk.) Common sense says to back everything up before you try to resize the partition. Once you have it backed up to CD or whatever then whether you resize the existing partition or wipe the hard drive, partition, and restore your backed up system is up to you.


------------------------------
Steve Stites
 
Old 06-30-2005, 10:34 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Booting from a liveCD, you can use resize_reiserfs and fdisk (or parted, if you're so inclined) to resize your partition. I've resized reiserfs before, and it worked quite well.
 
Old 06-30-2005, 10:47 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
(Deleted post).
Just re-read, and my post was merely muddying the waters....

Last edited by syg00; 06-30-2005 at 10:49 PM.
 
Old 06-30-2005, 11:02 PM   #5
rollo
Member
 
Registered: Apr 2004
Location: France
Distribution: Debian Sid (Kanotix)
Posts: 237

Original Poster
Rep: Reputation: 30
Thumbs up

Thanks guys.

I think in my case trying to partition and keep data is probably just asking for trouble.

Especially since booting alternative kernels is in fact possible in GRUB - thanks for that intelligence, jailbait. I am going to try that route instead.

Thanks again all three of you.
 
Old 06-30-2005, 11:26 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
Quote:
Originally posted by rollo
I think in my case trying to partition and keep data is probably just asking for trouble.
IMHO it always is.
I *never* screw around with partitions, without at least two different backups, on different media. It's my data that's important - and my time, if I have to spend ages recovering.
If you want/need to play, go buy another disk, and only partition what you need - leave the rest unallocated, for another time. Has always served me well.
And to make sure I don't "finger check", I never have two disks the same size.
When I'm in fdisk (or whatever) I want to *know* what disk I'm about to trash - too easy to make a mistake at some ungodly hour of the night/morning otherwise.
 
Old 06-30-2005, 11:41 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by syg00
IMHO it always is.
I *never* screw around with partitions, without at least two different backups, on different media. It's my data that's important - and my time, if I have to spend ages recovering.
If you want/need to play, go buy another disk, and only partition what you need - leave the rest unallocated, for another time. Has always served me well.
And to make sure I don't "finger check", I never have two disks the same size.
When I'm in fdisk (or whatever) I want to *know* what disk I'm about to trash - too easy to make a mistake at some ungodly hour of the night/morning otherwise.
Or just avoid using fdisk in the middle of the night.

Of course, I do my best work at around 2 am.
 
Old 06-30-2005, 11:49 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
Quote:
Originally posted by Matir
Of course, I do my best work at around 2 am.
Yeah, and I've done most of my best diagnostic/recovery work around then too ....
 
Old 07-01-2005, 09:41 AM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
At least fewer people bother you at 2 am. That's always one of my favorite parts... not having to deal with people while I'm in the middle of something.
 
Old 07-02-2005, 01:14 AM   #10
ngjunkie0011
Member
 
Registered: Jun 2005
Location: New York
Distribution: Ubuntu Studio
Posts: 105

Rep: Reputation: 15
-------------------------------------------
only partition what you need - leave the rest unallocated, for another time
-------------------------------------------

Suppose you have a few gigs, say 15, just lying around your HD without being used....

How do you create 2 partitions from the 15 gigs of available space?

Currently, I have one partition with FAT(winXP), and 2 other NTFS partitions for data, plus one linux partition. I'm trying to create a FAT partition of around 5 gigs so I can share with linux/windoze and another 10 gig partition to be used by linux.

Anyone know how to enlarge the windoze partition as well? I might make the 5 gig FAT partition like 2 or 3 so I can have more space for the windoze partitions while I learn how to use linux.
 
Old 07-02-2005, 04:55 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
Quote:
Originally posted by ngjunkie0011
How do you create 2 partitions from the 15 gigs of available space?
The major concern is how many of your current partitions are primary ?. If all 4 are primary, you cannot access that extra space, and will need to delete at least one partition (make sure you backup all the data there-in), and allocate all the free space as an extended partition. Within the extended, you can allocate logical partitions of whatever size you desire. Both fdisk and cfdisk can be used to achieve this - see the man pages, and search LQ for details; this gets covered frequently. Some of the major distros have GUI disk partitioners, but I've never used one, so can't advise.
Quote:
Anyone know how to enlarge the windoze partition as well?
There are commercial Windows tools of course. Under Linux, parted should handle FAT, and ntfsresize should like wise handle NTFS.
Personally I don't recommend this - allocate new partitions, and use them. In Windoze it's just another drive letter, in Linux, it's just another mount point. No point risking your data unnecessarily.
 
Old 07-02-2005, 09:31 AM   #12
ngjunkie0011
Member
 
Registered: Jun 2005
Location: New York
Distribution: Ubuntu Studio
Posts: 105

Rep: Reputation: 15
I believe I have only 2 primary partitions, the windows and the linux partition, the other ones are extended partitions I created in DOS.

The reason I didn't use up the 15 gigs was because I didn't know how to allocate the space with the utility that SuSE comes with. I was used to the RedHat utility where I could pug in the size of the partition in gigabytes(or megabytes) instead of having to manually put in the starting and ending cylinder.

I will try to resize the hard drive with linux before I choose to reinstall linux for actually the 3rd time.

Which tools in linux do you recommend that's similar to Partition Magic in windoze?? I'm going to try this in a few minutes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Create new partition from existing free space distortedstar Linux - General 4 06-07-2005 10:47 PM
Problem Resizing Linux Partition From Partition magic John_Emad SUSE / openSUSE 5 02-16-2005 01:42 PM
need help resizing an ext3 partition with an underlying partition... spiroth10 Linux - Software 1 07-30-2004 01:21 PM
Resizing an existing RH9 Linux partition Battletux Linux - Newbie 1 05-27-2004 08:59 AM
Resizing Existing Linux Partition (ext3) BxBoy Linux - General 23 09-22-2003 11:46 AM

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

All times are GMT -5. The time now is 08:35 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