LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-27-2006, 10:06 PM   #1
leftPeg
LQ Newbie
 
Registered: Jan 2006
Posts: 19

Rep: Reputation: 0
How to convert primary partition to logical


Hello,

I hope somebody can help me.

I have the following partitions setup

Code:
Disk geometry for /dev/hdb: 0.000-176700.234 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031    101.975  primary   ext3        boot
2        101.975 109889.934  primary   ext3
3     109889.934 127076.660  primary   ext3
4     127076.660 176699.311  extended              lba
5     127076.691 141196.289  logical   ext3
6     141196.320 149040.527  logical   ext3
7     149040.558 156884.765  logical   ext3
8     156884.796 157402.485  logical   linux-swap


Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdb3             17322592  13786204   2656428  84% /
/dev/hdb1               101089      9324     86546  10% /boot
none                    127632         0    127632   0% /dev/shm
/dev/hdb7              7906164     32872   7471672   1% /tmp
/dev/hdb2            110658340   2724448 102312752   3% /usr
/dev/hdb5             14231504     90944  13417640   1% /var
/dev/hdb6              7906164     39696   7464848   1% /var/log
I want to resize /dev/hdb2 (/usr) by making it smaller, and then with the leftover space create a new partition, /dev/hdb9 which will be /data.

I understand I can use parted to do the resize. My worry is that /dev/hdb2 is a primary partition and the leftover space I have is outside the range of the logical partions.I already have 4 primary partitions.
How can I make this new partition be part of the extended area?
Or can I change the starting point of the extended area with a 'resize' so that it corresponds to the start of /dev/hdb3 (/) , convert /dev/hdb3 to logical and then make /dev/hdb9 primary?

Thanks

D.
 
Old 04-27-2006, 10:48 PM   #2
leftPeg
LQ Newbie
 
Registered: Jan 2006
Posts: 19

Original Poster
Rep: Reputation: 0
Looking at it again I see I have some unused space in the extended partition.
Can I make a new logical partition, /dev/hdb9 say, using that space, move the contents of /dev/hdb3 into this new partition, delete /dev/hdb3, resize hdb2, and then move the start of extended to the new end point of /dev/hdb2, and then create a new partition from the new start point of extended ending up with the following?


Code:
Minor    Start       End     Type      Filesystem  Flags
1          0.031    101.975  primary   ext3        boot
2        101.975  25000.000  primary   ext3
4      25000.000 176699.311  extended              lba
3      25001.000 127076.660  logical               
5     127076.691 141196.289  logical   ext3
6     141196.320 149040.527  logical   ext3
7     149040.558 156884.765  logical   ext3
8     156884.796 157402.485  logical   linux-swap
9     157403.000 176699.311  logical
Does the fact that/dev/hdb3 corresponds to "/" in the filesystem limit me in anyway?

D.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Primary or Logical partition ? infernal Linux - Software 7 10-28-2015 10:50 AM
logical partition to a primary one britcoms9 Linux - Newbie 4 01-20-2008 07:46 PM
Partition Problems: Bad primary partition 1: logical partitions overlap rovitotv Slackware 6 01-08-2006 07:55 PM
Primary, Logical or Extended partition? mrpc_cambodia Linux - General 3 09-13-2004 12:10 AM
logical or primary partition Socrates Linux - Software 1 02-25-2001 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration