LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to resize an extended logical partition? (https://www.linuxquestions.org/questions/linux-software-2/how-to-resize-an-extended-logical-partition-882355/)

skyxn3t 05-23-2011 07:38 PM

How to resize an extended logical partition?
 
1 Attachment(s)
Hi

I'm using Fedora 14 x86_64
I have the following partition table:

/boot...500MB PRIMARY (ext4)
/.......136GB PRIMARY (ext4)
swap....6.8GB PRIMARY (swap)
/home...356GB EXTENDED/LOGICAL (ext4)


I want to take 200GB from the /home Extended-Logical Partition, and install Archlinux on it, how do I do that?
Note: In this 200GB Free Extended Space I want to create another 4 Logical Partitions for Archlinux.

andrewthomas 05-23-2011 07:45 PM

With a gparted livecd.

TobiSGD 05-23-2011 07:49 PM

1. Backup your valuable data (optional if you have a new backup, which is recommended)
2. Boot from a live-medium that has GParted installed.
3. Start GParted and resize to your needs.
4. Reboot and install Arch.

skyxn3t 05-23-2011 08:06 PM

Quote:

Originally Posted by andrewthomas (Post 4365128)
With a gparted livecd.

Quote:

Originally Posted by TobiSGD (Post 4365131)
1. Backup your valuable data (optional if you have a new backup, which is recommended)
2. Boot from a live-medium that has GParted installed.
3. Start GParted and resize to your needs.
4. Reboot and install Arch.

Thanks for the suggestions, downloading Gparted Live cd right now...

@TobiSGD
You said in "Step 1." to "backup your valuable data", does resizing damage the data or cause loss of data in the logical/extended partition?
The /home extended-logical partition that I want to resize contains all the user/app/system info for my account in Fedora.

TobiSGD 05-23-2011 08:25 PM

Fiddling with partitions can always lead to data loss. Also user error or hardware failure. It is therefore recommended to regularly backup your important data, if you don't want to loose it. This is especially true when performing system critical tasks, like resizing partitions or installing new operation systems, but should also be done in normal use.

In short: Having a backup of your data is essential.

skyxn3t 05-24-2011 01:00 AM

1 Attachment(s)
The resizing went fine, I created unallocated space "following" the extended partition. BUT:

I just tried to install Archlinux, when it came to selecting the Hard disk to manually partition (/dev/sda), it gave me the following error:

Bad Primary Partition 3: Partition ends in the final cylinder

What am I doing wrong ?

Here's the current partition:
Where it says FREE is the unallocated space that I just created with Gparted Live CD, that space was created "Free Space Following"

http://i56.tinypic.com/21omvlx.png


I want to install Archlinux in the FREE space (211 GB), I want to create 4 Logical Partitions ("/" "/home" "swap" "/boot") in that free space to be used for Arch...

syg00 05-24-2011 02:18 AM

From gparted, move the right boundary of the extended partition in a bit - say leave a meg after it.

skyxn3t 05-24-2011 08:56 AM

1 Attachment(s)
Quote:

Originally Posted by syg00 (Post 4365317)
From gparted, move the right boundary of the extended partition in a bit - say leave a meg after it.

I resized the extended partition (/dev/sda4 <check the screenshot below>) and left 1MB of unallocated space after it but that didn't work.
Arch still gives me the same error.

==============

Here's the output of "fidsk -l"
Code:


[root@host ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x0001bdaf

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *        2048    1026047      512000  83  Linux
/dev/sda2        1026048  267266047  133120000  83  Linux
/dev/sda3      267266048  280578047    6656000  82  Linux swap / Solaris
/dev/sda4      280578048  976773119  348097536    5  Extended
/dev/sda5      280580096  565252095  142336000  83  Linux

Here's the Disk Utility Gui with Labels that I created that might help:
http://i901.photobucket.com/albums/a...ted_labels.png

----- EDIT
Nevermind when I moved the right boundary I used MB instead of Cylinder, after I used Cylinder the Archlinux setup doesn't seem to complain anymore... I'll finish the setup and post back...
Thank you all for the help... Appreciated!


All times are GMT -5. The time now is 03:13 PM.