LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-05-2006, 05:37 AM   #1
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Rep: Reputation: 36
non distructive partitioning


what would be the best way to non-destructivly repartition my hard drive

i curently have

had1 swap 392.1MB
hda2 / 14.0GB
hda3 /home 4.2 GB

i want to add another partition of 4GB resising hda2 to 10GB

without harming the data on hda2

would the resize in YAST partitioner do this or woudl it destructivly re-partition?
 
Old 07-05-2006, 05:54 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Resize means what it says, resize. It shouldn't destroy anything if it works all right, and I think it does, but there's always a small danger If you want a "destructive re-partitioning" you need to manually delete-add-partitions. Resizing is easier since it should only alter the size of the partition (if the partition has enough free space), but if it works, it depends on whether or not the partitioning program is able to do a resize operation on the filesystem you have in the desired partition. NTFS and FAT can be resized easily with Linux utils I know, but I'm not sure about all the Linux filesystem types. And if you're doing something, always remember to umount the partition you're dealing with first - if you're doing some operations on a mounted partition, you will most likely get data losses.
 
Old 07-05-2006, 06:10 AM   #3
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by b0uncer
I'm not sure about all the Linux filesystem types. And if you're doing something, always remember to umount the partition you're dealing with first - if you're doing some operations on a mounted partition, you will most likely get data losses.
HMM not sure how i can do that as you cant unmount / and still do stuff to it
and i dont know of a sutable partition tool to use on a live CD

this is a reiserFS partition i want to resize
 
Old 07-05-2006, 07:01 AM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Oh, sorry I missed that. Well you'll need a LiveCD (or that's the easiest way) for this; I guess most if not all of the common LiveCD distributions (like Knoppix) include partitioning software, like gparted (for Gnome) or qtparted (for KDE). With those you can resize reiserfs, and I suggest you download the Ubuntu 6.06 LTS normal installation/LiveCD that you can use (besides installing) as a normal LiveCD distribution. It has gparted partitioning software on it, and it's easy to use. That way you don't need to mount your root partition and can resize it.

Gparted's features table:

http://gparted.sourceforge.net/features.php

So, what you do is:
1) Go to www.ubuntulinux.org then open the "Downloads" page, pick up a location near you and download the "Pc (Intel x86) desktop CD" which you can use as a LiveCD

2) Once you've burned it on a cd-r (or cd-rw if you plan to reuse the disc later), boot from it and run Ubuntu live session

3) I think it's in System menu (if not, then look in Applications or launch it from a console), so open up gparted

4) make sure the partition is not mounted: open up a console and issue mount command (or if you like, df command), and make sure your root partition isn't there in the list; if it is, issue umount to the root partition.

5) Select your root partition from gparted's list and click the Resize button

6) Choose how much you want free space

7) Commit changes. I've encountered a situation where I was unable to commit changes when I had done multiple things (resized, created new partition etc.) so you better commit changes after each step, so it works

8) gparted probably asks you if you're sure. Sure.

9) Use gparted to create your new partition, if you like. Remember to commit the changes before quitting.

That's about it. Then just reboot..
 
Old 07-06-2006, 05:54 PM   #5
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Original Poster
Rep: Reputation: 36
No problem now...
i cheated,
managed to get a spare 4GB HDD of a freind, so i have just formatted that and am using it instead, thanks for the help anyway, i will remember qparted if i need to do any partiutioning with a live CD (my favorite is SLAX)
 
Old 07-07-2006, 01:42 AM   #6
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Ok, good you got it solved it's generally a good idea to have a LiveCD distribution around, not just for partitioning, but sometimes if you're unable to boot your OS you might have a chance to save data using LiveCD; I recommend you download and burn to cd either Knoppix, Ubuntu, MEPIS or whatever you like.
 
Old 07-07-2006, 11:03 AM   #7
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Original Poster
Rep: Reputation: 36
yeh at this time tehre are 2 SLAX live cd disks sat behind my keyboard, for some unknown reson one which is multisesion wont boot on this box but will on others...

still the other one will so it isnt too bad,

slax is one of the best live cds i have ever used
www.slax.org
 
  


Reply

Tags
harddisk, partitions, suse



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
Partitioning superdude_876 Slackware 5 10-20-2005 10:28 AM
Partitioning brokenflea Slackware 3 06-06-2004 11:55 PM
partitioning banelion Linux - Newbie 1 06-20-2002 11:02 PM
partitioning to_vijayarun Linux - General 3 06-15-2002 01:42 AM
partitioning Jay4hand Linux - Newbie 9 06-11-2002 04:57 PM

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

All times are GMT -5. The time now is 09:48 PM.

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