LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-02-2007, 09:52 PM   #1
zillah
Member
 
Registered: Oct 2004
Posts: 536

Rep: Reputation: 30
Reinstall Solaris Express CE still its partition of type swap not 0xbf


Referring to the link:

http://www.linuxquestions.org/questi...167/page2.html

I used Acronis utility and deleted the partition where solaris resides (sda3). After that I gapped Solaris DVD and install a fresh copy and chose the portion of hard disk as Solaris partition type.

When I finished the installation, I lost FC7 grub, (This is normal), I was able to see Solaris's grub and windows OS was listed within solaris's grub menu.

I reinstall FC7 grub to take control of the solaris's grub, and again the same problem happened /etc/fstab,,,,,,,,,,,still solaris partion if type swap not bf !!!!!!!!!!

Now solrais prtiton is sda4 not sda3 as you can see it here :
http://img337.imageshack.us/img337/7...eenshotzc1.png

Therefore in the menu.lst i have modified it from (hd0,2) to (hd0,3). and it worked.

Although this time I can boot into solaris OS, and

Code:
[root@localhost ~]# cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=/home             /home                   ext3    defaults        1 2
/dev/sda3               swap                    swap    defaults        0 0
LABEL=SWAP-sda8         swap                    swap    defaults        0 0
/dev/sda1            /mnt/W2K3   ntfs    ro,defaults,umask=0222         0 0
[root@localhost ~]#

I have modified the solaris OS menu.lst and I accidentally I modified some lines which they should not have been modified,,,how can I access solaris menu.lst again ? only I can access Solrais failsafe mode, before editing I was able to access solaris normal mode.

Last edited by zillah; 12-02-2007 at 10:33 PM.
 
Old 12-03-2007, 01:04 AM   #2
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
So you reinstalled Solaris just to change the partition id ???
Looks quite overkill while a simple command is available to toggle between the old and new ID (Solaris fdisk).

When in failsafe mode, you are given the choice to mount the / partition at boot time. If it is mounted read-only, you can remount it without the r/o option to be able to fix the menu.lst file.
 
Old 12-03-2007, 03:33 AM   #3
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
So you reinstalled Solaris just to change the partition id ???
Not only that, but because i was not able to boot solaris
.

Quote:
If it is mounted read-only, you can remount it without the r/o option to be able to fix the menu.lst file.
I have already mounted as read and write, but what editor should I use to open menu.lst for modification ?

Regards
 
Old 12-03-2007, 04:10 AM   #4
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
Not only that, but because i was not able to boot solaris
I was understanding you were still able to boot Solaris from your previous replies.
So using Solaris partition as a Linux swap area, even without Linux swapping at all, was destructive as I was strongly suspecting.
Quote:
I have already mounted as read and write, but what editor should I use to open menu.lst for modification ?
This is a text file. I personally use either vi or one of its clones but any editor should work.
 
Old 12-03-2007, 04:40 AM   #5
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
I was understanding you were still able to boot Solaris from your previous replies.
I was not able to boot solaris.

Quote:
This is a text file. I personally use either vi or one of its clones but any editor should work.
After answering 'yes' to the 'updated archives' question, your real disk-based root file system should be mounted on /a

I tried :

vi /boot/grub/menu.lst

but command not found

Last edited by zillah; 12-03-2007 at 04:46 AM.
 
Old 12-03-2007, 05:18 AM   #6
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
I was not able to boot solaris.
You could have made that clearer when I asked you about it:
http://www.linuxquestions.org/questi...05#post2975405
Quote:
After answering 'yes' to the 'updated archives' question, your real disk-based root file system should be mounted on /a

I tried :

vi /boot/grub/menu.lst

but command not found
I doubt miniroot has no vi command. I'll check next time I reboot.

Anyway, I'm afraid you are editing your CD or DVD menu.lst, which obviously stay on a read-only filesystem, regardless of you beeing root or not.

As the message tells, use /a/boot/grub/menu.lst.

Last edited by jlliagre; 12-03-2007 at 01:41 PM.
 
Old 12-03-2007, 01:33 PM   #7
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
You could have made that clearer when I asked you about it:
You are right. What I did I had created two threads on the same time, one of them under Linux and other under Solaris (the one that you was answering)

http://www.linuxquestions.org/questi...ess-ce-602130/

http://www.linuxquestions.org/questi...0/#post2978353

I did not like to ask many questions on one thread, and as you have noticed both links have different titles, but both threads went to other directions when there were chnaging in Solaris partition to Linux swap.


