You are on page 1of 11

3/3/2011 Can I use a second solaris fdisk partitio…

Gmail Calendar Documents Photos Reader Web more ▼ Help | Sign in

« Groups Home

comp.unix.solaris solaris newfs Can not determine Search


partitionthis
size:
group
Invalid Search
argument
Groups

Can I use a second solaris fdisk partition? Options Discussions


+ new post
16 messages - Collapse all
Andreas Schulz View profile More options Dec 3 2000, 8:52 am About this group
Hi all, Subscribe to this group

I have solaris 8 installed on my PC. To be exact on my 16 MB harddisk This is a Usenet group - learn more
on which I created a 8MB Solaris partition with Solaris fdisk.
Then I create normal unix partition on this 8Mb partition and install View this group in the new
Solaris. Google Groups
Now I create a second Solaris partition on this harddisk with fdisk.
But how could I use this partition under Solaris? Sponsored links
There are no devices for this second partition.
Reseller Hosting Rs4999yr
Is it unchangable, if I first don't use the whole harddisk for Solaris Unlimited C-panels,Unlimited Space
and later want to add a new fdisk partition? Free Demo,Free setup, 24/7Support
www.webpagehosting.in
Please help me with some hints!
Learn embedded linux $219
Thanks in advance, Hands-on kit teaches fundamentals
of embedded Linux development
Bye www.IntelliMetrix.us
Andreas
See your message here...

Andrew Gabriel View profile More options Dec 3 2000, 1:00 pm

In article <90cg1d$m8h...@id-63303.news.dfncis.de>,
fr...@localhost.eng.sun.com (Andreas Schulz) writes:

>Hi all,

>I have solaris 8 installed on my PC. To be exact on my 16 MB harddisk


>on which I created a 8MB Solaris partition with Solaris fdisk.
>Then I create normal unix partition on this 8Mb partition and install
>Solaris.
>Now I create a second Solaris partition on this harddisk with fdisk.
>But how could I use this partition under Solaris?
>There are no devices for this second partition.

>Is it unchangable, if I first don't use the whole harddisk for Solaris
>and later want to add a new fdisk partition?

You can only have a single Solaris fdisk partition per disk.
Actually, this is part of the original PC spec - only a single
fdisk partition of any one type is allowed. Consequently,
Solaris (and any SysV/386 conforming unix) doesn't provide
access to more than one fdisk partition (for unix filesystems
anyway).

There is a hack you can do to make other primary fdisk


…google.com/…/1f974059c14784cb?ln… 1/11
3/3/2011 Can I use a second solaris fdisk partitio…
There is a hack you can do to make other primary fdisk
partitions into single ufs filesystems, but it's a bit fiddly.
I've posted details a few times before - search deja.com if
you want to look up this.

--
Andrew Gabriel
Consultant Software Engineer

Philip Brown View profile More options Dec 3 2000, 1:00 pm

On 3 Dec 2000 10:47:04 GMT, and...@cucumber.demon.co.uk wrote:

>...
>There is a hack you can do to make other primary fdisk
>partitions into single ufs filesystems, but it's a bit fiddly.

what fiddly? I thought it was as simple as just using the raw


fdisk partition.

EG: if your solaris partition is fdisk partition 1, and you want to use
extra space in fdisk partition 2, you would use

newfs /dev/rdsk/c0d0f2
mount /dev/dsk/c0d0f2 /mnt

--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
S.1618 http://thomas.loc.gov/cgi-bin/bdquery/z?d105:SN01618:@@@D
The word of the day is mispergitude

Andrew Gabriel View profile More options Dec 3 2000, 1:00 pm

In article <slrn92l7v9.9q4.phil...@shell3.ba.best.com>,
phil...@bolthole.no-bots.com (Philip Brown) writes:

>On 3 Dec 2000 10:47:04 GMT, and...@cucumber.demon.co.uk wrote:


>>...
>>There is a hack you can do to make other primary fdisk
>>partitions into single ufs filesystems, but it's a bit fiddly.

>what fiddly? I thought it was as simple as just using the raw


