The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to merge solaris partition mansoorulhaq UNIX for Advanced & Expert Users 7 10-03-2007 01:54 AM
how to create new partition in Linux useless79 Linux 1 07-25-2007 02:09 AM
How To Create Partition In Fc5 mani_um Filesystems, Disks and Memory 1 06-11-2007 08:25 PM
[help] create partition for /data bucci SUN Solaris 2 10-08-2006 10:21 PM
re-partition disks on solaris Bashar Filesystems, Disks and Memory 2 05-21-2003 02:26 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-23-2006
Registered User
 

Join Date: Dec 2005
Posts: 65
Can i create pcfs partition using sun solaris 10 ?

Can i use the sun solaris 10 to create Fat32 partition ? and i have another question im so confused between format command an fdisk within it, and mkfs and newfs, well what i got is that i have to use format to create partition physcially in my hard disk then i have to use mkfs or newfs (which is a link to mkfs) i have to use it to format the partition with the file system which i want but again why the size ?!, well lets assume that i have a brand new harddisk and i attached it in my sun solaris box, now i want to make it two slices one FAT 32 and the other one is UFS what i have to do, step by step.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-23-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
For FAT32 - from Sunsolve:
Quote:
# fdisk /dev/rdsk/c5t0d0s2

SELECT ONE OF THE FOLLOWING:

1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Exit (update disk configuration and exit)
5. Cancel (exit without updating disk configuration)
Enter Selection: 1

SELECT ONE OF THE FOLLOWING:

1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Exit (update disk configuration and exit)
5. Cancel (exit without updating disk configuration)
Select the partition type to create:
1=SOLARIS 2=UNIX 3=PCIXOS 4=Other
5=DOS12 6=DOS16 7=DOSEXT 8=DOSBIG
9=DOS16LBA A=x86 Boot B=Diagnostic C=FAT32
D=FAT32LBA E=DOSEXTLBA 0=Exit? D or C <-- D or C is valid

SELECT ONE OF THE FOLLOWING:

1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Exit (update disk configuration and exit)
5. Cancel (exit without updating disk configuration)
Select the partition type to create:
Specify the percentage of disk to use for this partition
(or type "c" to specify the size in cylinders). 100 <-- percentage

SELECT ONE OF THE FOLLOWING:

1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Exit (update disk configuration and exit)
5. Cancel (exit without updating disk configuration)
Select the partition type to create:
Should this become the active partition? If yes, it will be activated
each time the computer is reset or turned on.
Please type "y" or "n". y

SELECT ONE OF THE FOLLOWING:

1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Exit (update disk configuration and exit)
5. Cancel (exit without updating disk configuration)
Enter Selection: 4

#

This is what it would look like if you reran fdisk.

Cylinders
Partition Status Type Start End Length
%
========= ====== ============ ===== === ====== ===
1 Active Win95 FAT32 1 30400 30400 100

Partition 1 is now the active partition.

4.) At this point you need to create the FAT32 file system.

# mkfs -F pcfs -o fat=32 /dev/rdsk/c5t0d0s2:c
Construct a new FAT file system on /dev/rdsk/c5t0d0s2:c: (y/n)? y

Depending on the disk it could take anywhere from a 1min to 15.
250GB took about 15min
#

5.) Mount the drive.

# mount -F pcfs /dev/dsk/c5t0d0s2:c /mnt
#
# ls -ld /mnt
drwxrwxrwx 1 root other 4096 Dec 31 1969 /mnt
# cp /etc/release /mnt
# ls /mnt
release
#
# cat /mnt/release
Solaris 8 2/04 s28s_hw4wos_05a SPARC
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
Assembled 08 January 2004
#
And to create a UFS filesystem out of free non-partitioned space (this isn't the normal procedure)
Quote:
A single hard disk should contain only one active Solaris partition. However, it is possible to convert non partitioned disk space on the same hard disk for use with Solaris x86. Use the following procedure at your own risk. This is not guaranteed to work on all systems.
Document Body Top

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 x86.

However, it is possible to create UNIX file systems on other fdisk partitions that are mountable by Solaris 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 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).
Reply With Quote
  #3 (permalink)  
Old 03-23-2006
Registered User
 

Join Date: Dec 2005
Posts: 65
Thanks so much RTM you are always helpful, but as i thought there is something defferent with Solaris X86.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0