Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
You will need to shrink a partition and create a new one, or completely repartition your drive in order to do it properly.
It doesn't matter where the partition is located though as long as you keep track of it's location:
Standard ide drive setups only allow 4 partitions, to overcome this we use one of them as an extended partition containing all other required partitions. A possible scenario for you:
Note that in this scenario, hdb2 (now hdb5) has been shrunk to accomodate hdb6, hdb5 & 6 are physically before the swap which remains where it is - at the end of the drive.
Use the distro installers' partition manager (in manual or expert mode) to sort this out during install of the other distro. Backup important files first though!!
edit: alternatively, just shrink / then create a new partition in the empty space; swap becomes hdb4. The first example is a bad idea as the location of / changes for (the original) distroA.
Make the changes to /etc/fstab to reflect this change before you decide to do it.
How much space do you have to work with? Are you using a single 16.5G drive, or do you have more? The more details you can provide, the better. BTW Tuttle's comments are a great summary. Along those lines, your /boot partition probably doesn't need to be any larger than 128Mg, and I wouldn't recommend a swap any larger thnn 256Mg, tops, regardless of the amount of RAM you have. The fact is that in 2005, if you've got at least 256Mg RAM and are using a reasonably current kernel, your swap usage is almost certainly minimal.
its a 60 gig hard drive that im using to play with linux distros.
im new to this and i just wanted to be safe so i gave the extra space.
i know that im not going to get exactly 60 outta the drive but did that just to make it simple.
so if i do this:
/dev/hdb1 - /boot 128MB
/dev/hdb2 - / 20GB
/dev/hdb3 - /20GB
/dev/hdb4 - /19.5GB
/dev/hdb5 - swap 256MB
Yes, that's fine. Most linux distro's use the same naming conventions for naming the drives, just write all the details of your chosen hard disk layout on a piece of paper so you don't forget what your plans are during installs. With that layout you can easily install 3 distros, bear in mind that once you get familiar with how linux can use drives, you might want to more finely tune you disk layout.
Here is the output of the command "df" on my computer:
disk = 120Gb
C, D & E are windows partitions (C for win2000, D for program_files and E for media) while hda11, 12 & 13 provide flexability for moving stuff around during major changes. Hidden is /dev/hda2 (for the linux boot loader as i have the freBSD loader in mbr), hda3 (extended) and hda4 (ad0s4 for freeBSD).
The possibilities are endless!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.