Re: [indiana-discuss] grub don't boot OpenSolaris 2008.05 after one reboot

2008-08-05 Thread Luca Morettoni
On 08/05/2008 06:13 AM, sanjay nadkarni (Laptop) wrote:
 Admittedly this is a bit of puzzle since you were able to boot it
 successfully once.   Is it possible that when you rebooted the second
 time, the BIOS is picking up the wrong disk ? i.e. are there two disks
 on this system ?  Can you check the boot order via the bios ?

there is only one disk (is a laptop), yesterday I made this two operation:

1) at the grub prompt I type: find /boot/grub/menu.lst and the
message is: Error 15 file not found

2) I reboot my system with LiveCD and, I type this commands:

# zpool import (to get the raw-device)
# zpool import -f rpool
# mount -F zfs rpool/ROOT/opensolaris /mnt
# /sbin/installgrub /mnt/boot/grub/stage1 /mnt/boot/grub/stage2 \
/dev/rdsk/(raw-device)

installgrub don't tell me any error, and after when I reboot the system
I see GRUB stage 2... and after only a blank screen (no grub menu)

On the same laptop, with another hard disk I try to install OpenSolaris
(only one partition) and all work fine! The main disk is ok, is a new
disk and I have checked it with another PC!

About your question about the boot order on the BIOS is:
1) USB devices
2) DVD
3) Hard disk

this order is never changed between my tests!
-- 
Luca Morettoni luca(AT)morettoni(DOT)net - http://morettoni.net
GPG key 0xD69411BB: C329 AED4 5923 1982 6F12  3036 B51E 664F D694 11BB
jugUmbria founder - https://jugUmbria.dev.java.net/ | Thawte notary
ITL-OSUG leader - http://www.opensolaris.org/os/project/itl-osug/
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Re: [indiana-discuss] grub don't boot OpenSolaris 2008.05 after one reboot

2008-08-05 Thread James Cornell
sanjay nadkarni (Laptop) wrote:
 Luca Morettoni wrote:
   
 Hi, I have installed and used OpenSolaris on a single installation for a
 long time. Now on my laptop I buy a new big HD (320G) to be shared with
 WinXP and OpenSolaris.
 First I have installed WinXP on a 60G partition, then I installed
 OpenSolaris with any problem, at the end of installation I reboot the
 system, ALL work fine, I see grub menu and I choose to boot
 opensolaris... the system is ok (remember, I don't touch nothing on the
 disk), but when I reboot again the problem, I get the grub menu (GRUB )
 and nothing start...
 Any hints?

   
 
 Admittedly this is a bit of puzzle since you were able to boot it 
 successfully once.   Is it possible that when you rebooted the second 
 time, the BIOS is picking up the wrong disk ? i.e. are there two disks 
 on this system ?  Can you check the boot order via the bios ?


 -Sanjay


 ___
 indiana-discuss mailing list
 indiana-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
   
So I've not seen this, but maybe the boot order changed for some 
reason.  I don't see why the mbr would had been clobbered, even if the 
Solaris ramdisk was corrupted since the grub files are not dependent on 
the state of the ramdisk, which is the only real potentially breakable 
part of Solaris initialization.  It's possible the grub.conf got messed 
up though, which would result in the grub prompt being the only thing 
showing up.  You can boot the Windows and OpenSolaris systems through 
grub console.  You'd boot Windows something like this:

rootnoverify (hd0,0)
chainloader +1
boot

OpenSolaris is a little more trickey because it uses boot environments 
so you'd need to do something like this:

findroot (pool_rpool,1,a)
bootfs /rpool/RPOOL/opensolaris-5
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
boot

* Type 'help' and there's a command to show devices, forgot what
* Tab complete works for some functions but not others, you could for 
example try bootfs /rpool/ROOT/[tab]

James
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Re: [indiana-discuss] grub don't boot OpenSolaris 2008.05 after one reboot

2008-08-05 Thread Vikram Hegde
Hi,

Try the following commands at the GRUB prompt

find   /rpool/boot/grub/menu.lst
find /boot/grub/menu.lst

What do these show ?

Vikram



- Original Message 
From: James Cornell [EMAIL PROTECTED]
To: sanjay nadkarni (Laptop) [EMAIL PROTECTED]
Cc: indiana-discuss@opensolaris.org
Sent: Tuesday, August 5, 2008 1:16:35 PM
Subject: Re: [indiana-discuss] grub don't boot OpenSolaris 2008.05 after one 
reboot

