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.
Currently I have 5 partitions (I cannot delete or resize 4 of them because one or both OS's would not boot then).
Adjacent to the primary Linux part is about 40 gigs of unallocated space that I want to allocate to the primary Linux part next to it and then add a small swap part after. The primary Linux part will not resize to take up the unallocated space and I had no idea if it would work but I tried to make a new part with the unallocated and then try to merge the new part with the primary but when I try to create the new part I get an error message stating I have exceeded the maximum number of parts.
Currently I am using Parted Magic on a live usb to try and resolve the issue.
I thought about removing the unnecessary oem and recovery parts for the other OS BUT I do not know if the other OS would boot then. Z/Z
Click here to see the post LQ members have rated as the most helpful post in this thread.
It is hard to give good advice when we don't know the situation. Show us the output from the following command as root
Originally Posted by LinuxNoobX
The primary Linux part will not resize
That is probably because it was mounted at the time. You can't resize a mounted partition. You were unclear about what was booted and what was mounted when you tried that resize.
Originally Posted by LinuxNoobX
then add a small swap part after.
I thought about removing the unnecessary oem and recovery parts for the other OS BUT I do not know if the other OS would boot then.
If your Linux partition is a primary partition, changing the number of primary or extended partitions before it would change its identity, which would be very complicated to clean up
If the unpartitioned space from which you want to create a swap partition is not inside an extended partition, then the fact that you have the max number of primary/extended partitions already will be an obstacle.
Those issues can be explained with less abstraction after we see the existing partition table.
One minor problem... I am used to executing commands from root and not elevating them to root I switched from BT to Mint because BT doesn't support my usb modems ( I know what you are thinking BUT... BT 5 doesn't support the modems but BT 2 and 3 did... so BT 5 deliberately doesn't support my modems )... and I spent many months researching how to enable the modems and came upon with 101 guesses about how to do so but no conclusive answers. Also I think the forum mods (at BT) hate me... they used to slap me with infractions for saying stuff like "what the hell!"...
That and I hated switching between OS's if I felt like having a break and watching some bleach or something. BT5 is VERY secure... long story long I am using Mint now and have no idea how to elevate beyond sudo. Z/Z
Sounds easy enough to do but if grub gets picky about partition location or size I will probably lose Linux and the other OS in one shot but a deletion or all Linux parts with Parted Magic followed by an immediate reinstall of Mint will probably work.
I love experimentation more than you will ever know BUT I have spent several weeks tweaking the crap out of the other OS and almost have it running as smooth as I like. (The valid registry entries to disable the UAC prompts can be very hard to find) Z/Z
Oh btw I made a misrepresentation when I said you have to resize extended first.
If resizing larger extended must be done first.
If resizing smaller the partitions within the extended must be done first.
I'll explain the configuration after the other OS's parts... first is the logical, then primary and after that is the unallocated space. Z/Z
Edit: Originally it was logical, primary, swap and unallocated. I used parted magic to add swap to primary with the intent of adding unallocated to primary after that and then recreating the swap but after the swap was added to primary the unallocated could not be added to primary. Z/Z
Last edited by LinuxNoobX; 01-25-2012 at 12:41 PM.
I assume that you're referring to the unallocated space before sda1?
Also the space between sda1 & sda2?
You already have 4 primary partitions
You can easily use gparted live & move sda1 to the left
then sda2 to the left
also sda3 to the left
resize sda4 to the left, putting unallocated within sda4
then you have option of resizing or moving sda6 to the left & dealing with sda7
I have also done this on my machine & haven't had a problem, on my system I had to resize my / partition, which I did by resizing my home & in some cases I've actually taken the space from swap.
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0x34fe34fd
Device Boot Start End Blocks Id System
/dev/sda1 63 6554519 3277228+ 12 Compaq diagnostics
/dev/sda2 6554520 48789404 21117442+ c W95 FAT32 (LBA)
/dev/sda3 48789502 312580095 131895297 5 Extended
/dev/sda5 291344384 312580095 10617856 83 Linux
/dev/sda6 * 48791552 51400703 1304576 83 Linux
/dev/sda7 51402752 68073471 8335360 83 Linux
/dev/sda8 68077568 73934847 2928640 83 Linux
/dev/sda9 73938944 80945151 3503104 82 Linux swap / Solaris
/dev/sda10 80984064 81762303 389120 83 Linux
/dev/sda11 81764352 291338239 104786944 83 Linux
UnfortunatelyI don't know squat about grub and how it would react to me moving parts around be I do know if grub doesn't see Linux the grub resque prompt comes up and I have to reconfigure the lappy's 2 OS's from scratch...very time consumming (esspecially the butterfly).
In order to get a workable configuration I stuck with what I knew. Since win and Linux can easily access files from c: I expanded it to all but 40 gigs. Leaving 15 for logical(/ or root), 20 for primary (/home) and 5 for swap.
It's not a pretty or elegant solution but it is a solution I have faith in.
I am in the middle of the Mint install right not. If I want to experiment with partitions later I can use one of my netbooks.