Re: [osol-discuss] OpenSolaris 11 Install Failed

2011-03-15 Thread Milan Cermak

Hi Terry,
the issue seems to be that the disk is not partitioned yet. To fix that 
open a terminal and run 'format'. It will ask for a disk (I suppose you 
have just one). Then type 'fdisk' and it will ask if it should create a 
100% Solaris parition. Say yes.
With this, you get the partition table and Solaris label (VTOC). Now, 
the installer should proceed just fine.


And please take a minute and fill a bug report against the installer on 
https://defect.opensolaris.org/bz/


Regards,
Milan Cermak

Dne 14.03.11 15:41, Terry Schima napsal(a):

Hi,

I can't seem to get Oracle's OpSol to install. BTW, OpSol 2009.06 installs 
fine, and reboots fine. (I guess it's fine, not being a Unix person, I don't 
know what to check for after first boot). I've tried booting it (11) from the 
USB key and the CD. Both boot and work fine. But the gui-install lets me get 
all the way done, then starts to do its thing, but then reports it failed 
before the progress bar leaves 0%. Gparted loads, acts like it will change the 
disk, but does nothing (yes, I typed in the root password). My hardware is: 
Medion laptop with: AMD x2 1700Mhz, 4GB ram, 320GB blank HDD, on board nVidia, 
etc. Most of the hardware shows up in the  list, no problems there -- that I 
can see. Here is the log.

  ddm_drive_get_ctype():Can't get DM_CONTROLLER assoc. 
w/ DM_DRIVE, err=0
  Ignoring c9t0d134583970 because of bad Geometry
  System reports enough physical memory for installation, 
swap is optional
  disk currently doesn't contain any partition
  disk partition info changed
  No disk partitions defined prior to install
  Timezone setting will be TZ=Singapore
  Set timezone
  Disk was changed
  Disk contains valid Solaris partition
  whole_disk = 0
  diskname set = c8t0d0
  Set fdisk attrs
  Set zfs root pool device
  creating zpool
  zfs: Couldn't create ZFS pool
  Could not create ZFS root pool target
  Installation failed in Target Instantiation module
  Please see previous messages for more details
  Installation failed in Target Instantiation module
  Please see previous messages for more details