>fdisk partition.

>EG: if your solaris partition is fdisk partition 1, and you want to use
>extra space in fdisk partition 2, you would use

>newfs /dev/rdsk/c0d0f2
>mount /dev/dsk/c0d0f2 /mnt

That just gets you some message like "No VTOC" (assuming you use
the correct device node names). Search back on deja.com for the
full method.

--
Andrew Gabriel
Consultant Software Engineer
…google.com/…/1f974059c14784cb?ln… 2/11
3/3/2011 Can I use a second solaris fdisk partitio…
Consultant Software Engineer

Philip Brown View profile More options Dec 3 2000, 1:00 pm

On 3 Dec 2000 20:47:31 GMT, and...@cucumber.demon.co.uk wrote:

>In article <slrn92l7v9.9q4.phil...@shell3.ba.best.com>,


> phil...@bolthole.no-bots.com (Philip Brown) writes:
>>what fiddly? I thought it was as simple as just using the raw
>>fdisk partition.

>>EG: if your solaris partition is fdisk partition 1, and you want to use
>>extra space in fdisk partition 2, you would use

>>newfs /dev/rdsk/c0d0f2
>>mount /dev/dsk/c0d0f2 /mnt

>That just gets you some message like "No VTOC" (assuming you use
>the correct device node names).

how odd. If having a vtoc is a requirement, I wonder how


lofi works.

--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
S.1618 http://thomas.loc.gov/cgi-bin/bdquery/z?d105:SN01618:@@@D
The word of the day is mispergitude

Andy View profile More options Dec 4 2000, 6:39 am

In article <90cg1d$m8h...@ID-63303.news.dfncis.de>, andr...@schulz-


live.de wrote:
>Hi all,

>I have solaris 8 installed on my PC. To be exact on my 16 MB harddisk


>on which I created a 8MB Solaris partition with Solaris fdisk.
>Then I create normal unix partition on this 8Mb partition and install

8MB! Wow! What kind of file compression are you using?


:)

Yousuf Khan View profile More options Dec 4 2000, 10:50 am

In article <90cg1d$m8h...@ID-63303.news.dfncis.de>,

andr...@schulz-live.de wrote:
> Hi all,

> I have solaris 8 installed on my PC. To be exact on my 16 MB harddisk


> on which I created a 8MB Solaris partition with Solaris fdisk.
…google.com/…/1f974059c14784cb?ln… 3/11
3/3/2011 Can I use a second solaris fdisk partitio…
> on which I created a 8MB Solaris partition with Solaris fdisk.
> Then I create normal unix partition on this 8Mb partition and install
> Solaris.
> Now I create a second Solaris partition on this harddisk with fdisk.
> But how could I use this partition under Solaris?
> There are no devices for this second partition.

I'll assume all of those references to "MB" actually mean "GB".

Have you tried rescanning the device tree, especially the disk device
tree? That's usually done with a "touch /reconfigure" followed by a
system reboot. Or if you don't want to reboot, you can try the
following two commands:

drvconfig
disks

These two commands executed one after the other will rescan the device
tree for you.

Yousuf Khan

Sent via Deja.com http://www.deja.com/


Before you buy.

Yousuf Khan View profile More options Dec 4 2000, 11:00 am

In article <90cg1d$m8h...@ID-63303.news.dfncis.de>,

andr...@schulz-live.de wrote:
> Is it unchangable, if I first don't use the whole harddisk for Solaris
> and later want to add a new fdisk partition?

Actually, after posting my last message to you, I went on Sunsolve and


found the following Infodoc 13142.

http://sunsolve.sun.com/private-cgi/retrieve.pl?doc=infodoc%
2F13142&zone_32=x86%20fdisk

Here's the text of the Infodoc:


-------------------------------

A single hard disk should contain only one active Solaris partition.
However,
it is possible to convert unpartitioned disk space on the same hard disk
for use with Solaris 2.x x86. Use the following procedure at your own
risk.
This is not guaranteed to work on all systems.

Instructions for making additional Unix file systems


----------------------------------------------------

