LinuxQuestions.org
Visit Jeremy's Blog.
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-22-2016, 12:35 PM   #1
xiongnu
Member
 
Registered: Sep 2004
Distribution: Debian, Void
Posts: 228

Rep: Reputation: 19
OI caught in a boot loop at start


Hi, i'm caught in an endless boot loop with OpenIndiana at Grub bootloader screen.
OI seems loading by selecting 'OpenIndiana' from Grub menu, after a while, computer reboots without launching to desktop.
then it repeats the same pattern over and over.

version: openindiana 2015.10
setup: winXP/Slackware14.1/OI tripleboot on an USB harddrive, default bootloader is Slackware's LILO, with LILO's OI entry points to /dev/sdb2, then OI grub starts.

Partitions as seen from SL14.1, OI was installed through bootable thumb drive.

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63    41942879    20971408+   7  HPFS/NTFS/exFAT
/dev/sdb2   *    41945715    83875364    20964825   bf  Solaris
/dev/sdb3        83875365    85867424      996030   82  Linux swap
/dev/sdb4   *    85867425   125805014    19968795   83  Linux
bash-4.2# blkid
/dev/sda1: UUID="6a95bebc-beaa-4b49-a99f-6ea23c81787f" TYPE="ext4" 
/dev/sdb1: UUID="8AA0E4F5A0E4E8A1" TYPE="ntfs" 
/dev/sdb3: UUID="6faddc5e-8660-406d-a8b1-da1124368b0e" TYPE="swap" 
/dev/sdb4: UUID="f487c8e1-a959-4cfa-8a2e-c8718660dcaf" TYPE="ext4" 
/dev/sdb5: LABEL="rpool" UUID="9443950123409513777" UUID_SUB="8757308412115109673" TYPE="zfs_member" 
bash-4.2#
any pointers?

Last edited by xiongnu; 12-22-2016 at 01:11 PM.
 
Old 12-22-2016, 03:35 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
You might add some options to the GRUB menu to get more verbose messages and enable the kernel debugger (kmdb) should it crashes at boot time:

Code:
-B console=text -kv -m verbose
See http://lserinol.blogspot.fr/2009/02/...bose-mode.html

Not sure if "-B console=text" is needed or supported with OpenIndiana though.

If the kernel crashes, depressing F1 + a should drop you in kmdb where you might use some commands to figure out where the crash happened.

Another tip: if a driver is the reason why, OpenIndiana seems to have a specific flag to disable it: "-B disable-driver=true" with driver being the name of the module to disable.
 
Old 12-24-2016, 11:25 AM   #3
xiongnu
Member
 
Registered: Sep 2004
Distribution: Debian, Void
Posts: 228

Original Poster
Rep: Reputation: 19
I appended
Code:
-B console=text -kv -m verbose
to grub boot menu(screen shot$1):
Code:
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $zfs -BOOTFS, console=text -kv -m verbose
and removed
Code:
splashingimage /boot/solaris.xpm
from grub edit.

the verbose mode output is shown in the screenshot#2.

the OI was installed on the 2.5" IDE Harddisk through IDE-44pin adapter on desktop pc, now it's booted from USB/IDE enclosure
Attached Thumbnails
Click image for larger version

Name:	DSC04588.jpg
Views:	14
Size:	249.9 KB
ID:	23826   Click image for larger version

Name:	DSC04589.jpg
Views:	22
Size:	250.1 KB
ID:	23827  
 
Old 12-24-2016, 07:10 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Was OpenIndiana installed on the same machine, external disk plugged to the same USB port and with the same overall physical configuration (internal disk especially)?

Edit: I overlook your last sentence.

The issue is you installed using a different device path than the one you use now. There might be a way to recover the system by booting on a live media and replacing the root pool /dev, /devices, /etc/path_to_inst by the ones you have on the live OS. You would also need to clear or rebuild the zpool cache (/etc/zfs/zpool.cache).

See https://openindiana.org/pipermail/op...ch/015291.html

Last edited by jlliagre; 12-25-2016 at 05:44 AM.
 
Old 12-29-2016, 06:05 PM   #5
xiongnu
Member
 
Registered: Sep 2004
Distribution: Debian, Void
Posts: 228

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by jlliagre View Post
Was OpenIndiana installed on the same machine, external disk plugged to the same USB port and with the same overall physical configuration (internal disk especially)?

Edit: I overlook your last sentence.

The issue is you installed using a different device path than the one you use now. There might be a way to recover the system by booting on a live media and replacing the root pool /dev, /devices, /etc/path_to_inst by the ones you have on the live OS. You would also need to clear or rebuild the zpool cache (/etc/zfs/zpool.cache).

See https://openindiana.org/pipermail/op...ch/015291.html
i connect the 2.5" IDE hard drive with OI through IDE-44pin interface card to the desktop PC i installed it, it boots into OI this time.

how do i change the OI bootloader to let it boot in USB enclosure instead of IDE in the future?

Last edited by xiongnu; 12-29-2016 at 09:41 PM.
 
Old 12-30-2016, 10:20 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
I guess the simplest way would be to backup anything that might need to be then reinstall OpenIndiana on the disk attached to its final destination, i.e. USB.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux boot caught in loop kadharris Linux - Newbie 1 02-19-2007 11:45 AM
Linux Boot caught in loop kadharris Linux - Server 1 02-19-2007 11:44 AM
Linux boot caught in loop kadharris Linux - Desktop 1 02-19-2007 11:12 AM
Caught in the LOOP Nimoy Linux - General 11 02-01-2004 03:57 AM

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

All times are GMT -5. The time now is 04:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration