Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > How to divide a partition into two parts?

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-14-2009   #21 (permalink)
Linux Newbie
 
Join Date: May 2009
Posts: 129
Quote:
Originally Posted by Jonathan183 View Post
Resize partitions from a live CD.
It is even more secure doing it from a liveCD.
As you are working out of ram and not working on harddisk there is only one writing prozess (the one op repartitioning and formatating)
Quote:
Originally Posted by Jonathan183 View Post
Trying to resize a live filesystem may be possible but is not recommended.
First I never said resize a live filesystem - and please if you are confused don't confuse others by saying not reccommended when you even don't know what it is spoken about.
Quote:
Originally Posted by Jonathan183 View Post
In any case backup data - although partition resize usually works there are sometimes problems.
__________________
computerophil.at
computerophil is offline  


Reply With Quote
Old 07-14-2009   #22 (permalink)
Linux User
 
vickey_20's Avatar
 
Join Date: Mar 2009
Location: Mumbai, India
Posts: 493
Quote:
Originally Posted by Jonathan183 View Post
Trying to resize a live filesystem may be possible but is not recommended
The partition can never be performed on a filesystem that is currently mounted. It is mandatory to umount the partition and then perform the partitioning or resizing or whatever else.
__________________
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
vickey_20 is offline   Reply With Quote
Old 07-14-2009   #23 (permalink)
Linux User
 
vickey_20's Avatar
 
Join Date: Mar 2009
Location: Mumbai, India
Posts: 493
parted command line utility comes inbuilt in most of the distroy. If you prefer not downloading and manually doing the parition is possilbe using parted . Here is a quick howto Partitioning with parted
__________________
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
vickey_20 is offline   Reply With Quote
Old 07-14-2009   #24 (permalink)
Linux Engineer
 
Lakshmipathi's Avatar
 
Join Date: Sep 2006
Location: 3rd rock from sun
Posts: 1,093
You have already mentioned about this How To Resize ext3 Partitions Without Losing Data | HowtoForge - Linux Howtos and Tutorials

I have tried this before and it worked for me But Again I do not issue any guarantee that this will work for you!!!!

Since you already mentioned /home (which is a separate partition) is doesn't contain impartant data,you can try this,if you have large free space left with your /home.

Post your output of
fdisk -l /dev/sda

and then
df -h /home
__________________
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
Lakshmipathi is offline   Reply With Quote
Old 07-14-2009   #25 (permalink)
Just Joined!
 
Join Date: Apr 2009
Posts: 61
Hi All,
Seeing the complexity of this doing in command line( I am new), I decided to do it by GParted as all of you suggested at first. I saw that I have 1 GB free space as "unallocated", I tried to create a new partition.But it said that I need to create an extended partition first and for doing this, I will need to delete a primary partition ! Now the things become complex for me again

Here is how my partitions look:

device boot start End Blocks id system

/dev/sda1 1 262 2104483+ 82 Linux swap/solaris

/dev/sda2 * 265 2743 19928632 83 Linux

/dev/sda3 2874 8748 47190937 83 Linux

/dev/sda4 8749 9720 7807590 83 Linux


Here is how it is mounted
/dev/sda1 swap

/dev/sda2 /

/dev/sda3 /home (I want to make it smaller and create one extra partition out of it)

/dev/sda4 /mnt/point1 (This is another Distro Linux from scratch.)
NewinLinux is offline   Reply With Quote
Old 07-14-2009   #26 (permalink)
Just Joined!
 
Join Date: Apr 2009
Posts: 61
Hi,
I have made the /home partition smaller using GParted. But when I tried to create one more partition, it tells me that it cannot create more than 4 primary partitions. I need one more partition.What should I do now?
NewinLinux is offline   Reply With Quote
Old 07-14-2009   #27 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,081
Send a message via Yahoo to devils casper
Its not possible to create more than 4 Primary Partitions. Delete last Primary Partition (/dev/sda4 ) and create an Extended Partition using GParted. You can create 60+ Logical Partitions inside Extended Partition.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 07-14-2009   #28 (permalink)
Just Joined!
 
Join Date: Apr 2009
Posts: 61
But, I can't delete /dev/sda4 . That is my LFS 6.4. Can I delete the /dev/sda3 , my /home partition and make an extended one?
NewinLinux is offline   Reply With Quote
Old 07-14-2009   #29 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 21,081
Send a message via Yahoo to devils casper
Yes, you can delete it and create an Extended Partition. Back up data of /home partition to new location before doing that.
You have to edit /etc/fstab file to boot other distro after create new partition.

Execute this to copy data from /home partition,
Code:
cp -a <path of /home> < new_location>
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 07-14-2009   #30 (permalink)
Just Joined!
 
Join Date: Apr 2009
Posts: 61
You told that "You have to edit /etc/fstab file to boot other distro after create new partition."
Why should I do it(I am deleting /home and making it again !) and what will I have to write in the /etc/fstab file?

How will the structure of my filesystem look like? Will it be like this :

/dev/sda1 swap

/dev/sda2 /

/dev/sda3 /home (extended)

/dev/sda4 /mnt/point1

/dev/sda5 /embedded (logical) (This is my plan of new partition once it is made)


Or will it be different?
NewinLinux is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:56 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2