07-25-2001
Format Command
The reason I cannot install the Software Companion CD is that I have a hardrive that is 10GB. On my root slice/partition there is allocated 900MB, on my /export/home slice I have 8GB for use (these values were set by default on install). The software companion tries to install 600MB into my /opt folder on my harddrive, 600MB, which I do not have. So, I was told I should unmount the /export/home drive, then partition it into two slices, each around 4GB. Then remount /export/home to one slice and then mount /opt to the other slice and this should give me the correct amount of space I need to install the Software Companion CD. I'm having problems splitting up the 8GB /export/home into two slices. I umount /export/home, and then I used the format command, typed in partition, typed in the old partition number, 7, and I resized that partition. Then I tried to create the new partition or slice, by changing the values to an unassigned partition. Is this the correct way to do it? I then did the save option from the format command, and when I rebooted, it came up with an error, what am I doing wrong, Nathan.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
I am trying to use the grap command to locate the following phrase in a file:
"file.php\tDebug: one two three"
Note that \t denotes a tab (whitespace) and not the characters \ and t
I am encountering the following 2 problems:
1) there is a perido between "file" and "php" which... (2 Replies)
Discussion started by: jasongr
2 Replies
2. Shell Programming and Scripting
Hi I have 3 files
$ ls -l
-rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 SANITY_TEST
-rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 Success 123333
-rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 Success 123333 (1)
I need to see this
"SANITY_TEST" "Success 123333" "Success... (6 Replies)
Discussion started by: mnmonu
6 Replies
3. Shell Programming and Scripting
Can some body tell me the meaning of '$1=$1' in the following syntax.
nawk -v RS='' -v OFS=',' '$1=$1' myFile.txt
Thanks,
Mahesh :) (4 Replies)
Discussion started by: maheshsri
4 Replies
4. HP-UX
Hi,
Unix: HP-UNIX.
I have a requirement(part of my requirement) to get latest file modification date of all files(In a particular directory).
Using ll comand i m able to find out the modification date but not in the required format
My command and out put:
echo trp_pb.sql `ll... (2 Replies)
Discussion started by: satyadash
2 Replies
5. Shell Programming and Scripting
I have a read command like this:
print "enter the time to recover to: \n"
print "please use the format dd-mon-rrrr hh24:mi:ss"
read -n $dbtime
How do I format/check the read command to force the desired date/time format I want? (4 Replies)
Discussion started by: djehresmann
4 Replies
6. Shell Programming and Scripting
hi..
i am new to here. can anybody tell me how can we change the date format in the 'last' command.
EX- on running last command i am getting --
rruat pts/12 172.18.40.101 Tue May 3 12:59 still logged in
rruat pts/10 blr2-3f-239.asco Tue May 3 12:59 - 13:09 ... (2 Replies)
Discussion started by: thearpit
2 Replies
7. Shell Programming and Scripting
Hi all,
When I run the following command:
$ ps -ef|grep pmon
I get the following output:
oracle 2820 11817 0 12:09 pts/0 00:00:00 grep pmon
oracle 26906 1 0 Mar14 ? 00:00:43 ora_pmon_sat11cr1
oracle 26915 1 0 Mar14 ? 00:00:08 ora_pmon_sat11dm1
Is... (4 Replies)
Discussion started by: jonnyd
4 Replies
8. Shell Programming and Scripting
Hi how do you change the format of the output of
ls -lt -c -R $HOME | sed /^total/d
From:
/home/pikamon/Desktop:
-rwxr-xr-x 1 pikamon pikamon 35 Sep 18 14:25 fileModified.sh
-rwxr-xr-x 1 pikamon pikamon 87 Sep 18 14:25 fileModified.sh~
/home/darksky21/Downloads:
-rwxrw-rw- 1 pikamon... (5 Replies)
Discussion started by: pikamon
5 Replies
9. Shell Programming and Scripting
Hi,
I need to convert a date format "August 12, 2013 9:40:00 PM CDT" in to DD/MM formant
For example ..I am using ...
date -d "January10, 2013 04:05:00 AM CST" +%m/%d
which gives me...
01/10
However, when i'am using it against every month it is throwing errors on some months as... (3 Replies)
Discussion started by: Kevin Tivoli
3 Replies
10. Shell Programming and Scripting
hi all,
i had a requirement in my script iam passing the parameter like (its not the system date iam passing as argument like it can be any date)
2014-08-25
but in my output file it should be
08/25/2014
please guide me
thanks in advance
hemanthsaikumar (3 Replies)
Discussion started by: hemanthsaikumar
3 Replies
LEARN ABOUT SUNOS
re-preinstall
re-preinstall(1M) System Administration Commands re-preinstall(1M)
NAME
re-preinstall - installs the JumpStart software on a system
SYNOPSIS
cdrom-mnt-pt/Solaris_XX/Tools/Boot/usr/sbin/install.d/re-preinstall [-m Solaris_boot_dir] [-k platform_name] target-slice
DESCRIPTION
re-preinstall installs the JumpStart software (preinstall boot image) on a system, so you can power-on the system and have it automatically
install the Solaris software (perform a JumpStart installation on the system). When you turn on a re-preinstalled system, the system looks
for the JumpStart software on the system's default boot disk. All new SPARC systems have the JumpStart software already preinstalled. The
XX in Solaris_XX is the version number of the Solaris release being used.
You can use the re-preinstall command in several ways. The most common way is to run re-preinstall on a system to install the JumpStart
software on its own default boot disk. This is useful if you want to restore a system to its original factory conditions. (See the first
procedure described in EXAMPLES.)
You can also run re-preinstall on a system to install JumpStart software on any attached disk (non-boot disk). After you install the Jump-
Start software on a disk, you can move the disk to a different system and perform a JumpStart installation on the different system. (See
the second procedure described in EXAMPLES.)
re-preinstall creates a standard file system on the specified target-slice (usually slice 0), and re-preinstall makes sure there is enough
space on the target-slice for the JumpStart software. If sufficient space is not available, re-preinstall fails with the following message:
re-preinstall: target-slice too small xx Megabytes required
You can use the format(1M) command to create sufficient space on the target-slice for the JumpStart software.
OPTIONS
The following options are supported:
-k platform_name Platform name of the system that will use the disk with the JumpStart software. The default is the platform name of
the system running re-preinstall. (Use the uname(1) command (-i option) to determine a system's platform name.)
-m Solaris_boot_dir Absolute path to the Solaris_XX/Tools/Boot subdirectory of a mounted Solaris CD or a Solaris CD copied to disk that
re-preinstall uses to install the JumpStart software. The default is root (/), which is where the Solaris CD is
mounted in single-user mode.
OPERANDS
The following operands are supported:
target-slice Device name of the disk slice where the JumpStart software will be installed (usually slice 0), for example, c0t3d0s0.
EXAMPLES
Example 1: Installing the JumpStart Software on a System's Own Default Boot Disk
The following procedure installs the JumpStart software on a system's own default boot disk:
1. From the ok prompt, boot the system from the Solaris media CD or DVD in single-user mode:
ok boot cdrom -s
2. The following command installs the Jumpstart software on the System default boot disk, c0t0d0s0 on a Solaris 9 system:
example# /usr/sbin/install.d/re-preinstall c0t0d0s1
3. Reboot the slice:
example# reboot disk:b
Example 2: Installing the JumpStart Software on a System's Attached (non-boot) Disk
The following procedure installs the JumpStart software on a system's attached (non-boot) disk:
1. Mount the Solaris CD or DVD if vold(1M) is not running or CD or DVD is not mounted.
2. Use the format(1M) command to determine the target-slice where JumpStart will be installed.
3. Use the uname(1) command (-i option) to determine the platform name of the system that will use the re-preinstalled disk
4. Run re-preinstall with the -m Solaris_boot_dir option if the Solaris CD or DVD is not mounted on /cdrom.
The following command installs the JumpStart software on the system's attached disk for a system with a Sun4u kernel architecture, and
it uses the Solaris CD or DVD mounted with vold(1M) on a Solaris 9 system:
example# /cdrom/cdrom/s1/usr/bin/install.d/re-preinstall -m
/cdrom/cdrom/s1 -k sun4u c0t2d0s0
EXIT STATUS
The following exit values are returned:
0 Successful completion.
1 An error has occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcdrom (Solaris CD, |
| |SPARC Platform Edition) |
+-----------------------------+-----------------------------+
SEE ALSO
uname(1), eeprom(1M), format(1M), mount(1M), vold(1M), attributes(5)
Solaris 10 Installation Guide: Basic Installations
SunOS 5.10 9 Apr 2002 re-preinstall(1M)