You can have up to 4 fdisk partitions per hard drive, but only
one can be used for Solaris 2.x x86.

However, it is possible to create unix file systems on other fdisk


partitions that are mountable by Solaris 2.x x86. These partitions
cannot be subdivided into slices the way the main Solaris partition
is. You can have only one filesystem on each additional
fdisk partition.
WARNING: USE THIS PROCEDURE AT YOUR OWN RISK. IT IS NOT
…google.com/…/1f974059c14784cb?ln… 4/11
3/3/2011 Can I use a second solaris fdisk partitio…
WARNING: USE THIS PROCEDURE AT YOUR OWN RISK. IT IS NOT
OFFICIALLY
TESTED OR DOCUMENTED. IF THERE IS AN ERROR IN YOUR
CALCULATIONS YOU
COULD INADVERTENTLY DESTROY ADJACENT FDISK PARTITIONS.

fdisk /dev/rdsk/c#t#d#p0 (for a SCSI drive)


or
fdisk /dev/rdsk/c#d#p0 (for an IDE drive)

(where # is filled in for the device you are using)

Create a new partition of type "OTHER". Get the length from the length
field for this new partition. The following example uses partition #3
for Solaris 2.x x86 with a length of 515 cylinders.

-Take note of the cylinder size. The line for this info is worded:

"Cylinder size is 896 (512 byte) blocks"

-Now multiply the fdisk length (515) and cylinder size (896).

896 * 515 = 461440 bytes

-Create UNIX ufs filesystem on new partition

mkfs -F ufs /dev/rdsk/c#t#d#p3 461440 (for a SCSI drive)


or
mkfs -F ufs /dev/rdsk/c#d#p3 461440 (for an IDE drive)
^
|
Change this to whatever partition number is used.

Now you have a UFS file system that you can mount at /dev/dsk/c#t#d#p3
(for a SCSI drive) or /dev/dsk/c#d#p3 (for an IDE drive)

Sent via Deja.com http://www.deja.com/


Before you buy.

Philip Brown View profile More options Dec 4 2000, 1:00 pm

On Mon, 04 Dec 2000 05:48:22 GMT, yk...@my-deja.com wrote:


>...
> -Create UNIX ufs filesystem on new partition

>mkfs -F ufs /dev/rdsk/c#t#d#p3 461440 (for a SCSI drive)


>or
>mkfs -F ufs /dev/rdsk/c#d#p3 461440 (for an IDE drive)

Huh. So the only special preceedure needed is to look up the size of the
slice, in bytes.

How lazy of the person who wrote newfs for intel, considering that
ioctl( DKIOCPARTINFO) work just fine on c#d#p# devices .

Too bad that solaris fdisk doesnt bother to report size in blocks, instead
of just idiotic cylinders.

Oh.

I guess this is a good time to share my read-only version of fdisk, if you


…google.com/…/1f974059c14784cb?ln… 5/11
3/3/2011 Can I use a second solaris fdisk partitio…
I guess this is a good time to share my read-only version of fdisk, if you
want a quick-n-easy way of viewing this sort of thing under solaris, without
rebooting :-)

Output looks like the following:

# fdisk /dev/dsk/c0d0p0 (works on dsk OR rdsk)


Fdisk information for device /dev/dsk/c0d0p0
# start block end block startCylSecHd endCylSecHd OSType
1: 0000000063 0000112392 0/ 1/ 1 6/3f/fe DOS(HUGE)
2: 0000112455 0000208845 7/ 1/ 0 13/3f/fe DOS(Extended)
3: 0000321300 0001959930 14/ 1/ 0 8d/3f/fe LINUX Native
4: 0002281230 0000578340 8e/ 1/ 0 b1/3f/fe SOLARIS (/linuxswap)

http://www.bolthole.com/solaris/x86.html

has links to "getfdisk.c" and "getvtoc.c"

remember, 1 block always==512 bytes.

--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
S.1618 http://thomas.loc.gov/cgi-bin/bdquery/z?d105:SN01618:@@@D
The word of the day is mispergitude