sanjay nadkarni (Laptop) wrote:
 Luca Morettoni wrote:
  
 Hi, I have installed and used OpenSolaris on a single installation for a
 long time. Now on my laptop I buy a new big HD (320G) to be shared with
 WinXP and OpenSolaris.
 First I have installed WinXP on a 60G partition, then I installed
 OpenSolaris with any problem, at the end of installation I reboot the
 system, ALL work fine, I see grub menu and I choose to boot
 opensolaris... the system is ok (remember, I don't touch nothing on the
 disk), but when I reboot again the problem, I get the grub menu (GRUB )
 and nothing start...
 Any hints?

  

 Admittedly this is a bit of puzzle since you were able to boot it 
 successfully once.   Is it possible that when you rebooted the second 
 time, the BIOS is picking up the wrong disk ? i.e. are there two disks 
 on this system ?  Can you check the boot order via the bios ?


 -Sanjay


 ___
 indiana-discuss mailing list
 indiana-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
  
So I've not seen this, but maybe the boot order changed for some 
reason.  I don't see why the mbr would had been clobbered, even if the 
Solaris ramdisk was corrupted since the grub files are not dependent on 
the state of the ramdisk, which is the only real potentially breakable 
part of Solaris initialization.  It's possible the grub.conf got messed 
up though, which would result in the grub prompt being the only thing 
showing up.  You can boot the Windows and OpenSolaris systems through 
grub console.  You'd boot Windows something like this:

rootnoverify (hd0,0)
chainloader +1
boot

OpenSolaris is a little more trickey because it uses boot environments 
so you'd need to do something like this:

findroot (pool_rpool,1,a)
bootfs /rpool/RPOOL/opensolaris-5
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
boot

* Type 'help' and there's a command to show devices, forgot what
* Tab complete works for some functions but not others, you could for 
example try bootfs /rpool/ROOT/[tab]

James
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Re: [indiana-discuss] REVIEW System Admin. Guide for the Back to School Kit

2008-08-05 Thread (William) Brian Leonard

Hi Kathy:

Is the intent to keep this command line focused? In several cases there 
are GUIs you can work with for:


   * Managing services
   * Managing processes
   * Shutting down the system
   * Verifying device driver support

Other notes:

How to Stop a Program:
In this case, look for the bash process for pts/2 which has a process 
ID of 689.
For me it's pts/3 and the process id will always differ. Also, the ps 
command by itself is pretty useless. I generally use ps -ef | grep 
'some string'


I would also echo the sentiments of others to use pfexec instead of 
becoming superuser. It's much safer.



Note that the Server type should be IMAP Mail Server
Why are you assuming this is the case? You're probably better off just 
listing resources on how to configure Thunderbird to connect to popular 
mail servers, such as Yahoo!, gmail, etc.


  In addition to 
the system user account,
you should create a user account and ZFS file system for your personal 
files that can be managed
by delegating ZFS administration permissions, such as creating a file 
system snapshot.
Interesting. Why do we recommend creating a 2nd user account? I'm new to 
OpenSolaris, but this is the first I've heard of this.



http://blogs.sun.com/timf/resource/README.zfs-auto-backup.txt
Consider pointing them to Tim's blog on this subject instead: 
http://blogs.sun.com/timf/entry/zfs_automatic_for_the_people



mount -F smbfs //solarsystem/tmp /mnt
Before you can mount a SMB client you need to first enable the service 
via the GUI or the command line (svcadm enable network/smb/client)



Shut down the system.
Shouldn't the first suggestion be the System  Shutdown menu? And from 
the command line, shouldn't we recommend shutdown over init 5?


Regards,
Brian

Kathy Slattery wrote:

I have been leading a group of writers working on a
companion to the Getting Started Guide. The idea
is to document some useful procedures to help configure
an OpenSolaris laptop after the OS is installed.

Please take a look at a review draft of the
OpenSolaris 2008.05 System Administration Guide
(OSadminguide.pdf) at:

http://www.opensolaris.org/os/project/indiana/files/

We have been working on this book for a couple of weeks,
so we haven't had time to complete all sections or polish
the content yet, but the current content should give you an idea of
what we have decided to cover. In particular, the chapter about
Useful Commands has not been worked on yet. Also, the links to
docs.sun.com aren't working.

I need to deliver this book for the Back To School Kit before August 8th,
so please send me comments by COB on Wednesday 8/6.  We will be
developing this book further after the 8th for the 2008.11 release,
so there will be more time for comments later. For now:

1) send any corrections to me or to the alias if discussion is needed
2) tell me about any procedures that we should add
3) please give me suggestions for a better book title

Many thanks for your time and comments.

-Kathy
--

This message posted from opensolaris.org

___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
  


--
(William) Brian Leonard
Technology Evangelist
408.404.6884
http://weblogs.java.net/blog/bleonard


___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Re: [indiana-discuss] REVIEW System Admin. Guide for the Back to School Kit

2008-08-05 Thread Cindy . Swearingen
Hi William,

