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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My first post here so excuse if it's in the wrong place.
Im writing(typing) my RHEL EX200 exam in 2 weeks. my question is regarding fdisk
It goes as follows - You already have 3 partitions, so obviously the 4th one will be an extended partition. There is 10G free space to use. When using fdisk i will do the following : fdisk dev/sda
-n(for new partition)
-e(for extended partition)
-4(for 4th partition)
-then I press enter to use the first avalible cylinder
-NOW this is where I get lost. when fdisk askes for the last cylinder I can only select 2 cylinders. And when doing so it only gives you a partition of 1G. wheres the other 9??????
It picked an inappropriate starting cylinder in a gap preceding one of the existing partitions. You need to look at a list of the current partitions and choose an appropriate starting cylinder. And, you shouldn't be working in the obsolescent "cylinder" units anyway. Use the "u" command to switch to "sector" units.
Thanks man. Would using sectors stop me from choosing the the 2 lost cylinders or would I still have to select a sector that starts after the last partition?
It may still default to a bad starting location. It will be using 1 Megabyte alignment for the starting sector (sector number a multiple of 2048), and depending on how the partitions are currently placed, it might find a gap that it could use.
BTW, any recent version of fdisk would default to using sector units. You must be using a fairly old one.
Also, it is not at all obvious that the 4th partition would be an extended one. You would need that if you envisioned ever wanting more than 4 partitions on that disk, but with just 10 GB remaining, how likely is that? Of course, it that is the way the question is phrased, then that is what you would do.
Im using an up-to-date Centos 6.5. The obvious part for me is of I would like to create swap space as well as a LV, then I would need an extended partition. Which make me think of another question. In the same scenario, after creating my 10G partition would it be beter practice to create a 10G LV and take a chunk of that for swap space or create another partition on the extended partition for the swap space the rest for the LV??
I keep forgetting just how far behind RHEL and its clones tend to be. (And I have a machine running Scientific Linux 6.5, but it's using LVM, so I seldom have occasion to run fdisk.)
If you want to play around with LVM, I suggest just making partition 4 a primary LVM partition (type 8e), put that in a volume group, and break that up into LVs however you like. That way you can make changes without having to reboot, as you would have to when changing separate partitions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.