Mike Sullivan View profile More options Dec 4 2000, 1:00 pm

In <slrn92le8k.g51.phil...@shell3.ba.best.com> phil...@bolthole.no-
bots.com (Philip Brown) writes:

- Show quoted text -

By faking one up. newfs doesn't care much, but it does want the vtoc
ioctl's to succeed.

Mike

Philip Brown View profile More options Dec 4 2000, 1:00 pm

On 4 Dec 2000 21:19:06 GMT, mik...@yavin.Sun.COM wrote:

>...
>>how odd. If having a vtoc is a requirement, I wonder how
>>lofi works.

>By faking one up. newfs doesn't care much, but it does want the vtoc
>ioctl's to succeed.

the better solution would have been to fix newfs, instead of hacking the
lofi driver.

--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
S.1618 http://thomas.loc.gov/cgi-bin/bdquery/z?d105:SN01618:@@@D
The word of the day is mispergitude

…google.com/…/1f974059c14784cb?ln… 6/11
3/3/2011 Can I use a second solaris fdisk partitio…

Mike Sullivan View profile More options Dec 5 2000, 6:22 am

In <slrn92o80f.ni5.phil...@shell3.ba.best.com> phil...@bolthole.no-
bots.com (Philip Brown) writes:

>On 4 Dec 2000 21:19:06 GMT, mik...@yavin.Sun.COM wrote:


>>...
>>>how odd. If having a vtoc is a requirement, I wonder how
>>>lofi works.

>>By faking one up. newfs doesn't care much, but it does want the vtoc
>>ioctl's to succeed.
>the better solution would have been to fix newfs, instead of hacking the
>lofi driver.

Well, I should rephrase then. newfs wants to use the vtoc ioctls
so that it can figure out what parameters to give to mkfs. So it
needs some idea of the geometry of the "disk". For lofi, the exact
numbers don't matter much, so they just have to be right enough that
newfs works.

Mike

Philip Brown View profile More options Dec 5 2000, 6:47 am

On 5 Dec 2000 01:11:17 GMT, mik...@yavin.Sun.COM wrote:

>In <slrn92o80f.ni5.phil...@shell3.ba.best.com> phil...@bolthole.no-


bots.com (Philip Brown) writes:

>>the better solution would have been to fix newfs, instead of hacking the
>>lofi driver.

>Well, I should rephrase then. newfs wants to use the vtoc ioctls
>so that it can figure out what parameters to give to mkfs. So it
>needs some idea of the geometry of the "disk". For lofi, the exact
>numbers don't matter much, so they just have to be right enough that
>newfs works.

That doesnt change the brokenness of newfs.


In fact, you just pointed out that it doesnt really matter what values
newfs is fed, because lofi fakes em, and it works.

So it would be nice if newfs just made something up, if the ioctl on


geometry wasn't available.

The irony is, the DKIOCGEOM ioctl IS AVAILABLE for c0d0p[01234], for
"geometry". and DKIOCPARTINFO can be used to get the size of the
partition.
So there's no rational reason why newfs shouldn't support it natively.
It just doesn't right now.
Someone at sun should fix it. It should be trivial.

--
[Trim the no-bots from my address to reply to me by email!]

[ Do NOT email-CC me on posts. Pick one or the other.]


…google.com/…/1f974059c14784cb?ln… 7/11
3/3/2011 Can I use a second solaris fdisk partitio…
[ Do NOT email-CC me on posts. Pick one or the other.]
S.1618 http://thomas.loc.gov/cgi-bin/bdquery/z?d105:SN01618:@@@D
The word of the day is mispergitude

a_schulz View profile More options Dec 5 2000, 12:30 pm

Hi all,

I will try this out.


Thanks.

Bye
Andreas

PS: Of course all MBs should be GBs!

In article <90fb75$8o...@nnrp1.deja.com>,
Yousuf Khan <yk...@my-deja.com> wrote:

> In article <90cg1d$m8h8$1@ID-

63303.news.dfncis.de>,
> andr...@schulz-live.de wrote:
> > Is it unchangable, if I first don't use the

