10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I was trying to move a file to a particular directory. In a hurry i forgot to give the dest directory, as below
mv prod.log
The file disappeared. :confused:
Any idea where it might have moved???
And I have tried moving files based on date from one directory to another as below.... (1 Reply)
Discussion started by: siteregsam
1 Replies
2. Solaris
Hi everyone,
I would like to know how to compile and run lex programs on solaris 10.
the conventional way is
$ lex <name.l>
$ cc lex.yy.c -ll
$ ./a.out
but while trying to execute the 2nd command :i get a reference saying that the command is old or that main is not supported...
Hence... (1 Reply)
Discussion started by: wrapster
1 Replies
3. Solaris
anybody know abt Segmentation Fault - core dumped in solaris 5.10..wats this error?? (4 Replies)
Discussion started by: sanjana
4 Replies
4. UNIX for Advanced & Expert Users
/dev/md/dsk/d0 20174761 1778528 18194486 9% /
/dev/md/dsk/d30 17648810 1592139 15880183 10% /usr
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 ... (0 Replies)
Discussion started by: sriny
0 Replies
5. UNIX for Dummies Questions & Answers
OK! I am a newbie so please give me step by step details on what i need to do! :confused: I don't know what a stop key is. I think it is the one that looks like a spade. I don't know. :eek: Let me know what to do and I will be so grateful! :) The system is a Sun Fire system not an Intel system.
... (3 Replies)
Discussion started by: mochatee
3 Replies
6. Shell Programming and Scripting
when try to unzip a very big file facing an error of disk full.
can any body help me to unzip this file .
$ unzip abc.zip
Archive: abc.zip
inflating: abc.zrp
abc.zip write error (disk full?). Continue? (y/n/^C) $ n
Thanks & Regards (1 Reply)
Discussion started by: suman_jakkula
1 Replies
7. Shell Programming and Scripting
Hi All,
When i run date command at unix prompt,
i get the output in format Tue Aug 29 12:36:18 GMT 2006
when i write the shell script i should be able to export the date output with format as YYYY/MM/DD-HH:MM:SS into some variable(ex : dateop).
and when i say echo ${dateop}
i should... (9 Replies)
Discussion started by: rkrgarlapati
9 Replies
8. HP-UX
I can no longer print from HP-UX 10. All the printers are network printers. I have already stopped and restarted the spooler (lpshut and lpsched), but still the same problem. The printers react when I ping them.
I have also tried with SAM, but the system cannot find the printers.
Can somebody... (1 Reply)
Discussion started by: filipd
1 Replies
9. UNIX for Dummies Questions & Answers
i accedently "deleted" all workspaces
I have a black screen and dont know what to do
solaris common desktop enviroment (1 Reply)
Discussion started by: ssshakir
1 Replies
10. UNIX for Dummies Questions & Answers
Hi everybody I have a problem with wtmpx. Accounting file. I activated it. It works but to well :( Writes the same message every minute. "faxmodem" As you can see it does not take to long until my /var file is soon full.
Thanks
Peter (26 Replies)
Discussion started by: Peterh
26 Replies
installgrub(1M) System Administration Commands installgrub(1M)
NAME
installgrub - install GRUB in a disk partition or a floppy
SYNOPSIS
/sbin/installgrub [-fm] stage1 stage2 raw-device
DESCRIPTION
The installgrub command is an x86-only program. GRUB stands for GRand Unified Bootloader.
installgrub installs GRUB stage 1 and stage 2 files on the boot area of a disk partition. If you specify the -m option, installgrub
installs the stage 1 file on the master boot sector of the disk.
OPTIONS
The installgrub command accepts the following options:
-f Suppresses interaction when overwriting the master boot sector.
-m Installs GRUB stage1 on the master boot sector interactively. You must use this option if Solaris is installed on an extended parti-
tion.
OPERANDS
The installgrub command accepts the following operands:
stage1 The name of the GRUB stage 1 file.
stage2 The name of the GRUB stage 2 file.
raw-device The name of the device onto which GRUB code is to be installed. It must be a character device that is readable and writable.
For disk devices, specify the slice where the GRUB menu file is located. (For Solaris it is the root slice.) For a floppy
disk, it is /dev/rdiskette.
EXAMPLES
Example 1 Installing GRUB on a Hard Disk Slice
The following command installs GRUB on a system where the root slice is c0d0s0:
example# /sbin/installgrub /boot/grub/stage1
/boot/grub/stage2 /dev/rdsk/c0d0s0
Example 2 Installing GRUB on a Floppy
The following command installs GRUB on a formatted floppy:
example# mount -F pcfs /dev/diskette /mnt
# mkdir -p /mnt/boot/grub
# cp /boot/grub/* /mnt/boot/grub
# umount /mnt
# cd /boot/grub
# /sbin/installgrub stage1 stage2 /dev/rdiskette
FILES
/boot/grub Directory where GRUB files reside.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Uncommitted |
+-----------------------------+-----------------------------+
SEE ALSO
boot(1M), fdisk(1M), fmthard(1M), kernel(1M), attributes(5)
WARNINGS
Installing GRUB on the master boot sector (-m option) overrides any boot manager currently installed on the machine. The system will always
boot the GRUB in the Solaris partition regardless of which fdisk partition is active.
SunOS 5.11 31 Oct 2008 installgrub(1M)