LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This 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


Reply
  Search this Thread
Old 11-25-2007, 04:12 AM   #16
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492

Quote:
Originally Posted by zillah View Post
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.
 
Old 11-29-2007, 06:18 PM   #17
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
What I did is :

1- comment (using # sign) /dev/sda3 in /etc/fstab

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) .
 
Old 11-29-2007, 08:17 PM   #18
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You need to copy the Fedora grub entry from the Linux menu to the Solaris one.
 
Old 11-29-2007, 09:56 PM   #19
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
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!!!

Regards
 
Old 11-30-2007, 02:49 AM   #20
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by zillah View Post
Does that help me to be able to boot solaris ?
No, that help you booting fedora. As you highlighted in red that part of menu.lst, I thought you were asking about it.
Quote:
When I tried to copy from Linux's menu.lst to Solaris menu.lst,,,,I would not have been able to do that!!!
You mean you are not any more able to boot Solaris ?
 
Old 11-30-2007, 04:30 AM   #21
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
You mean you are not any more able to boot Solaris ?
No. I meant I was not able to copy configuration from Linux's "menu.lst" file to Solaris's "menu.lst" file.
 
Old 11-30-2007, 06:07 AM   #22
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
System-->Administration-->Hardware

http://img150.imageshack.us/my.php?i...eenshotoi1.png
 
Old 11-30-2007, 12:30 PM   #23
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by zillah View Post
No. I meant I was not able to copy configuration from Linux's "menu.lst" file to Solaris's "menu.lst" file.
What prevented you to do it ?
 
Old 11-30-2007, 12:31 PM   #24
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by zillah View Post
What is your question ?
 
Old 12-01-2007, 01:08 AM   #25
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
What prevented you to do it ?
It gave me error message that I do not have permission to do that.

Quote:
What is your question ?
I just want to show what type would have been given to solaris partition.
 
Old 12-01-2007, 10:04 AM   #26
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by zillah View Post
It gave me error message that I do not have permission to do that.
What is "it" ? Aren't you root when you edit menu.lst ?
Quote:
I just want to show what type would have been given to solaris partition.
The type given is incorrect.
 
Old 12-02-2007, 04:00 PM   #27
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
Aren't you root when you edit menu.lst ?
Yes I logged in as a root.

Quote:
What is "it" ?
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
 
Old 12-02-2007, 06:29 PM   #28
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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 ).
 
Old 12-02-2007, 09:54 PM   #29
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
I see thanks for that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC7 grub suddenly stops booting Solaris Express CE zillah Linux - Software 23 11-30-2007 04:20 PM
Mount Issue in Gnome of FC7 shreks Linux - Software 0 06-05-2007 11:23 AM
Mount primary prtition. And first logical drive in an Extended DOS partition zillah Solaris / OpenSolaris 5 01-08-2006 05:16 AM
can swap be an extndd prtition rhl_one Slackware 2 01-08-2004 01:11 PM
Installing R/H 8.0 on a prtition drive givey Linux - Software 2 03-19-2003 07:23 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration