LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-31-2012, 12:37 PM   #1
fedix
Member
 
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104

Rep: Reputation: 17
Partitioning a Linux partition


I've got a CentOS install on a 80 GB HDD of which only a few GB is used for the current CentOS install.

is there a way of spitting that hard drive into 2 40GB partitions in able to isntall anotehr Linux distro without killing the current CentOS install and doing it all over?
 
Old 07-31-2012, 01:06 PM   #2
ksdeiva
LQ Newbie
 
Registered: Oct 2011
Posts: 14

Rep: Reputation: Disabled
Here you go...

1) If you have partition fully with 80G with existing OS without LVM. less chance ..if you partioned with LVM there is chance to resize and format the exess space...

2)elseif you have partioned only few GB for existing OS then YES u can use free space for next ...

Let me know how can i help you ??

Regards,
deiva...
 
Old 07-31-2012, 02:21 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,747

Rep: Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925
Yes, a default installation creates 2 partitions, boot and a LVM for root(/) and swap. Actually, it would be easier to resize existing partitions if they are not LVM.
 
Old 07-31-2012, 03:22 PM   #4
fedix
Member
 
Registered: Oct 2005
Location: Mpumalanga, South Africa
Distribution: Fedora / CentOS 5 / Ubuntu
Posts: 104

Original Poster
Rep: Reputation: 17
Thanks, I've used the default install but used all of the 80GB (ksdeiva's option 1).

Howto from here?
 
Old 08-01-2012, 02:36 AM   #5
ksdeiva
LQ Newbie
 
Registered: Oct 2011
Posts: 14

Rep: Reputation: Disabled
ok fine !

1)if its in LVM here you go by below procedure.

First Step : –> umount /lvmpartition
Second Step : –> e2fsck /lvmpartition
Third Step: –> resize2fs /lvmpartition
Fourth Step: –> lvreduce -L100M /lvmpartition
Fifth step –> resize2fs /lvmpartition
Sixth Step : –> mount /lvmpartition

2) if not in LVM no ways...

Regards,
deiva...
 
Old 08-01-2012, 07:48 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,747

Rep: Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925Reputation: 5925
Quote:
2) if not in LVM no ways...
Not true. gparted is capable of resizing existing partitions not associated with a LVM but you should boot the computer using a live CD.

http://gparted.sourceforge.net/

Some LVM help:
http://centoshelp.org/resources/post...her-partition/

Make sure you backup any and all important data just in case.

Last edited by michaelk; 08-01-2012 at 08:20 AM.
 
1 members found this post helpful.
  


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
Grub gone after partitioning one of the linux partition(URGENT !!!!!!!!!!!!!) decodedthought Linux - General 5 04-17-2009 09:37 AM
Partitioning a partition is it possible? Master Fox Linux - General 5 08-15-2005 04:05 PM
Which partition formats can Linux read from? (I need some help with partitioning!) Eerath Linux - General 6 07-24-2005 12:37 PM
RH Linux 9.0 installation step "Auto partitioning" not able to read partition table awahab Linux - Newbie 5 05-19-2005 07:53 AM
partitioning linux partition I_luv_linux Linux - Software 4 11-22-2004 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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