Thanks for the comments...

For the ZFS comments:

1.
Good comment about pointing to Tim's blog instead of the script directly.

2. The user account that is created during the OpenSolaris
installation has root privileges. For example:
[EMAIL PROTECTED]:~/Desktop$ roles
root

So, for a student installing the Back to School Kit its probably
best to create a personal user account for papers, etc.

For the general comment:

Please explain how pfexec is safer. :-)

Thanks,

Cindy

(William) Brian Leonard wrote:
 Hi Kathy:
 
 Is the intent to keep this command line focused? In several cases there 
 are GUIs you can work with for:
 
 * Managing services
 * Managing processes
 * Shutting down the system
 * Verifying device driver support
 
 Other notes:
 
 How to Stop a Program:
 
 In this case, look for the bash process for pts/2 which has a process 
 ID of 689.
 
 For me it's pts/3 and the process id will always differ. Also, the ps 
 command by itself is pretty useless. I generally use ps -ef | grep 
 'some string'
 
 I would also echo the sentiments of others to use pfexec instead of 
 becoming superuser. It's much safer.
 
 Note that the Server type should be IMAP Mail Server
 
 Why are you assuming this is the case? You're probably better off just 
 listing resources on how to configure Thunderbird to connect to popular 
 mail servers, such as Yahoo!, gmail, etc.
 
   In addition to 
 the system user account,
 you should create a user account and ZFS file system for your personal 
 files that can be managed
 by delegating ZFS administration permissions, such as creating a file 
 system snapshot.
 
 Interesting. Why do we recommend creating a 2nd user account? I'm new to 
 OpenSolaris, but this is the first I've heard of this.
 
 http://blogs.sun.com/timf/resource/README.zfs-auto-backup.txt
 
 Consider pointing them to Tim's blog on this subject instead: 
 http://blogs.sun.com/timf/entry/zfs_automatic_for_the_people
 
 mount -F smbfs //solarsystem/tmp /mnt
 
 Before you can mount a SMB client you need to first enable the service 
 via the GUI or the command line (svcadm enable network/smb/client)
 
 Shut down the system.
 
 Shouldn't the first suggestion be the System  Shutdown menu? And from 
 the command line, shouldn't we recommend shutdown over init 5?
 
 Regards,
 Brian
 
 Kathy Slattery wrote:
 
I have been leading a group of writers working on a
companion to the Getting Started Guide. The idea
is to document some useful procedures to help configure
an OpenSolaris laptop after the OS is installed.

Please take a look at a review draft of the
OpenSolaris 2008.05 System Administration Guide
(OSadminguide.pdf) at:

http://www.opensolaris.org/os/project/indiana/files/

We have been working on this book for a couple of weeks,
so we haven't had time to complete all sections or polish
the content yet, but the current content should give you an idea of
what we have decided to cover. In particular, the chapter about
Useful Commands has not been worked on yet. Also, the links to
docs.sun.com aren't working.

I need to deliver this book for the Back To School Kit before August 8th,
so please send me comments by COB on Wednesday 8/6.  We will be
developing this book further after the 8th for the 2008.11 release,
so there will be more time for comments later. For now:

1) send any corrections to me or to the alias if discussion is needed
2) tell me about any procedures that we should add
3) please give me suggestions for a better book title

Many thanks for your time and comments.

-Kathy
--

This message posted from opensolaris.org

___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
  

 
 -- 
 (William) Brian Leonard
 Technology Evangelist
 408.404.6884
 http://weblogs.java.net/blog/bleonard
 
 
 
 
 ___
 indiana-discuss mailing list
 indiana-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Re: [indiana-discuss] REVIEW System Admin. Guide for the Back to School Kit

2008-08-05 Thread Cindy . Swearingen
Hi Dave,

I see your point about the second user account so we'll drop it.

This issue also highlights a transition between managing user accounts
with home directories as a UFS directory and home directories as ZFS 
file systems.

I need to file a bug against the user account manager because it creates
a user account with a home dir as a directory not a ZFS file system. If 
I create a ZFS file system and feed it to user account manager, it
doesn't setup the user home dir ownership correctly.

In the meantime, I'll figure something else out.

Thanks for feedback--

Cindy

Dave Miner wrote:
 [EMAIL PROTECTED] wrote:
 
 Hi William,

 Thanks for the comments...

 For the ZFS comments:

 1.
 Good comment about pointing to Tim's blog instead of the script directly.

 2. The user account that is created during the OpenSolaris
 installation has root privileges. For example:
 [EMAIL PROTECTED]:~/Desktop$ roles
 root

 So, for a student installing the Back to School Kit its probably
 best to create a personal user account for papers, etc.

 
 I haven't reviewed the document, but this exchange caught my eye.
 The account can assume the role, but only does so when specifically 
 requested by entering a profiled shell or using pfexec.  There's no 
 extra privilege when you're running in, say, bash or ksh.
 
 Please do not recommend a second user account, it makes OpenSolaris 
 appear needlessly complex.  At some point we may alter the RBAC 
 privileges created by default to be somewhat less expansive than they 
 are right now, but presently the behavior that results is what is 
 expected for a single-user system, which is that the user can administer 
 his own system.
 
 Dave
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Re: [indiana-discuss] REVIEW System Admin. Guide for the Back to School Kit

2008-08-05 Thread Kathy Slattery

Brian,

Thanks for the suggestions.

From: (William) Brian Leonard [EMAIL PROTECTED]

Hi Kathy:

Is the intent to keep this command line focused? In several cases there 
are GUIs you can work with for:

* Managing services
* Managing processes
* Shutting down the system
* Verifying device driver support

I've changed some of the procedures to use GUIs, but probably not enough
of them. I'll work on adding more GUI coverage after the 8/8 release.


Other notes:

How to Stop a Program:
 In this case, look for the bash process for pts/2 which has a process 
 ID of 689.
For me it's pts/3 and the process id will always differ. Also, the ps 
command by itself is pretty useless. I generally use ps -ef | grep 
'some string'

I've re-written this step. I'll send out a copy tomorrow. Please
tell me if it still doesn't work.


I would also echo the sentiments of others to use pfexec instead of 
becoming superuser. It's much safer.

It's definitely simpler since you don't need a password, 
but I can't see that it's safer since it gives you equivalent
abilities to mess up your installation. I must be missing something.


 Note that the Server type should be IMAP Mail Server
Why are you assuming this is the case? You're probably better off just 
listing resources on how to configure Thunderbird to connect to popular 
mail servers, such as Yahoo!, gmail, etc.

My test of Yahoo! showed that it just worked without any
tweaking, but I'll see what I can do about the others.


   In addition to 
 the system user account,
 you should create a user account and ZFS file system for your personal 
 files that can be managed
 by delegating ZFS administration permissions, such as creating a file 
 system snapshot.
Interesting. Why do we recommend creating a 2nd user account? I'm new to 
OpenSolaris, but this is the first I've heard of this.

 http://blogs.sun.com/timf/resource/README.zfs-auto-backup.txt
Consider pointing them to Tim's blog on this subject instead: 
http://blogs.sun.com/timf/entry/zfs_automatic_for_the_people


Cindy - I'm going to leave these to you.

 mount -F smbfs //solarsystem/tmp /mnt
Before you can mount a SMB client you need to first enable the service 
via the GUI or the command line (svcadm enable network/smb/client)


Cathleen - This one is yours.

 Shut down the system.
Shouldn't the first suggestion be the System  Shutdown menu? And from 
the command line, shouldn't we recommend shutdown over init 5?


This one I just changed this morning. Right now I suggest 
1) System - Shut Down
2) init 5
3) for emergencies only - uadmin 2 6

Using init instead of shutdown seems more appropriate to me on
a laptop. There is no point in sending out broadcast messages
and after a quick test, shutdown doesn't seem to work. In the
past the our docs have suggest shutdown for servers and init for
stand-alone systems. With shutdown 0 not working right on
my laptop, I'm very hesitant to add it to the doc. Please
tell me if your experience with 2008.05 are different.

-Kathy



Kathy Slattery wrote:
 I have been leading a group of writers working on a
 companion to the Getting Started Guide. The idea
 is to document some useful procedures to help configure
 an OpenSolaris laptop after the OS is installed.

 Please take a look at a review draft of the
 OpenSolaris 2008.05 System Administration Guide
 (OSadminguide.pdf) at:

 http://www.opensolaris.org/os/project/indiana/files/

 We have been working on this book for a couple of weeks,
 so we haven't had time to complete all sections or polish
 the content yet, but the current content should give you an idea of
 what we have decided to cover. In particular, the chapter about
 Useful Commands has not been worked on yet. Also, the links to
 docs.sun.com aren't working.

 I need to deliver this book for the Back To School Kit before August 8th,
 so please send me comments by COB on Wednesday 8/6.  We will be
 developing this book further after the 8th for the 2008.11 release,
 so there will be more time for comments later. For now:

 1) send any corrections to me or to the alias if discussion is needed
 2) tell me about any procedures that we should add
 3) please give me suggestions for a better book title

 Many thanks for your time and comments.

 -Kathy
 --

 This message posted from opensolaris.org

 ___
 indiana-discuss mailing list
 indiana-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
   

-- 
(William) Brian Leonard
Technology Evangelist
408.404.6884
http://weblogs.java.net/blog/bleonard



___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss