Reinstall Solaris Express CE still its partition of type swap not 0xbf
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.
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 !!!!!!!!!!
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by zillah
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.
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
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 ?
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.