LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-23-2011, 07:38 PM   #1
skyxn3t
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Rep: Reputation: 0
How to resize an extended logical partition?


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.
Attached Images
File Type: png FileSystem.png (27.8 KB, 9 views)
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-23-2011, 07:45 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
With a gparted livecd.
 
2 members found this post helpful.
Old 05-23-2011, 07:49 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo, Slackware
Posts: 14,903
Blog Entries: 2

Rep: Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812
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.
 
2 members found this post helpful.
Old 05-23-2011, 08:06 PM   #4
skyxn3t
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by andrewthomas View Post
With a gparted livecd.
Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 05-23-2011, 08:25 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo, Slackware
Posts: 14,903
Blog Entries: 2

Rep: Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812
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.
 
Old 05-24-2011, 01:00 AM   #6
skyxn3t
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Original Poster
Rep: Reputation: 0
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...
Attached Images
File Type: png disk.png (65.3 KB, 7 views)

Last edited by skyxn3t; 05-24-2011 at 01:10 AM.
 
Old 05-24-2011, 02:18 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,827

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
From gparted, move the right boundary of the extended partition in a bit - say leave a meg after it.
 
2 members found this post helpful.
Old 05-24-2011, 08:56 AM   #8
skyxn3t
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
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!
Attached Images
File Type: png disk_edited_labels.png (103.0 KB, 5 views)

Last edited by skyxn3t; 05-24-2011 at 09:59 AM.
 
  


Reply

Tags
extended, logical, partition


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo convert Primary Partition to Logical (ie move it inside the Extended Partition) Tom6 Linux - Software 3 11-29-2010 03:40 PM
Extended logical partition issue Mr Pink Linux - Server 6 04-16-2010 09:00 AM
What are Primary,logical and extended partition?? almon General 4 10-30-2007 12:33 PM
[SOLVED] Safety: Primary Partition and Extended (Logical) Partition MBA Whore Linux - Security 11 01-03-2007 02:05 PM
Primary, Logical or Extended partition? mrpc_cambodia Linux - General 3 09-12-2004 11:10 PM


All times are GMT -5. The time now is 12:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration