LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-15-2005, 06:27 AM   #31
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113

Whatever your Partition Commander is doing it doesn't seem to me that it is "commanding" as the partitions seen by Solaris no way representative of your orginal scheme.

Yes I think Solaris has picked out the Swap thinking it might be a data partition. For partitioning work I would go with the cfdisk program in Linux, which is obtainable from any Live CD. Remember you have to reboot to allow the partition table to become permanent. It is mandatory for Dos partitions but does no harm in all type of partitions. You can write partition type "bf" for Solaris as it will recognise that is its residence without any assistance.

I am not going to diagnose the difference between your original partitioning scheme with the final one reported by Solaris as so many things might have go wrong. If c0d1s0 or hdb1 was your original partition then you should only go ahead with the Solaris installtion if is everything agrees. As things stand your Solaris isn't even in the biggest partition as orginally intended.
 
Old 12-15-2005, 06:59 AM   #32
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
For partitioning work I would go with the cfdisk program in Linux, which is obtainable from any Live CD.
Does that mean I have to prtition second HD (HD2, where I am planning to put both Solaris and Linux ) by using this utility, or I have to partition HD1 (Where both Windows OSs reside)as well ?



Quote:
File System and Disk Layout
Current Disk Partition Information

Part#-----Type------Status-----------Type------------Length
1-------------------EXT_WIN--------30732345----------10233405
2-------------------LINUX Nat------40965750----------1028160
3-------------------LINUX Nat------41993910----------36162315
4---------Active----SOLARIS2-------63----------------30732282
Please select the partition you wish to boot:
My understanding to what you said, that this table stuffed up (you could not dignose it) because I have used partition commander utility ?


Quote:
As things stand your Solaris isn't even in the biggest partition as orginally intended.
Quote:
Solaris do need about 15Gb minimum I would have thought
 
Old 12-15-2005, 08:13 AM   #33
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I do not use Partition Commander as Linux's own cfdisk and fdisk are excellent internal tools available in every Bash shell. You have to watch out for the Red Hat family and its variants which in place of cfdisk they have sfdisk instead. Haven't seen a Linux that haven't got fdisk yet. In Linux

fdisk -l

will list every partition of every disk in your box. That is a definitively information that never fails me. I would use either cfdisk or fdisk to get an "informed" opinion of your 2nd hard disk even if I do not re-partition it. For my money I would repartition the 2nd disk to the original scheme or any schem that I decide.

I learn my partitioning mainly through these two programs because you can see illegal actions being denied and any potential problem will be alerted.

Solaris has not touched your first disk and I don't think I would worry about it if the information shows up no error in cfdisk and fdisk. These are two different programs and both opinions count. The cfdisk will abandon your disk sooner if there are serious troubles but fdisk hangs on a little bit longer to enable you to use it. By the time both programs refuse to know your disk then it should be in a very serious state

Just last night I tried to install a distro and had no idea of its behaviour during installion. By the time I noticed it was formatting the 3rd partition I stopped the installation process. Then I realised the partition table of the 60 partitions has been destroyed. I re-build the 60 partitions with cfdisk. The accidentally formatted 3 areas covered only my 1Gb and so I assumed my first hda1 Dos partition has been hosed. The checking of the working hda2, hda9 and hda60 would suggest I have recovered 50 partitions back using the cfdisk program. Took 15 minutes ending up with a set of numb fingers hitting the same set of key sequences 60 times.

I do regards the cfdisk and fdisk of the Linux to be execellent tools and have succesfully used cfdisk to get over 200 partitions out of a hard disk, even though Linux only supports a maximum of 63 partition in an IDE disk (by hiding the extended partition after it is fully populated with logical partitions then proceed to create the next extended partition).

Last edited by saikee; 12-15-2005 at 08:18 AM.
 
Old 12-17-2005, 02:18 PM   #34
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
I just want to do test, I used Knoppix (Live CD V4.0.2) "cfdisk" utility to create 3 primary partitions on a 40 GB HD, there primary partitions are:

1- 15 GB NTFS

2- 5 GB FAT32

3- 20 GB NTFS

I did write (Knoppix option), and I restarted the PC.

When I booted the PC with XP CD (to install OS XP )..

XP did not recongnize the format of all there partitions,,,,Why?

I do not if it is related to knoppix, or XP CD ?
 
Old 12-17-2005, 07:33 PM   #35
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
A system can only recognise a partition for data storage if

