Find the answer to your Linux question:
Results 1 to 4 of 4
I would like to format my computer which is running Solaris 10 on it. It is in command line. What is the command to fomat the hard drive? I tried ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    3

    Format a hard drive running Solaris 10


    I would like to format my computer which is running Solaris 10 on it. It is in command line. What is the command to fomat the hard drive? I tried
    # format hd1
    # format hda
    ..., but it is not working. As you can see, I am very new to linux. Any major help would greatly appreciated.

    Thanks,

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    hi Marty_G !

    in which FileSystem you want to Format your Harddisk?
    commands depends on FileSystem. mkfs.msdos, mkfs.ext2, mkfs.ext3 etc etc..
    OR
    download GParted LiveCD, boot from it and create/resize/format partitions.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Newbie
    Join Date
    Jan 2007
    Posts
    110
    Not too sure if Gparted supports ufs filing type because its latest version insists on formatting the partition after the creation. This is useless anyway because Solaris must be given a freedom to divid the partition into sub-slices to suit itself so there is no point in formatting the partition at all.

    I would recommend using the terminal program cfdisk or fdisk. The former is preferred.

    Commands are

    sudo cfdisk /dev/hda

    you then delete other partitions if you have to so that there is empty space to create "one" primary partition, size about 20Gb.

    Use the direction key to slect "type" and press "enter"

    Type "bf" for Solaris partition type.

    Select "write" to write the partition table.

    Exit cfdisk program to reboot to validate the partition table.

    During installation of Solaris it will call the partition as something like c0d0 if it is the first partition of the primary master and c0d1 if it is the second partition of the same disk etc. Take note of the size so that you can instruct correctly the installer to use it for installation.

    A Solaris will make at least 3 sub-slices for "/", swap" and /export/home in position of c0d0s0, c0d0s1 and c0d0s7 respectively if c0d0 partition is selected for its installation.

  4. #4
    Just Joined!
    Join Date
    Jan 2007
    Posts
    3
    Thanks for your reply.

    I want to format the hard drive in Solaris 10 file system. This is the only operating system this computer has.

    Thanks again,

    Quote Originally Posted by devils_casper
    hi Marty_G !

    in which FileSystem you want to Format your Harddisk?
    commands depends on FileSystem. mkfs.msdos, mkfs.ext2, mkfs.ext3 etc etc..
    OR
    download GParted LiveCD, boot from it and create/resize/format partitions.






    Casper

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •