LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2007, 11:15 AM   #1
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Rep: Reputation: 30
Removing unused Partion


I am now using OpenSuse 10.2. I have Fedora 6 lying in the other partition. I want to remove the Fedora partition and add up the space in OpenSuse. Can I do that through the partition tool in YAST?

Fedora is in /dev/hda6 and it's swap is in /dev/hda5

Kindly suggest.
 
Old 03-04-2007, 11:52 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,884

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
arindom, we can't tell you how to do that because we don't know where OpenSuse is installed. What is the relation in partitions: OpenSuse,Fedora,swap or Fedora,swap,Opensuse?

We need to know where all three partitions are located.

It may be an easy task using cfdisk or Yast partitioning tool. It may be an impossible task.

But, we can't tell you anything until we know where all three are located.
 
Old 03-04-2007, 12:49 PM   #3
stan.distortion
Member
 
Registered: Sep 2005
Location: ireland
Distribution: debian with bits of everything stuck on it
Posts: 114

Rep: Reputation: 15
Yes, depending on the partitioning scheme you should be able to merge the partitions, however, you will need to do it with the filesystem unmounted ie. from a live cd. Don't forget to back things up first.
Cheers,
Stan.
 
Old 03-04-2007, 01:45 PM   #4
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
I should have given that details earlier. As I am still learing how to use linux, so may be that is the reason I have missed the details.

Here is my fstab details :

/dev/hda3 / ext3 acl,user_xattr 1 1
/dev/hda4 /home ext3 acl,user_xattr 1 2
/dev/hda1 swap swap defaults 0 0
/dev/hda5 swap swap
/dev/hda6 /mnt/Fedora ext3 defaults 0 0

I have OpenSuse and Fedora in my system. I want to remove Fedora and relocate the space to OpenSuse.

I hope this will be helpful if you need further details please advise me the steps. Thanks for your help.
 
Old 03-04-2007, 02:01 PM   #5
stan.distortion
Member
 
Registered: Sep 2005
Location: ireland
Distribution: debian with bits of everything stuck on it
Posts: 114

Rep: Reputation: 15
No prob. I dont think you can merge them, hda3 will be a primary partition while hda6 will be logical. To get rid of the logical partition you will need to delete the /home partition which I'm guessing you dont want to do. However, you could re-format the swap on hda5 as ext3 and merge all 3 logical partitions (hda4, 5 and 6) as /home on hda4 which would probably be the best thing to do as the os doest really need much space.
Cheers,
Stan
 
Old 03-04-2007, 02:22 PM   #6
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
Thanks Stan for your suggestions. I will try that and report. Hopefully I can do what you have suggested.
 
Old 03-04-2007, 02:34 PM   #7
stan.distortion
Member
 
Registered: Sep 2005
Location: ireland
Distribution: debian with bits of everything stuck on it
Posts: 114

Rep: Reputation: 15
Hope it works out OK for you, don't forget the backup just in case.
I would recommend booting with an ubuntu CD and using gparted to merge them, it gives good clear messages and is straitforward to use.
You may need to run "sudo swapoff /dev/hda5" before merging as most live distro's mount any swap they find at boot.
Good luck with it,
Stan.
 
Old 03-04-2007, 03:07 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,287

Rep: Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987Reputation: 1987
/dev/hda4 will (likely) not be a logical.
Let's see the output from "/sbin/fdisk -l" (lower cas eell).
Trying to merge partitions is not usually a simple process - LVM excepted.

Here's another suggestion - merely delete the unused partitions, and use the space for particular mount points you know are going to grow and cause problems. Say /media/music or /media/movies, or /usr. Whatever.
Clean and simple, and doesn't put your current system at risk.
 
Old 03-04-2007, 03:26 PM   #9
stan.distortion
Member
 
Registered: Sep 2005
Location: ireland
Distribution: debian with bits of everything stuck on it
Posts: 114

Rep: Reputation: 15
My mistake, hda4 should be primary with 5 and 6 being logical on 2. Merging 2 and 4 will probably not be possible. You would need to:
remove 2 and everything on it,
create a new swap partition at the start of 2
mount the new swap
unmount the old swap at 3 and delete it,
format the free space as ext3,
merge the new hda3 with with hda4.
Not so easy and quite a lot of risk, freeing up the space and using it for storage would be the better option.
Cheers,
Stan
 
Old 03-04-2007, 10:30 PM   #10
arindom
Member
 
Registered: Nov 2006
Location: India
Distribution: Ubuntu 11.04
Posts: 165

Original Poster
Rep: Reputation: 30
Well, I did tried to re-format /hda5 as /ext3 but system reminded me that it is mounted and YAST can unmount and format. When I chose yes, system again reminded me saying I may loose data. So I backed of .

Regarding the output : /sbin/fdisk -l

This is the output:
--------------------------
Device Boot Start End Blocks Id System
/dev/hda1 1 62 497983+ 82 Linux swap / Solaris
/dev/hda2 4867 9733 39094177+ 5 Extended
/dev/hda3 * 63 1989 15478627+ 83 Linux
/dev/hda4 1990 4866 23109502+ 83 Linux
/dev/hda5 4867 5259 3156741 82 Linux swap / Solaris
/dev/hda6 5260 9733 35937373+ 83 Linux

Partition table entries are not in disk order
--------------------------

It seems that this is risky business to do in that case I have to consider using the space for storage as suggested by Stan and Syg00.

Thanks everyone for helping me.
 
  


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
Removing unused packages objorkum Debian 2 04-05-2005 08:32 PM
removing unused packages hypermegachi Slackware 3 07-05-2004 03:06 PM
how do i move files from my windows partion to my linux partion awesome_man Linux - Newbie 2 01-30-2004 12:51 PM
Removing unused kernel modules / autoclean MadCactus Linux - General 4 12-23-2003 09:05 AM
Must "/boot" partion be installed in the primary partion? domeili Linux - Newbie 9 11-01-2003 08:27 AM


All times are GMT -5. The time now is 04:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration