Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by zillah
Without changing the /etc/fstab, and without using swapoff command
By keeping this partition as a potential swapspace, you are living dangerously. If you run short of available RAM, your whole Solaris installation is going to be destroyed.
2- as a root typed in
[root@localhost ~]# swapoff /dev/sda3
[root@localhost ~]# swapoff /dev/sda3
swapoff: /dev/sda3: Invalid argument
3- mount -o ro -t ufs /dev/sda9 /mnt/SOL
4-
Code:
[root@localhost mnt]# cd SOL/
[root@localhost SOL]# ls
bin devices home lost+found net proc tmp
boot etc kernel media opt sbin usr
dev export lib mnt platform system var
[root@localhost SOL]# cd boot
[root@localhost boot]# ls
acpi grub solaris x86.miniroot-safe xen-syms
amd64 platform solaris.xpm xen.gz
[root@localhost boot]# cd grub/
[root@localhost grub]# ls
bin iso9660_stage1_5 reiserfs_stage1_5 ufs_stage1_5
default jfs_stage1_5 splash.xpm.gz vstafs_stage1_5
e2fs_stage1_5 menu.lst stage1 xfs_stage1_5
fat_stage1_5 minix_stage1_5 stage2 zfs_stage1_5
ffs_stage1_5 nbgrub stage2_eltorito
install_menu pxegrub ufs2_stage1_5
5
Quote:
[root@localhost grub]# gedit menu.lst,,,,,for Solaris OS
#pragma ident "@(#)menu.lst 1.2 07/01/10 SMI"
#
# default menu entry to boot
default 0
#
# menu timeout in second before default OS is booted
# set to -1 to wait for user input
timeout 10
#
# To enable grub serial console to ttya uncomment the following lines
# and comment out the splashimage line below
# WARNING: don't enable grub serial console when BIOS console serial
# redirection is active!!!
# serial --unit=0 --speed=9600
# terminal serial
#
# Uncomment the following line to enable GRUB splashimage on console
splashimage /boot/grub/splash.xpm.gz
#
# To chainload another OS
#
# title Another OS
# root (hd<disk no>,<partition no>)
# chainloader +1
#
# To chainload a Solaris release not based on grub
#
# title Solaris 9
# root (hd<disk no>,<partition no>)
# chainloader +1
# makeactive
#
# To load a Solaris instance based on grub
# If GRUB determines if the booting system is 64-bit capable,
# the kernel$ and module$ commands expand $ISADIR to "amd64"
#
# title Solaris <version>
# root (hd<disk no>,<partition no>,x) --x = Solaris root slice
# kernel$ /platform/i86pc/kernel/$ISADIR/unix
# module$ /platform/i86pc/$ISADIR/boot_archive
#
# To override Solaris boot args (see kernel(1M)), console device and
# properties set via eeprom(1M) edit the "kernel" line to:
#
# kernel /platform/i86pc/kernel/unix <boot-args> -B prop1=val1,prop2=val2,...
#
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris Express Community Edition snv_76 X86
kernel$ /platform/i86pc/kernel/$ISADIR/unix
module$ /platform/i86pc/$ISADIR/boot_archive
#---------------------END BOOTADM--------------------
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris xVM
kernel$ /boot/$ISADIR/xen.gz
module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix
module$ /platform/i86pc/$ISADIR/boot_archive
#---------------------END BOOTADM--------------------
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris failsafe
kernel /boot/platform/i86pc/kernel/unix -s
module /boot/x86.miniroot-safe
#---------------------END BOOTADM--------------------
title Windows
rootnoverify (hd0,0)
chainloader +1
title Windows
rootnoverify (hd0,1)
chainloader +1
# Unknown partition of type 5 found on /dev/rdsk/c0d0p0 partition: 4
# It maps to the GRUB device: (hd0,3) .
You need to copy the Fedora grub entry from the Linux menu to the Solaris one.
Does that help me to be able to boot solaris ? When I tried to copy from Linux's menu.lst to Solaris menu.lst,,,,I would not have been able to do that!!!
I can not remember that right now, but see how the save button is gray,,,,i.e if you modified file you can not save the modification,,,,that means it is disabled http://www.imageshock.eu/?img=1166385,Screenshot.jpg
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Okay, I overlook the thread title. You are trying to edit Solaris menu.lst file while running Linux. Linux can mount ufs reliably only in read-only mode, the reason why you can't save the file even while logged in as root
You should do it the way around. Boot Solaris and edit menu.lst under that O/S. You'll need to install a couple of packages to be able to mount ext3fs under Solaris ( http://www.genunix.org/distributions....FSWfsmisc.txt ).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.