9fans archive / 1998 / 07 / 3 /    prev next

From: Franklin 973930@dcc...
Subject: [9fans] Problems Installing Plan 9
Date: Fri, 03 Jul 1998 11:06:08 -0300

1. I have a PC Pentium 90 MHz with the following hard disk
configurations:

hd0:

0 *TYPE: FAT(HUGE)          LBA:            63 ---->  524159
1  TYPE: EXTENDED           LBA:    524160 ----> 1040255
2  TYPE: HPFS                      LBA:    524223 ----> 1040255
3  TYPE: LINUX(SWAP)      LBA:  1040256 ----> 1104767
4  TYPE: LINUX                   LBA:   1104768 ----> 2128895


hd1:

0  TYPE: EXTENDED        LBA:       8064 ----> 6273791
1  TYPE: HPFS                   LBA:       8127 ----> 2104703
2  TYPE: EXTENDED        LBA: 2104704 ----> 4201343
3 *TYPE: FAT(HUGE)       LBA: 2104767 ----> 4201343
4  TYPE: EMPTY               LBA: 4201344 ----> 6281854


I have  installed Plan 9 (CD version) in the hd1 disk on april/98
without problems.
Since then, I have tried to re-install the Plan 9 in this PC and I
always get the same error messages
(with the directory plan9 both on hd0 and hd1 disk):

      Problem Acessing File
      File: /n/c/plan9
      Errstr: permission denied
      Press almost any key to continue

      Problem Acessing File
      File: /n/c/plan9/rc/bin/cpurc
      Errstr: file does not exist
      Press almost any key to continue


      Problem Acessing File
      File: /n/c/plan9/lib/namespace
      Errstr: file does not exist
      Press almost any key to continue


Inspecting the file /sys/lib/pcdist/src/inst.c, I concluded that the
error ocurrs in the rcp() function in the following point:

    if(dirstat(todir, &b)< 0){
      scroll(todir);
      fd=create(todir, OREAD, CHDIR+0777L);
      if(fd<0){
        warn(todir); /* HERE ERROR MESSAGE */
        return;
      }
      close(fd);

The rcp() function is invoked from the install() function.

I changed, in the library function create(todir, OREAD, CHDIR+0777L),
the omode flag from OREAD to OWRITE and the same error continues:
Permission denied.

It looks like I don't have permission to write(or create) the "plan9"
directory in the disk. But the disc isn't
protected against writing, because from the DOS prompt I can create
files and diretories.


2. I installed Plan 9 (CD version) in a PC with a network board
(type=NE2000) for ISA bus. I installed  Plan 9
sucessfully, but at boot time, I get the following message:

   ipconfig: can't write bootp 'interrupted', hope that's OK.

   ipconfig: setip 143.106.23.196    255.255.255.192

   ipconfig: add 0.0.0.0    0.0.0.0  143.106.23.193


And I could not communicate with others machines (via telnet,ftpfs etc).

I tried this with several ISA network boards and I always got the same
error message.
Then I replaced the ISA network board with a PCI network board and it
works fine. Doesn't Plan 9 work with vanilla ISA network cards ( these
are 3 year old cards)?

The error ocurrs in the /sys/src/cmd/ip/ipconfig.c file, bootp()
function:

    for(rp=0; rp==0 && tries++ < 10;){
       alarm(1000);
       if(write(fd, &req, sizeof(req))<0){
         fprint(2, "ipconfig:can't write bootp'%r', hope that's OK\n");
         close(fd);
         return -1;
       }


3. I installed the Plan 9 as a terminal (option 2: Install CD-ROM to
local drive) in a SCSI PC and it works. But, in the same PC, when I try
to install a file server (Starting up the file server after the Option:
Make a PC file server boot disk), I get the following message:

Configuration:

     config: service ares
     config: ip 143.106.23.196
     config: ipgw 143.106.23.193
     config: ipmask 255.255.255.192 (already try 255.255.0.0)
     config: config w0
     config: filsys main w0
     config: ream main
     config: end


Message that I get:


  sysinit
  config w0
  devinit D6.0.0.0

 The system then halts and the floppy drive led stays lighted.

I have the following configuration in the /lib/ndb/local file:

  dom=dcc.unicamp.br  ip=143.106.7.8

  sys=ares

    dom=ares.dcc.unicamp.br
    ip=143.106.23.196   ether=0000214bb1dd


  ipnet=ic-unicamp-net   ip=143.106.0.0  ipmask=255.255.255.192
     ipgw=143.106.23.193

 And the following configuration in the ipifc and iproute files:


   /'#P'/ipifc:

     #10  1500  143.106.23.195   255.255.255.192    143.106.23.192

  /'#P'/iproute

    0.0.0.0  &  0.0.0.0  ---->  143.106.23.193


SCSI0: aha1542

sd0:

  0 *TYPE: FAT(HUGE)    LBA:         32 ---->  409599
  1  TYPE: EMPTY            LBA: 409600 ----> 2110811


What did we miss? Any suggestions?

Franklin