Do I need to use something like SystemRescueCD's parted command, and "mklabel sun" to get 
the disk ready? That doesn't make sense, since 2009.06 has no problem manipulating the disk. And 
more importantly, since I can't deal with compiling, configuring, making, etc. -- if there are any 
errors) Should I just forget Opsol 11 (since ntgs-3g doesn't work without  re compiling the code) 
and stay with 2009.06? Thanks. I don't mind looking this stuff up and learning, but I find that 
learning Unix is extremely difficult because I don't know the "basic technical" language 
(don't know where to start either) and then each variant has its own different dir structure, 
file/program names, etc.

gentisle



--
The amount of things I don't know is enormous.
But I'm grateful for every bit of information.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Trouble formating usb external hard drive.

2010-08-03 Thread Milan Cermak

Hi Mike,
what is the partition table on the drive?
Also, can you try rmformat with p0 which is whole disk?

Regards,
Milan Cermak

Dne  3.08.10 14:55, Mike DeMarco napsal(a):

I have a 1Tbyte usb external HD that I want to be able to read with windows and 
b134. I have tried all of the below but am unable to get solaris to read and 
write to it.

mkfs -F pcfs -o fat=32 /dev/rdsk/c10t0d0p1
   *Bad Sig on master boot record!
mkfs -F pcfs -o fat=32 /dev/rdsk/c10t0d0p1:c
   *No such logical drive (missing extended partition entry)
rmformat -F long /dev/dsk/c10t0d0p1
   *Not a removable device
rmformat -F long /dev/rdsk/c10t0d0p1
   *DKIOREMOVABLE ioctl failed: Inappropriate ioctl for device
mount -F pcfs /dev/dsk/c10t0d0p1 /mnt
   *mount: /dev/dsk/c10t0d0p1 is not a DOS filesystem.
mount -F ntfs /dev/dsk/c10t0d0p1 /mnt
touch /mnt/testfile
*cannot create regular file /mnt/testfile: Read-only file system

The ntfs mount is after installing FSWpart&  FSWfsmis

just need this drive to work like a memory stick. so I can move files between 
my duel boots.

Thanks


--
The amount of things I don't know is enormous.
But I'm grateful for every bit of information.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Q: Adding newlines to script email output

2010-05-03 Thread Milan Cermak

Hi Johan,
storing the command output in the variable removes the newlines (or 
better to say, it replaces them with spaces).

To get formatted message, you may do something like:

(
echo "Subject: filez ZFS Information\n\n";
/usr/sbin/zfs list -r tank
) | mail 

Regards,
Milan Cermak

Dne  3.05.10 11:13, Johan Eliasson napsal(a):

Greetings!

I have a little script that looks like below, that emails me info on my zfs 
pool every day:

--- start script ---
message=`/usr/sbin/zfs list -r tank`
echo "Subject: filez ZFS Information\n\n"$message | mail fi...@nebol.se
--- end script ---

My problem is that when I view the mail in Thunderbird there are no newlines so 
it looks like this:

NAME USED AVAIL REFER MOUNTPOINT tank 4.93T 419G 64.3K /tank tank/toolz 86.5G 
419G 86.5G /tank/toolz tank/backups 256G 419G 256G tank/database 78.7M 419G 
78.7M /database tank/dokument 607G 419G 607G /tank/dokument tank/emul 142G 419G 
142G tank/logs 28.4K  etc etc..

Impossible to read.. how can I add newlines to the email? I imagine/hope it's a 
simple thing for you script-people... :)

Best regard,
Gigantex.


--
The amount of things I don't know is enormous.
But I'm grateful for every bit of information.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Created a FAT32 partition using Fdisk, but it can not be mounted..

2010-04-14 Thread Milan Cermak

Okay. So you need following command:
mkfs -F pcfs /dev/rdsk/c9t1d4p1

p0 is whole disk (including the partition table).
Sorry I mistyped the mkfs command in the first e-mail. That was Linux 
syntax.


Milan

Dne 14.04.10 16:41, Sarah.kho napsal(a):

Hi,
Thank you for helping me on this.

before applying mkfs I tried the mount command as follow:

  mount -F pcfs /dev/dsk/c9t1d4p0 /media/s

The command returns the following error:

mount: /dev/dsk/c9t1d4p0 is not a DOS filesystem.

So I tried the fstyp command on that partition and it says:

unknown_fstyp (no matches)


Now I tried to use mkfs as follow:

  mkfs pcfs  /dev/dsk/c9t1d4p0

it returns the following error:
mkfs: Operation not applicable for FSType nfs

I tried P0-p9 and it did not work.

To ensure that the partition is there, I used format > fdisk command
again and the partition is there:

Cylinders
   Partition   StatusType  Start   End   Length%
   =   ==  =   ===   ==   ===
   1   ActiveWin95 FAT32   1  10221022100



What do I miss here? Does fstyp and mkfs works on raw devices or on
block devices? I tried them on both /rdsk/... and .../dsk/ and
the result was the same.


If you cached what I am doing wrong, please let me know.


On Wed, Apr 14, 2010 at 6:53 PM, E. Mike Durbin [via Opensolaris General
discuss mail-list] <[hidden email]
> wrote:

Close!

All the partitions that end in sN (e.g. s0) are Solaris partitions (aka
slices).
All the Solaris slices reside in one fdisk partition.

All the fdisk partitions end in pN (e.g. p0)

So ...

use:

   mount -F pcfs /dev/dsk/c9t1d4p0 /media/s



emike


On 04/14/2010 09:09 AM, Sarah.kho wrote:

 > Hi
 >
 > I created a fat32 partition using:
 >
 > format
 > format>fdisk
 > fdisk>1
 > and then C for fat32.
 >
 > then I exit the fdisk and format.  To make sure that the
partition is there,
 > I entered the format and fdisk command and my partition was there
(it was
 > active as well).  The disk name is c9t1d4 so I assumed that the
partition
 > name is c9t1d4s0 and used the following command to mount it
 >
 >   mount -F pcfs /dev/dsk/c9t1d4s0 /media/s
 >
 > The error message for the above command is "mount: I/O error"
 >
 > I tried mount -F pcfs /dev/dsk/c9t1d4s0 /media/s  for s1-s9 and
it still
 > returns the same error.
 >
 > Do you know what should I do to mount the partition?
 >
 > when i select the same disk in format command and then I try to
enter
 > partition command it shows the following error:
 >
 > "WARNING - This disk may be in use by an application that has
 >  modified the fdisk table. Ensure that this disk is
 >  not currently in use before proceeding to use fdisk."
 >
 > Thank you.
 >
 >
 >
___
opensolaris-discuss mailing list
[hidden email]





View this message in context: Re: Created a FAT32 partition using Fdisk,
but it can not be mounted..

Sent from the Opensolaris General discuss mail-list mailing list archive

at Nabble.com.



___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


--
The amount of things I don't know is enormous.
But I'm grateful for every bit of information.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Using ZFS snapshot to revert back to initial installation

2010-04-06 Thread Milan Cermak

Hi Johanna,
just few thoughts.

Dne  6.04.10 17:42, Johanna Kidwell napsal(a):

Hi,  I have a box with Solaris 10 TX 10/09 installed with ZFS for the root file 
system.  I have another pool called zones mounted at /zone where I install my 
Solaris zones.  After completing the installation and configuration of the OS 
software and pools, I created a recursive snapshot of rpool and a snapshot of 
zone.

My goal is to use these for application software installation testing.  After 
doing my application software installs I thought I could use zfs rollback and 
revert back to the initial just-installed state of my box and try my 
application install scripts again... However, I found that my box was not truly 
in the same state as when I started.

I used the rollback command for each snapshot.  I had trouble with the rpool/dump 
snapshot, it said "cannot remove device links for 'rpool/dump': dataset is 
busy.  I was hoping that I don't care about that, but maybe I am wrong.


rpool/dump is used for storing system crash dump. You don't need to care 
about it. Same should go for rpool/swap which is a swap space.
Hmm, rollbacking the swap space might have very interesting effects on 
the system (crash probably).



So after doing the rollbacks if I do a zfs list -t snapshot is shows:

NAMEUSEDAVAIL   REFER   
MOUNTPOINT
rp...@install   0   --  94K 
-   
rpool/r...@install  0   --  18K 
-   
rpool/ROOT/s10s_u7wos...@install0   --  4.52G   
-   
rpool/d...@install  16K --  1.50G   
-   
rpool/exp...@install0   --  20K 
-   
rpool/export/h...@install   0   --  18K 
-   
rpool/s...@install  0   --  16K 
-   
z...@install0   -   18K 
-

So I thought I was back to the initial state, however, when I did my 
application install again I found errors:
1) some of the NICs where still plumbed from before, ifconfig -a didn't have 
the same results as it did when I took the snapshot.
2)import of an application service failed b/c it was already there
3)the zone I had created earlier was still there in zoneadm list -cv


The state of file system (represented by ZFS snapshot) and state of the 
OS are two different things. Many things are stored in kernel structures 
while active. Rebooting might or might not help here.



Please let me know if there is a way to use snapshots in the manner I desire.


For testing installation, I'd create new boot environment (from 
snapshot) and install the software there. After the test, I'd reboot 
back to the original BE and destroy testing BE. That should provide 
enough consistency for testing.


Just my 2 cents,
Milan Cermak
--
The amount of things I don't know is enormous.
But I'm grateful for every bit of information.
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Atom based board, and experiences?

2010-01-29 Thread Milan Cermak

Many people thinking the same things in the same time. Interesting.
(Mine main constraint is 5x SATA (or 1x IDE).)

Michal,
this shop in UK may do for you.
http://www.mini-itx.com/store/?c=48

Milan Cermak

Dne 29.01.10 14:18, Michal Pryc napsal(a):

Hi,

Currently I am running osol build 129 using Zotac ion a-u, which is 
fine. I was also thinking about getting this babe:

http://www.orbitmicro.com/global/ms-9832-010-p-9545.html

There was also different version with integrated dc, but it seems to be 
discontinued...


But I am not sure if I can get those in the EU.

best
Michal Pryc


On 01/29/10 01:40 PM, Matthias Pfützner wrote:

Robs,

EEEpc all use the 32-bit versions, and I still like to have 64bit at 
home, for

large ZFS pools... ;-)

But thanks for the hint!

 Matthias

You (Robs) wrote:
  

Take a look at the eeepc-disc...@opensolaris.org archive.
- Original message -


Folks,

Super Micro has an attractive board for low power home systems:

 
http://www.supermicro.com/products/motherboard/ATOM/ICH9/X7SPA.cfm?typ=H 



Has anyone already put his hands on that thing, or knows, if the actual
OpenSolaris build will/does support the compleet hardware? (Aka: 
Network,

Graphics, Storage, plus "chipset")?

On a different sidenote:

Looking at

 
http://ark.intel.com/ProductCollection.aspx?familyID=29035


Intel is offering some very low power Atoms, that also have 
virtualization in

them (VT-x), anyone already seen board for/with them, and knows, if
OpenSolaris will work?

Curious
 Matthias
--
***
Matthias Pfützner

Principal Field Technologist&  Systems Infrastructure Ambassador
Solution Architect Virtualisation, High Availability

Systems Practice  Tel: +49 
6103 752-394 (x65394)
Sun Microsystems GmbHMobile: +49 172 
8428766
Ampčrestraße 6  Fax: +49 
6103 752-167
63225 Langen  
mailto:matthias.pfuetz...@sun.com
Germany
http://blogs.pfuetzner.de/matthias


AIM: pfuetz, ICQ: 300967487, YIM: pfuetz64, Sun-IM (Sun only): pfuetz
TWITTER: http://twitter.com/pfuetz
+++
Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Thomas Schröder, Wolfgang Engels
Vorsitzender des Aufsichtsrates: Martin Häring
***
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org
   
 
  

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org
 
   


___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


--
The amount of things I don't know is enormous.
But I'm grateful for every bit of information.

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] a few general questions:

2010-01-18 Thread Milan Cermak

