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
 
Search this Thread
Old 10-14-2008, 01:21 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,674

Rep: Reputation: Disabled
Tool to change partition from primary to extended without prior deleting?


Reason: Solaris mangled the partition table, the old extended partition is now of the type 1f (unknown type) and fdisk refuses to change that back without deleting. Or do I dare deleting and re-creating the old partition scheme by hand, hoping all will be well then?
 
Old 10-14-2008, 01:22 AM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
run the command fdisk -l and post the results here.
 
Old 10-14-2008, 01:26 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,674

Original Poster
Rep: Reputation: Disabled
Right now I'm not in front of the crash victim. From memory it looks now like this: (I changed /dev/hda1 back to linux, /dev/hda2 stayed solaris and I changed /dev/hda3 back to FreeBSD)
Code:
...
/dev/hda4    1f     (unknown)
Extended partitions up to and including /dev/hda9 are gone, of course.
 
Old 10-14-2008, 01:35 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,352

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
testdisk is very good for this sort of thing. I might be inclined to delete the problem partition and run testdisk, and let it sort out what's what. There can be issues if you have deleted other partitions yourself at some time. You'll have to decide what is valid.
 
Old 10-16-2008, 11:03 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,674

Original Poster
Rep: Reputation: Disabled
Thanks syg00, that's what I would have done, if my simpler scheme would not have worked: http://www.linuxquestions.org/questi...5/#post3312333

Still, is there a tool out there which can change a primary into an extended partition and vice versa?

jiml8 you complain in the other thread that I didn't answer your suggestion in post #2, but honestly what more could I post? The information from the relevant partition is rendered in "pseudo" code and the rest explained in the text. Exactly what more is in the direct output of fdisk, what I overlooked to mention? Again I'm not home yet, if it's of use I'll try to do it at the weekend.
 
Old 10-16-2008, 04:43 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,352

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Personally I would have thought testdisk was quicker/simpler, but it matters not if you have rectified the situation.
Solaris is a problem child when introduced into a (Linux) multiboot environment - simple as that. Real care needs to be taken - in advance.

As for partitions, an extended is a (form of) primary partition. However, because it is basically a container for (multiple, chained) logical partition(s), the internal structure is significantly different to a single primary partition. Hence you can't simply just change one to the other.
Need I add that backups are always a good idea when screwing around with partitions ???.
 
Old 10-17-2008, 01:17 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,674

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
...Solaris is a problem child when introduced into a (Linux) multiboot environment - simple as that. Real care needs to be taken - in advance.
Hm. How? What needs to be done? Do you have a link to an explanation?

Quote:
Originally Posted by syg00 View Post
... As for partitions, an extended is a (form of) primary partition. However, because it is basically a container for (multiple, chained) logical partition(s), the internal structure is significantly different to a single primary partition. Hence you can't simply just change one to the other.
Okay, not from extended to primary without loss of the secondary partitions, understood. But if you know that and maybe get a warning message if you still want to proceed...

What I don't understand is why one can't change primary into extended on the fly. I mean as far as I understand the data in the partition table just get a different meaning, but what the heck, I'm no expert (obviously ).

Quote:
Originally Posted by syg00 View Post
... Need I add that backups are always a good idea when screwing around with partitions ???
Hrhrhr. I wouldn't have lost anything out of /home, just a lot of work pertaining to the setup of my box.

Last edited by JZL240I-U; 10-17-2008 at 01:19 AM.
 
Old 10-17-2008, 06:02 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,352

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
Not sure there's a link that has all the issues - but it's well documented in bits and pieces.
- you need a primary partition (for Solaris)
- you can't retain your current boot-loader (mmmmm - it had better not be in a logical either methinks)
- you'd better not have more than one swap partition on the disk
...

Been a while since I bothered - I only install it as a virtual guest now. That way it thinks it is the only kid in town, and doesn't screw all my other systems. And when I decide to get rid of it, it's a simple process.
 
Old 10-20-2008, 01:31 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,674

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
...
- you need a primary partition (for Solaris)
Done.

Quote:
Originally Posted by syg00 View Post
...
- you can't retain your current boot-loader (mmmmm - it had better not be in a logical either methinks)
Nope. You have to hide everything in GRUB's menu.lst i.e. hide (0,0) up to and including hide (0,3). This means the solaris partition as well. Then you boot it.

Quote:
Originally Posted by syg00 View Post
...
- you'd better not have more than one swap partition on the disk
...
Didn't try, I just have one large one.

Quote:
Originally Posted by syg00 View Post
... Been a while since I bothered - I only install it as a virtual guest now. That way it thinks it is the only kid in town, and doesn't screw all my other systems. And when I decide to get rid of it, it's a simple process.
I installed it to learn. And I use my old 700 Mhz Athlon, no virtual solutions possible there...
 
Old 10-20-2008, 01:41 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,674

Original Poster
Rep: Reputation: Disabled
@ jiml8 Okay, here it comes:

Code:
Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00041d0d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          62      497983+  83  Linux
/dev/sda2              63        1308    10008495   bf  Solaris
/dev/sda3            1309        3267    15735667+  a5  FreeBSD
/dev/sda4            3268       30515   218869560   1f  unknown
 
  


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
[SOLVED] Safety: Primary Partition and Extended (Logical) Partition MBA Whore Linux - Security 11 01-03-2007 02:05 PM
Primary or Extended Partition ? Christof999 Linux - General 4 07-02-2006 12:05 PM
Is it possible to convert primary partition into extended? foxy123 Linux - General 4 11-03-2005 05:19 AM
Primary, Logical or Extended partition? mrpc_cambodia Linux - General 3 09-12-2004 11:10 PM
Primary vs extended partition installation Cisco Shaolin Linux - Newbie 1 04-13-2003 08:34 AM


All times are GMT -5. The time now is 10:56 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