whole harddisk for Solaris


> > and later want to add a new fdisk partition?

> Actually, after posting my last message to you,

I went on Sunsolve and


> found the following Infodoc 13142.

> http://sunsolve.sun.com/private-cgi/retrieve.pl?
doc=infodoc%
> 2F13142&zone_32=x86%20fdisk

> Here's the text of the Infodoc:


> -------------------------------

> A single hard disk should contain only one

active Solaris partition.


> However,
> it is possible to convert unpartitioned disk

space on the same hard disk


> for use with Solaris 2.x x86. Use the following

procedure at your own


> risk.
> This is not guaranteed to work on all systems.

> Instructions for making additional Unix file


systems
> ------------------------------------------------
----

> You can have up to 4 fdisk partitions per hard


drive, but only
…google.com/…/1f974059c14784cb?ln… 8/11
3/3/2011 Can I use a second solaris fdisk partitio…
drive, but only
> one can be used for Solaris 2.x x86.

> However, it is possible to create unix file

systems on other fdisk


> partitions that are mountable by Solaris 2.x

x86. These partitions


> cannot be subdivided into slices the way the

main Solaris partition


> is. You can have only one filesystem on each
additional
> fdisk partition.

> WARNING: USE THIS PROCEDURE AT YOUR OWN RISK.

IT IS NOT OFFICIALLY
> TESTED OR DOCUMENTED. IF THERE IS AN ERROR IN

YOUR CALCULATIONS YOU


> COULD INADVERTENTLY DESTROY ADJACENT FDISK
PARTITIONS.

> fdisk /dev/rdsk/c#t#d#p0 (for a SCSI drive)


> or
> fdisk /dev/rdsk/c#d#p0 (for an IDE drive)

> (where # is filled in for the device you are


using)

> Create a new partition of type "OTHER". Get the

length from the length


> field for this new partition. The following

example uses partition #3


> for Solaris 2.x x86 with a length of 515
cylinders.

> -Take note of the cylinder size. The line for

this info is worded:

> "Cylinder size is 896 (512 byte) blocks"

> -Now multiply the fdisk length (515) and

cylinder size (896).

- Show quoted text -

mount at /dev/dsk/c#t#d#p3

> (for a SCSI drive) or /dev/dsk/c#d#p3 (for an


IDE drive)

> Sent via Deja.com http://www.deja.com/

> Before you buy.


…google.com/…/1f974059c14784cb?ln… 9/11
3/3/2011 Can I use a second solaris fdisk partitio…
> Before you buy.

Sent via Deja.com http://www.deja.com/


Before you buy.

an_schulz View profile More options Dec 5 2000, 1:00 pm

Hi all,

So I try it out.
The length of the partition is 14902 with 1008 cylinders.
So I do the following comand and get the error:

# mkfs -F ufs /dev/rdsk/c0d1p3 15021216


Can not determine partition size: Invalid argument

Does anybody know, what I should do now?

Bye
Andreas

In article <90fb75$8o...@nnrp1.deja.com>,
Yousuf Khan <yk...@my-deja.com> wrote:

- Show quoted text -

Sent via Deja.com http://www.deja.com/


Before you buy.

Andrew Gabriel View profile More options Dec 5 2000, 1:00 pm

In article <90jna0$q8...@nnrp1.deja.com>,
an_sch...@gmx.de writes:

>Hi all,

>So I try it out.


>The length of the partition is 14902 with 1008 cylinders.
>So I do the following comand and get the error:

># mkfs -F ufs /dev/rdsk/c0d1p3 15021216


>Can not determine partition size: Invalid argument

What does this report...

fdisk -W /dev/fd/1 /dev/rdsk/c0d1p0

--
Andrew Gabriel And...@cucumber.demon.co.uk
Consultant Software Engineer

End of messages

« Back to Discussions « Newer topic Older topic »

…google.com/…/1f974059c14784cb?ln… 10/11
3/3/2011 Can I use a second solaris fdisk partitio…

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2011 Google

…google.com/…/1f974059c14784cb?ln… 11/11

You might also like