(1) It has been properly partitioned, as in your case

(2) It has been formatted. This is the bit you missed out!

Linux doesn't write on a NTFS partition and I am not sure if the captive NTFS of Knoppix can do it or not. I didn't find it reliable.

However if you format the second partition in Knoppix with "mkdosfs -F32" I expect XP to read it.

Does this make sense to you?

The way you did it I would say XP's disk management can see them but can't assign the drive letters until each partition has been formatted by XP.
 
Old 12-18-2005, 01:02 AM   #36
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
This is the bit you missed out!
Yes it is missing.


What will the case be if I create partitions "Type"
a- Solaris (BF)
b- Linux swap (83)
c- Linux ext3 (82)
----
---
---
---
do I need to format them in order to be recognized by Solaris OS or Linux OS ?


Quote:
The way you did it I would say XP's disk management can see them but can't assign the drive letters until each partition has been formatted by XP.
Yes it does,,,I tried it before I posted my thread.
 
Old 12-18-2005, 03:19 AM   #37
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You indeed need to format, or better said newfs, these partitions for being able to mount them.

You do not state what you mean by "to be recognized by".
 
Old 12-18-2005, 03:47 AM   #38
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
You indeed need to format, or better said newfs
How can I format,,do you mean when linux offers me to format or by using Knoppix?

Quote:
You do not state what you mean by "to be recognized by".
What I meant by this:

1- I created 3 partitions of "Type" (0C for NTFS, 70,,,I do not remember the right Hexadecimal number) by using "cfdisk" (Knoppix CD)utility.

2- I restarted PC by using XP CD (not Knoppix),,,XP CD was telling me that these partitions of type "unknown" .

A- my query is: if I created the same thing but different "Type" (i.e BF or 83 or 83 I do not remember the right Hexadecimal number),,,as you know these type for Solaris, Linux swap or Linux ext3.

B- If I restart PC by using Linux CD1 or Solaris CD1,,,do the same thing (unknown) as XP will happen to me ?

Last edited by zillah; 12-18-2005 at 03:53 AM.
 
Old 12-18-2005, 04:38 AM   #39
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You seem to not understand the difference between subdivising the disk into areas (partitioning), and creating a structure able to hold files and directories (newfs, mkfs or equivalent depending on the O/S).

Having the right partition ID doesn't implies that partition is usable by an O/S.
 
Old 12-18-2005, 04:45 AM   #40
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
(A) Type bf, 83 and 82 are for SOlaris, Linux and swap respectively

(B) The idea of having the partitions formed in advance is to have a firm idea of how the the different areas of the disk is to be used. The installer can then know about the choices and ask you to make the decision. The installers do known about the types.

XP will only recognise a "formatted" partition. The type isn't much of use to it. Type 7 is NTFS partition but adding a digit "1" in front, to become type 17, can make XP refuse to read its own partition. Indeed many non-MS operating systems are using this feature to play tunes with different MS systems on the box by hiding and unhiding its partitions for different purpose. You may see it as a confusion by it is a pretty good weapon for me to run 3 Dos and 4 Windows in the box.
 
Old 12-18-2005, 01:09 PM   #41
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
Having the right partition ID doesn't implies that partition is usable by an O/S.
My confusion was I was believing that choosing the option "write" availabe with 'cfdisk' utility will doing the job of format.


Quote:
You seem to not understand the difference between subdivising the disk into areas (partitioning), and creating a structure able to hold files and directories (newfs, mkfs or equivalent depending on the O/S).
My answer will be above.
 
Old 12-18-2005, 07:34 PM   #42
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
When you partition a hard disk you are altering the entries in the partition table and there are only 16 bytes to play around with per partition. The work content is nowhere near to say formatting a 20Gb of hard disk area by arranging booking keeping for all the blocks and clusters.
 
  


Reply



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
Two Hard Disks on IBM Desktop and 4 OSs zillah Fedora 3 12-09-2005 05:52 AM
How to get hard disks onto desktop fullofhope Linux - Hardware 1 01-20-2005 07:52 AM
How many Hard disks ? BizHat.com Linux - Software 5 01-18-2005 07:38 PM
2 Hard Disks and 2 OS? How to? nbn792 Linux - General 5 12-26-2003 07:20 PM
IBM ESS Shark SAN disks, how to add without rebooting? tells Linux - Hardware 1 12-06-2003 10:24 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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