Tomas Bodzar napsal(a):

c - controller
t - target
d - disk
s - slice
p - partition


It should be noted that (in difference to s0) p0 means whole disk.
So in Thomas' case, c?t?d? meant a whole disk with EFI label and 
c?t?d?p0 meant whole disk with MBR/VTOC label.


Milan Cermak
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] My 512MB usb stick seems to contain a black hole storage device, or something is miscalculated

2009-09-18 Thread Milan Cermak

Hi Henry,
certainly do (against pcfs). If the data on the stick are not 
confidential, please take an image (with dd) and attach it to the bug 
report.


Milan Cermak

Dne 18.09.09 14:20, Henry Pepper napsal(a):

Hi

There seems to be more data available than what it is formatted to.
Should I raise a bug report
 If so, what data should I include.


df -h

Filesystem size   used  avail capacity  Mounted on
/dev/dsk/c3t0d0p0:1488M 16384E   543M 14773942074090612% /media/DSL_USB

df -k

Filesystemkbytesused   avail capacity  Mounted on
/dev/dsk/c3t0d0p0:1   499440 18446744073709495192  555864
14773942074090612% /media/DSL_USB

it's on a snv_121 x86.

   Henry
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


--
* The only position I can honestly require is DLab - Data Labourer *
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Exception Handling in 64bit C++ Processes on Intel Xeon

2009-09-14 Thread Milan Cermak

Nicolas,
does the code throw the exception in such situation on all platforms or 
just on x64? (Does the situation happen on other platforms but x64?)
What is the exact type of exception your code is throwing, rethrowing 
and catching? (I mean exact C++ declarations.)


Milan Cermak

Dne 14.09.09 15:59, Nicolas Michael napsal(a):

John,

thanks for the quick reply. Please see below.
  

What kind of exception?  There are exceptions that
cannot be caught.
We should rule out this possibility when running your
code on x64.


Those exceptions are exceptions that we are throwing ourselves.

Within library B, one method b1() cannot find some data it is looking for, so 
it is creating an exception object (a subclass of our own Exception base class) 
and throwing it. This exception is then caught in method b2() of the same lib, 
which is throwing it again. It should then be caught by an exception handler in 
lib A -- which it seems is not happening.

Thanks,
Nick.


--
* The only position I can honestly require is DLab - Data Labourer *
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] gettext

2009-04-09 Thread Milan Cermak

Hanma wrote:

sorry but I don't understand. Can you explain me?


You sent too little information. We need to see more to be able to help you.

Milan
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] gettext

2009-04-09 Thread Milan Cermak

Hanma wrote:

I've been installing gettext 0.17, but in compiling there was fatal error "Command 
failed for target 'all-recursive'". What I must to do?


You must send in larger part of output you got.
Milan

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] uname -a ... 32bit vs 64bit

2009-04-06 Thread Milan Cermak

Hi Ed,
isainfo tool might help you.

$ isainfo
amd64 i386
$ isainfo -v
64-bit amd64 applications
ahf sse3 sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov 
amd_sysc

cx8 tsc fpu
32-bit i386 applications
ahf sse3 sse2 sse fxsr amd_3dnowx amd_3dnow amd_mmx mmx cmov 
amd_sysc

cx8 tsc fpu
Milan

Edward Ned Harvey wrote:

When I run "uname -a" it says:
SunOS hostname 5.10 Generic_137138-09 i86pc i386 i86pc
In the past, I've seen the system say "x86_64" when you're 64bit. And
I've also seen it say "32bit" when you're 32bit. But now it says
nothing, so I'm left confused.
How can I know if my system is 64bit or 32bit anymore?

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Using Kstat framework

2008-09-24 Thread Milan Cermak
Hi Akhil.

Akhil Jain wrote:
> Hi All,
> 
> I have some doubts in usage of kstat framework (kstat_open; kstat_lookup) 
> regarding SCTP statistics:
> 
>  Do we have option to reset the kernel statistics in our program?

I don't think so. To get data for given period of time just subtract
older value from newer value.

>  When I run the command "kstat sctp 10" on my Solaris system, it provides me 
> the statistics in every 10 seconds. So can I have the same option when using 
> the kstat framework in my implementation? If yes, can you please tell me the 
> workaround for that? 

That's a feature of the kstat tool, not the kstat framework. In your
application, you need to query kstat framework in a loop.

> Thanks,
> Akhil Jain

Regards,
Milan Cermak
-- 
* There is an ancient curse saying: 'Interesting times on you.' *

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Re: [osol-discuss] some command can't be used in chroot, what is the reason.

2008-08-06 Thread Milan Cermak
Seems like this line is being a problem:
> open("/proc/self/auxv", O_RDONLY)   Err#2 ENOENT

Do you have procfs mounted under chroot environment?
Milan Cermak

