Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am having a big /home partition. I need to make it small and create one more partition from it which will be used for some other purpose. Can you tell me please how to do it?
I searched on google and found some methods which were very different from each other.I don't know which one is good, so, I thought I will ask you experts before doing anything. Please tell me how would you do this partitioning job?
NOTE: there is no need to protect the data written in /home
I saw the link which you have posted. It tells to make a Live CD first. But, can it be done without that? I mean, by using instructions like umount,fsck, fdisk resize2fs(you know better which ones to use in this case)?
If you're not worried about the data, fdisk will do it; need to be root.
Since I am new to this thing, can you please explain me how fdisk should be used? I mean what instructions will you give in your terminal when logged in as root? Do we have to first unmount and then delete it? I don't want to crash my system, so can you tell me how is it done step by steep? I have already crashed it before in attempt to partition it
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/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.)
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?
First, you don't "split partitions". As you have already seen, you can resize one or more partitions to create empty space, and then create new partitions.
If you have used all four primary partitions, then you need to create logical partitions to make more. (Linux does not care about primary vs. logical) In GParted, you can create the extended partition first---be sure to make it big enough to hold all future changes**, since some partitioning tools will not let you change it.
fdisk does not resize partitions, nor does cfdisk. To use these tools, you would have to delete the existing partitions and create new ones. (Save data first)
**Normally, if you already have 4 primaries, you would want to make the extended partition fill most or all of the remaining disk space. The only reason not to do this would be to allow future expansion of one of the primaries. This, however, may require moving partitions to allow others to be expanded-----thus a bit higher risk of losing data. The easy solution is to have BIG drives, oversized partitions, and lots of empty space. "Brute force" IS often the best answer.
Thanks for the advice. According to your post, I have understood that an extended partition is like a big container within which we can make many smaller containers.
So, here is what I plan to do. I will delete the /home (/dev/sda3) partition to make a big empty space. Then I will make an extended partition called /extd (it will become /dev/sda3)(I have thought this name for it). Then I will create the following logical partitions:
/dev/sda6 /embedded (this will be the name of the partition in which I am going to put embedded linux distro)
Is it a correct and safe way to solve this problem? I will proceed only if any linux master gives me a go ahead signal because I don't want to crash again.Thanks.
Last edited by LinuxNewman; 07-15-2009 at 02:49 AM.
Reason: forgot to give name of partition