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.
Hey,I have 3 partitions on my hdd right now, a Windows 7 one, the associated System Reserved and my Linux Mint partition. I was trying to use GParted to make another partition by splitting my Linux Mint one in two smaller partitions. I can't, however, unmount it, and so can't partitions it. I have considered partitioning it from Windows 7, but I'm afraid it will screw some things up and stop booting up correctly. So, what could be making the partition unable to unmount?
Last edited by Blackened Justice; 06-26-2011 at 05:43 AM.
4 partitions on a hard drive..... Although possible and has definately been done before. May
not be a great choice. Why do u need 4 OSs on one machine ? Maybe think about creating a persistant live USB? I realize that many people need windows for iTunes and office.
I don't think I've helped you mate but I've tried !!
If it is an option for you to reinstall Mint completely, I'd recommend to create an extended partition. An extended partition can be splitted into several logical partitions so that you are not bound to the 4 partition limit. If you don't want to reinstall Mint, you should anyway consider to create the new partition as an extended one. I have also Windows (2 partitions) and a recoverypartition, here as an example my partitiontable:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x096716b2
Device Boot Start End Blocks Id System
/dev/sda1 2048 31459327 15728640 27 Hidden NTFS WinRE
/dev/sda2 * 31459328 31664127 102400 7 HPFS/NTFS/exFAT
/dev/sda3 31664128 138487807 53411840 7 HPFS/NTFS/exFAT
/dev/sda4 138487808 625137344 243324768+ 5 Extended
/dev/sda5 138487871 211897349 36704739+ 83 Linux
/dev/sda6 498241958 625137344 63447693+ 83 Linux
/dev/sda7 211899398 222139397 5120000 82 Linux swap
/dev/sda8 222141446 253598725 15728640 83 Linux
/dev/sda9 253600774 358458373 52428800 83 Linux
/dev/sda10 358460422 498239909 69889744 83 Linux
Partition table entries are not in disk order
don't be confused because the logical partitions are not in disk order.
You may for example create a swap partition for both (Mint and the new) Linux as logical partition.
As said above, you'll have to use gparted from a live-CD because you can only make changes at non mounted partitions.
See the (much) more useful post #2.
Use a liveCD to do the resize.
It is possible to resize without unmounting, but gparted has checks in place to not allow it (for general safely).
Be aware that if you create 4 primary partitions you will not be able to create any more. I prefer to set up an extended to hold logicals - much more flexible. Could be a problem with Mint already in place. Let's see the output from "sudo fdisk -l".
This depends on the program you use for paritioning. I use fdisk, but many people say the cfdisk is more comfortable. I'd recommend read the manpage for fdisk or cfdisk carfully before!!! using this tools and perform a backup at least of all your personal data on all your systems!
Better would be to use a virtualmachine and try it out without any risk.
An additional explanation to the partitiontable in post #5: note that all the linuxpartitions including the swapspace reside as logical partitions within the extended one.
And I'd further recommend to use the
fdisk -l > fdisk.txt
command which will create a textfile named "fdisk.txt" with your partitiontable and then print it out so you can use it in a case of emergency to recover your partitiontable. The partitiontable is only a table of contents and has not directly to do with the physical data, but when the parititiontable is damaged, your systems can't finde the filesystems.
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 53556 430085146 7 HPFS/NTFS
/dev/sda3 53557 60802 58195969 5 Extended
/dev/sda5 53557 60313 54267904 83 Linux
/dev/sda6 60313 60802 3927040 82 Linux swap / Solaris
Something seems wrong, why doesn't Partition 1 end on cylinder boundary (whatever that means)? And I can't run cfdisk, it gives me a FATAL ERROR: Bad primary partition 2: Partition ends in the final partial cylinder Press any key to exit cfdisk
I have all my data backed up, and I have no problem reinstalling mint.
Well, this means that Mint has already created an extended partition. The Windows partition (/dev/sda2) is very big.
It seems that Linux has (including the swapspace about 60GB. Windows more than 400GB. If you don't need as much place for Windows, I'd suggest to use gparted and decrease the Windows partition down to about 250GB. Then delete the extended partition (at first the logical ones have to be deleted). Afterwards create an extended partition on the rest of the disk (about another 250GB since sda1 is very small).
The layout for the extended partition is very flexible, I change it relatively often when I install a new distribution. I give you an example for two Linux-distributions:
/dev/sda5 20GB first distribution (the / partition)
/dev/sda6 20GB the second Linux /
/dev/sda7 Swap for both
/dev/sda8 15GB /home for the first distribution
/dev/sda9 15GB /home for the second one
/dev/sda10 50GB mount this one for both distributions on the same path (I use /usr/local/public)
leave the rest free, you may once use it for example for an image of a virtual machine.
I have a similar setup, here the output of "df -h" from my laptop: