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 have a dual boot system with two hard drives. Xp on first HD, Ubuntu on second Hd. I boot with Grub through the MBR of the first HD. My question is this, I have approx. 150GB of free space on drive 2, which I did not partition, and on which I would like to create an extended partition and install another distro, can I do this without trashing my present set-up? Everything is working and I don't want to cause myself unnecessary grief, but I would like to load another distro and learn more about linux.
On disk 2 I have 3 primary partitions and a swap partition, /root, /usr, /home, and /swap.
All partitions are ext3 with the exception of swap which is ext2.
Well, there's a contradiction in your post. How many primary partitions do you have on disk 2? You say you have three, but list four (swap is also a partition). Just llok at the output of
to see how many partitions it lists.
If you have three, then it's easy to create another one, as a container for logical partitions and install Linux in them (watch for partition numbering, though! I hope your 150G are after the partitioned space). cfdisk is the command to do that.
If you have four, then you'll need to delete your swap partition and create a new container in its place, containing the entire free space. Then, recreate the swap partition as a logical one inside this container. You'll have to edit the /etc/fstab file in your exiting Linux installation to make it use the new swap partition. But several Linux unstallations can use the same swap.
PS. swap can't be ext2, you confused something...
Last edited by Uncle_Theodore; 06-21-2009 at 01:29 PM.
This is the result of fdisk -l
/dev/sdb1 1 6382 51263383+ 83 Linux
/dev/sdb2 6383 12758 51215220 83 Linux
/dev/sdb3 12759 19244 52098795 83 Linux
/dev/sdb4 19245 20149 7269412+ 5 Extended
/dev/sdb5 19245 20149 7269381 82 Linux swap / Solaris
It looks like I have an extended partition but I'm not exactly sure how to interpret this. What partition type is indicated by "82"?
82 is a partition type used by Linux swap and, I guess, Solaris.
What you need to do is to extend your /dev/sdb4 to the end of the drive (I'm assuming the empty space is after it) and then recreate /dev/sdb5 inside of it and create some more partitions.
You can use cfdisk (a console program) or some GUI utilites like gparted.
Look in your /etc/fstab and make sure the "swap" entry points to the correct new swap partition after you're done.
Well, you probably have to repartition using a live CD. Gparted comes with a bootable CD image, just check their website. Generally, using a live CD is better. Of course, backing up your information is a must, before you start playing with your partitions.