wan_jm wrote:
> when using chroot, I found that sort, and add_drv can't be used in chroot.
>
> bash-3.00# chroot /secroot  /usr/sbin/add_drv
> /usr/sbin/add_drv: getexecname() failed
> bash-3.00# chroot /secroot  /usr/bin/sort
> /usr/bin/sort: getexecname() failed
> 
> following is the turss message. what is the reason. could someone help me.
> bash-3.00# truss chroot /secroot /usr/bin/sort  
> execve("/usr/sbin/chroot", 0xFFBFFE04, 0xFFBFFE14)  argc = 3
> resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
> resolvepath("/usr/sbin/chroot", "/usr/sbin/chroot", 1023) = 16
> stat("/usr/sbin/chroot", 0xFFBFFBE0)= 0
> open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
> stat("/lib/libc.so.1", 0xFFBFF698)  = 0
> resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
> open("/lib/libc.so.1", O_RDONLY)= 3
> mmap(0x0001, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 
> 0xFF3A
> mmap(0x0001, 1015808, PROT_NONE, 
> MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF28
> mmap(0xFF28, 905509, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 
> 3, 0) = 0xFF28
> mmap(0xFF36E000, 32401, PROT_READ|PROT_WRITE|PROT_EXEC, 
> MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 909312) = 0xFF36E000
> mmap(0xFF376000, 6368, PROT_READ|PROT_WRITE|PROT_EXEC, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF376000
> munmap(0xFF35E000, 65536)   = 0
> memcntl(0xFF28, 144084, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
> close(3)= 0
> mmap(0x0001, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, 
> MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF39
> munmap(0xFF3A, 32768)   = 0
> getcontext(0xFFBFF8D0)
> getrlimit(RLIMIT_STACK, 0xFFBFF8B0) = 0
> getpid()= 22824 [22823]
> setustack(0xFF392A88)
> chroot("/secroot")  = 0
> chdir("/")  = 0
> execve("/usr/bin/sort", 0xFFBFFE0C, 0xFFBFFE14)  argc = 1
> resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
> resolvepath("/usr/bin/sort", "/usr/bin/sort", 1023) = 13
> stat("/usr/bin/sort", 0xFFBFFC00)   = 0
> open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
> stat("/lib/libc.so.1", 0xFFBFF6B8)  = 0
> resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
> open("/lib/libc.so.1", O_RDONLY)= 3
> mmap(0x0001, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 
> 0xFF3A
> mmap(0x0001, 1015808, PROT_NONE, 
> MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF28
> mmap(0xFF28, 905509, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 
> 3, 0) = 0xFF28
> mmap(0xFF36E000, 32401, PROT_READ|PROT_WRITE|PROT_EXEC, 
> MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 909312) = 0xFF36E000
> mmap(0xFF376000, 6368, PROT_READ|PROT_WRITE|PROT_EXEC, 
> MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFF376000
> munmap(0xFF35E000, 65536)   = 0
> memcntl(0xFF28, 144084, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
> close(3)= 0
> mmap(0x0001, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, 
> MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFF39
> munmap(0xFF3A, 32768)   = 0
> getcontext(0xFFBFF8F0)
> getrlimit(RLIMIT_STACK, 0xFFBFF8D0) = 0
> getpid()= 22824 [22823]
> setustack(0xFF392A88)
> brk(0x00022340) = 0
> brk(0x00024340) = 0
> stat("/platform/SUNW,Netra-440/lib/libc_psr.so.1", 0xFFBFF5A8) = 0
> resolvepath("/platform/SUNW,Netra-440/lib/libc_psr.so.1", 
> "/platform/sun4u-us3/lib/libc_psr.so.1", 1023) = 37
> open("/platform/SUNW,Netra-440/lib/libc_psr.so.1", O_RDONLY) = 3
> mmap(0x0001, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 
> 0xFF3A
> close(3)= 0
> munmap(0xFF3A, 32768)   = 0
> sysinfo(SI_ISALIST, "", 1)  = 115
> sysinfo(SI_ISALIST, "sparcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis2 
> sparcv8plus+vis sparcv8plus sparcv8 s

Re: [osol-discuss] mount solaris2 partitions

2008-07-30 Thread Milan Cermak
Hi Alexander,
Solaris partition is not a filesystem holder. It's more like Extended
partition. It contains slices.

What you want to do is
# prtvtoc /dev/rdsk/c5d0s0
to see what slices are used and mount the slice.
Or if it's a ZFS filesystem then you can try:
# zpool import
to see what zpools are available.

Regards,
Milan Cermak

Alexander Bubnov wrote:
> Hello,
> 
> My MBR is erased by linux install manager. And I would like to see
> grub settings on solaris partition to add them to linux grub menu, but
> I cannot mount solaris partitions under opensolaris live cd.
> 
> 
> -bash-3.2# format
> Searching for disks...done
> 
> 
> AVAILABLE DISK SELECTIONS:
>0. c5d0 
>   /[EMAIL PROTECTED],0/[EMAIL PROTECTED],5/[EMAIL PROTECTED]/[EMAIL 
> PROTECTED],0
> 
> 
> 
> -bash-3.2# fdisk /dev/rdsk/c5d0p0
> 
> 
>   Partition   StatusType  Start   End   Length%
>   =   ==  =   ===   ==   ===
>   1 Solaris2  1  1696916969 56
>   2   ActiveLinux native   16970  3006913100 43
>   3 EXT-DOS30070  30400 331  1
> 
> I created /1 directory for mounting
> 
> -bash-3.2# mount /dev/dsk/c5d0p0 /1
> mount: /dev/dsk/c5d0p0 is not this fstype
> -bash-3.2# mount /dev/dsk/c5d0p1 /1
> mount: /dev/dsk/c5d0p1 is not this fstype
> -bash-3.2# mount /dev/dsk/c5d0p2 /1
> mount: /dev/dsk/c5d0p2 is not this fstype
> -bash-3.2# mount /dev/dsk/c5d0p3 /1
> mount: /dev/dsk/c5d0p3 is not this fstype
> 
> 
> -bash-3.2# mount -Fufs /dev/dsk/c5d0p0 /1
> mount: /dev/dsk/c5d0p0 is not this fstype
> -bash-3.2# mount -Fufs /dev/dsk/c5d0p1 /1
> mount: /dev/dsk/c5d0p1 is not this fstype
> -bash-3.2# mount -Fufs /dev/dsk/c5d0p2 /1
> mount: /dev/dsk/c5d0p2 is not this fstype
> -bash-3.2# mount -Fufs /dev/dsk/c5d0p3 /1
> mount: /dev/dsk/c5d0p3 is not this fstype
> 
> -bash-3.2# dmesg | tail
> Jul 30 04:09:39 opensolaris last message repeated 1 time
> Jul 30 04:09:39 opensolaris ufs: [ID 717476 kern.notice] NOTICE:
> mount: not a UFS magic number (0x0)
> Jul 30 04:10:10 opensolaris last message repeated 2 times
> Jul 30 04:33:26 opensolaris ufs: [ID 717476 kern.notice] NOTICE:
> mount: not a UFS magic number (0x0)
> Jul 30 04:33:44 opensolaris last message repeated 1 time
> Jul 30 04:33:46 opensolaris ufs: [ID 717476 kern.notice] NOTICE:
> mount: not a UFS magic number (0x696c7356)
> Jul 30 04:33:47 opensolaris ufs: [ID 717476 kern.notice] NOTICE:
> mount: not a UFS magic number (0x0)
> Jul 30 04:34:05 opensolaris last message repeated 2 times
> Jul 30 04:34:09 opensolaris ufs: [ID 717476 kern.notice] NOTICE:
> mount: not a UFS magic number (0x696c7356)
> Jul 30 04:34:10 opensolaris ufs: [ID 717476 kern.notice] NOTICE:
> mount: not a UFS magic number (0x0)
> 
> 
> What is wrong? How can I mount an opensolaris's partition under
> opensolaris? Which FS type is used for opensolaris?
> 


-- 
* There is an ancient curse saying: 'Interesting times on you.' *
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] difference between "pkginfo" & "pkg info"

2008-07-02 Thread Milan Cermak
Hi Vikash,

Vikash Tulsiyan wrote:
> Hi All,
> Can someone tel me the difference between "pkginfo" & "pkg info" command. Is 
> "pkg info" a replacement for "pkginfo" in opensolaris.
> What is more confuding is the output of these command. They show different 
> version numbers for same packages

that's because they are coming with different packaging systems. pkginfo
i for "old" Solaris SVR4 packages. "pkg info" is for new IPS packages.
As far as I know these packaging systems can't cooperate so, each has
it's own log of what is installed.

Regards,
Milan Cermak

> -bash-3.2# pkginfo -l SUNWzlib
>PKGINST:  SUNWzlib
>NAME:  The Zip compression library
>CATEGORY:  system
>ARCH:  i386
>VERSION:  11.11.0,REV=2008.03.19.13.46
>VENDOR:  Sun Microsystems, Inc.
>DESC:  The Zip compression library
>HOTLINE:  Please contact your local service provider
> STATUS:  completely installed
> 
> -bash-3.2# pkg info SUNWzlib
>   Name: SUNWzlib
>  Summary: The Zip compression library
>  State: Installed
>  Authority: opensolaris.org (preferred)
>  Version: 1.2.3
>  Build Release: 5.11
> Branch: 0.86
> Packaging Date: Sat Apr 26 18:12:57 2008
> Size: 330 kB
> FMRI: pkg:/[EMAIL PROTECTED],5.11-0.86:20080426T181257Z
-- 
* There is an ancient curse saying: 'Interesting times on you.' *
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] open solaris installed to native linux partition?

2008-05-14 Thread Milan Cermak
Joerg Schilling wrote:
> Milan Cermak <[EMAIL PROTECTED]> wrote:
> 
>> On the other hand, Linux understands OpenSolaris partition scheme and 
>> ufs file system. It can also be made to understand zfs through fuse.
> 
> Linux does not support UFS.
> 
> Linux may have support for a modified UFS that is in use on *BSD since
> ~ 1994, but this is not complatible with the changes introduced in the main
> UFS line around 1988.

As far as I know, Linux kernel has support for Solaris variant of UFS. 
I've been using it on my notebook last year.
And yes, it's only partial support. Writing is experimental and 
dangerous. I used just a read-only form.

Milan

> Jörg

-- 
* There is an ancient curse saying: 'Interesting times on you.' *

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] open solaris installed to native linux partition?

2008-05-14 Thread Milan Cermak
Hi Steve.

steve wrote:
> Question 1: I have been searching for information as to weather open solaris 
> will install to a native linux partition, or ext2 file system?
> 
> Reason is so i can setup to read/write from either linux or solaris.
> As is, i have only been user of linux for 12mths, so please excuse my 
> ignorance. 

OpenSolaris doesn't understand ext2/3 partition. It doesn't understart 
extended partition scheme. It needs one primary partition and will 
create it's own partition scheme there. Then it will create a filesystem 
with either ufs or zfs.
On the other hand, Linux understands OpenSolaris partition scheme and 
ufs file system. It can also be made to understand zfs through fuse.

> Question 2: Will open solaris detect the other os (pclinuxos)?

Possibly yes. OpenSolaris will not detect it as a Linux but will ignore 
it as an unknown partition.

> At present i am dual booting from grub (pclinuxos 2008) and have windows xp 
> as the other os. I intend to install to the present ´c´drive (first slice), 
> and understand the bootloader (grub) will be overwritten.

OpenSolaris installs GRUB and it can be configured to boot a linux kernel.

Regards,
Milan Cermak
-- 
* There is an ancient curse saying: 'Interesting times on you.' *

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Re: [osol-discuss] uname -a shows i386 on 64 bit capable system

2007-12-20 Thread Milan Cermak
Hi Roman,
these values are reported for all x86 compatible machines. Doesn't 
matter if it's i386, Intel Dual Core or AMD Athlon64.
If you want better value, use command 'isainfo'.

HTH,
Milan Cermak

Roman Morokutti napsal(a):
> Hi,
> 
> I recently installed 4 GB RAM but only see 3 GB. Maybe this is an
> issue of have been loading the 32 bit kernel. I am encountering a 
> strange problem when I type this command:
> 
>  uname -a
> 
> It shows:
> 
> SunOS solar-star 5.11 snv_77 i86pc i386 i86pc
> 
> Should not stand here something with i686 then? Is it somehow possible
> to start explicitely a 64 bit kernel?
> 
> Roman
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] IPS basics

2007-11-02 Thread Milan Cermak
Thommy M. Malmström wrote:
> Someone who can give me a hint on how I add OpenSolaris Developer Preview 
> packages by IPS? Like StarOffice, Studio12, NetBeans6b2???
> 
> Where do I find the packages? Or do I just download all the "old" packages 
> and run 'pkg install' on them?

Yes, you can use old packages. IPS can handle both.

Milan Cermak
-- 
* There is an ancient curse saying: 'Interesting times on you.' *

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] BASH as root shell

2007-05-23 Thread Milan Cermak

Sean Sprague wrote:

Gerard,


How can I make BASH the root's default shell?


This question has come up more times than possibly any other. The answer 
is invariably (and correctly) "Don't do it!". Root's default shell 
should _only_ ever be /sbin/sh for many reasons; including system 
recovery after panic.


This obviously doesn't answer your question, but is the recommended 
configuration to maintain.


Regards... Sean.


And what exactly makes /sbin/sh that special? If there are scripts which 
need it (as an interpreter) I let it live there happily. But what does 
have these scripts in common with interactive shell?


And (although I didn't write original question) yes. I'm new to Solaris.

Regards,
Milan Cermak
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] how to set up for dual screen?

2007-05-18 Thread Milan Cermak

Hi Xusheng,
the trick I learned is to "clone" graphic card. In xorg.conf you'll have 
two nearly identical sections for one graphic card.


Section "Device"
   Identifier  "Card0"
   Driver  "ati"
   VendorName  "ATI Technologies Inc"
   BoardName   "M22 [Radeon Mobility M300]"
   BusID   "PCI:1:0:0"
   Screen  0
EndSection

Section "Device"
   Identifier  "Card1"
   Driver  "ati"
   VendorName  "ATI Technologies Inc"
   BoardName   "M22 [Radeon Mobility M300]"
   BusID   "PCI:1:0:0"
   Screen  1
EndSection


Notice those "Screen" parameters. Then, you can create the configuration 
as if you have two cards each connected to one monitor.


Regards,
Milan Cermak

[EMAIL PROTECTED] wrote:

Hi,
Anybody successed to set up for dual screen on solaris?
I wonder if it is possible to do that?
I was trying to configure /etc/X11/.xorg.conf(7.2) to implement the 
dual-screen for my laptop which uses ATI X300 graphic card.



I changed my xorg.conf to add a screen section and a monitor section but 
with no luck.

Anybody can give me some clue?

My xorg.conf is showed as below.

Section "ServerLayout"
   Identifier "X.org <http://X.org> Configured"
   Screen"Screen0"
   Screen"Screen1" RightOf "Screen0"
   InputDevice"Mouse0" "CorePointer"
   InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   RgbPath  "/usr/X11/share/X11/rgb"
   ModulePath   "/usr/X11/lib/modules"
   FontPath "//usr/X11/lib/X11/fonts/TrueType//"
   FontPath "/usr/X11/lib/X11/fonts/Type1/"
   FontPath "//usr/X11/lib/X11/fonts/Type1/sun//"
   FontPath "//usr/X11/lib/X11/fonts/F3bitmaps//"
   FontPath "//usr/X11/lib/X11/fonts/misc//"
   FontPath "//usr/X11/lib/X11/fonts/100dpi//"
   FontPath "//usr/X11/lib/X11/fonts/75dpi//"
EndSection

Section "Module"
   Load  "IA"
   Load  "dbe"
   Load  "extmod"
   Load  "record"
   Load  "xtrap"
   Load  "GLcore"
   Load  "glx"
   Load  "dri"
   Load  "type1"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver  "kbd"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver  "mouse"
   Option  "Protocol" "auto"
   Option  "Device" "/dev/mouse"
   Option  "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   VendorName   "Monitor Vendor"
   ModelName"Monitor Model"
EndSection

Section "Monitor"
   Identifier   "Monitor1"
   VendorName   "gnr"
   ModelName"gnr"
EndSection

Section "Device"
   ### Available Driver options are:-
   ### Values: : integer, : float, : "True"/"False",
   ### : "String", : " Hz/kHz/MHz"
   ### [arg]: arg optional
   #Option "NoAccel"   # []
   #Option "SWcursor"  # []
   #Option "Dac6Bit"   # []
   #Option "Dac8Bit"   # []
   #Option "PanelOff"  # []
   #Option "DDCMode"   # []
   #Option "MonitorLayout" # []
   #Option "IgnoreEDID"# []
   #Option "UseFBDev"  # []
   #Option "MergedFB"  # []
   #Option "CRT2HSync" # []
   #Option "CRT2VRefresh"  # []
   #Option "CRT2Position"  # []
   #Option "MetaModes" # []
   #Option "MergedDPI" # []
   #Option "MergedXinerama"# []
   #Option "MergedXineramaCRT2IsScreen0"   # []
   #Option "MergedNonRectangular"  # []
   #Option "MergedMouseRestriction"# []
   #Option "DisplayPriority"   # []
   #Option "PanelSize" # []
   #Option "ForceMinDotClock"  # 
   #Option "ColorTiling&q

Re: [osol-discuss] Re: Bittorrent client for Solaris

2007-05-04 Thread Milan Cermak

Ignacio Marambio Catán wrote:

On 5/3/07, Bart Smaalders <[EMAIL PROTECTED]> wrote:


So

Given the difficulties of incorporating the swt libraries needed
to make Azureus work on Solaris, what other BitTorrent client should
Solaris incorporate?

- Bart


what about the official client? solaris has python
http://download.bittorrent.com/dl/BitTorrent-5.0.7.tar.gz

nacho


I tried official client some time ago (it was my first experience with 
BitTorrent) and leave it behind. Now I'm using Azureus. On Linux, I mean.
Official BitTorrent client is really simple and a bit hard to use. And 
because of those swt problems on Solaris, Azureus also doesn't seem 
suitable for me. Azureus is also a bit much memory greedy.
So my vote goes to rtorrent (which was already mentioned) or could it be 
a new Firefox plug-in FoxTorrent? http://www.foxtorrent.com/


Milan Cermak

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


[osol-discuss] What is Mercurial distributiveness for?

2007-03-29 Thread Milan Cermak

Hi all,
being used to Subversion and CVS, I come over Mercurial. Looking at its 
ways of working, I can't understand what is the distributiveness for and 
why should I replicate whole repository with all its history just to 
change few files.

So what is the benefit of having distributed repository?

Thanks for kind explanation,
Milan Cermak
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org