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.
RTM
March 23, 2006, 9:07am
2
For FAT32 - from Sunsolve:
# fdisk /dev/rdsk/c5t0d0s2
SELECT ONE OF THE FOLLOWING:
Create a partition
Specify the active partition
Delete a partition
Exit (update disk configuration and exit)
Cancel (exit without updating disk configuration)
Enter Selection: 1
SELECT ONE OF THE FOLLOWING:
Create a partition
Specify the active partition
Delete a partition
Exit (update disk configuration and exit)
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:
Create a partition
Specify the active partition
Delete a partition
Exit (update disk configuration and exit)
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:
Create a partition
Specify the active partition
Delete a partition
Exit (update disk configuration and exit)
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:
Create a partition
Specify the active partition
Delete a partition
Exit (update disk configuration and exit)
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)
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).
Thanks so much RTM you are always helpful, but as i thought there is something defferent with Solaris X86.