Quote:
As the message tells, use /a/boot/grub/menu.lst.
I did that with a, but I forgot to write " a " in my reply.

Quote:
Anyway, I'm afraid you are editing your CD or DVD menu.lst, which obviously stay on a read-only filesystem, regardless of you beeing root or not.
I am editing exactly this file : /a/boot/grub/menu.lst


Quote:
I doubt miniroot has no vi command. I'll check next time I reboot.
I had used vi /a/boot/grub/menu.lst,,,,,but it does allow me to save , quit,,,,it not the same behaivor , when we use vi under Solaris or Linux when they are in a normal mode

Thanks

Last edited by zillah; 12-03-2007 at 01:36 PM.
 
Old 12-03-2007, 01:45 PM   #8
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
I already suggested that could be the issue but again, is "/a" mounted read/write or read/only ?

Have a look at the "mount" command output to check it.
 
Old 12-03-2007, 03:57 PM   #9
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
is "/a" mounted read/write or read/only ?
I have answered above question in my previous reply.

Quote:
I have already mounted as read and write
Because I typed in : Y (for Yes) when I received the message in the quote below
Quote:
Solaris Express CE snv_76x86 was found on /dev/des/c0d0s0.
Do you wish to have it mounted read-write on /a [y,n,?]

Quote:
Have a look at the "mount" command output to check it.
I will check that again for confirmation

Last edited by zillah; 12-03-2007 at 04:00 PM.
 
Old 12-03-2007, 05:14 PM   #10
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
Then, what are the menu.lst permissions ?

Code:
ls -l /a/boot/grub/menu.lst

Last edited by jlliagre; 12-03-2007 at 11:30 PM.
 
Old 12-03-2007, 06:48 PM   #11
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
what are the menu.lst permissions
-rw-r--r--
 
Old 12-03-2007, 11:40 PM   #12
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
Post these commands output:
Code:
mount | grep `df -k /a/boot|nawk '{print $1}' | tail +2`
truss touch /a/boot/grub/menu.lst
 
Old 12-04-2007, 12:05 AM   #13
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Before I post the output for :
mount | grep `df -k /a/boot|nawk '{print $1}' | tail +2`
truss touch /a/boot/grub/menu.lst

What I did I changed the permission for the : /a/boot/grub/menu.lst (I understood that implicitly from your advice, which was : " what are the menu.lst permissions " )

Then I used vi /a/boot/grub/menu.lst,,,,,and hardly (because vi in this mode not like vi in a normal mode,,,,I was able to modify the menu.lst, but i was not able to save that after modification!!!!!!) I was able to save the edited menu.lst.

Do I still need to post the output for the commands that you have mentioned above ?
 
Old 12-04-2007, 12:34 AM   #14
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 I did I changed the permission for the : /a/boot/grub/menu.lst
So what were the permissions like before you changed them ?
Quote:
vi in this mode not like vi in a normal mode
Can you explain what you mean by "this mode" ?
Quote:
i was not able to save that after modification!!!!!!) I was able to save the edited menu.lst.
Hmm, so were you able to save or not ?
 
Old 12-04-2007, 12:41 AM   #15
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
So what were the permissions like before you changed them ?
Quote:
-rw-r--r--
Quote:
Can you explain what you mean by "this mode" ?
I meant in the miniroot mode.
When I used vi in the miniroot mode (I called it: " this mode ", I meant failsafe mode), it is unlike when you use it in the normal operation for Solaris , when it boots.

Quote:
Hmm, so were you able to save or not ?
It seems to me yes, thereforw I would have been able to boot solaris in normal mode (not failsafe mode)

Last edited by zillah; 12-04-2007 at 01:11 AM.
 
  


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
LXer: Marvell Yukon Driver (SK-9E22) for Solaris (x64) 8.19.1.3 installation procedure in Solaris Express LXer Syndicated Linux News 0 04-22-2007 03:16 AM
Solaris 9 to Solaris 10/Express upgrade SteveK1979 Solaris / OpenSolaris 1 02-21-2007 07:49 PM
Express Solaris 6/06 reinstall grub zillah Solaris / OpenSolaris 2 01-12-2007 10:06 AM
MY RH can't read swap partition?? fhameed Linux - Software 2 12-09-2004 03:56 AM
Specify existing swap partition at boot when reinstall? GeirG Linux - General 2 09-11-2004 07:42 AM

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

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

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