Re: Problem with chown

2012-06-28 Thread Matthew Mondor
On Wed, 27 Jun 2012 23:20:36 -
David Lord net...@lordynet.org wrote:

 I tried NetBSD-6-BETA2 but had too many problems. 
 Attempted reinstalls of NetBSD-5 have all obviously
 failed.

Indeed, downgrading is usually more problematic, postinstall not being
of much use in this case
-- 
Matt


Re: Problem with chown

2012-06-28 Thread Hisashi T Fujinaka

On Thu, 28 Jun 2012, Matthew Mondor wrote:


On Wed, 27 Jun 2012 23:20:36 -
David Lord net...@lordynet.org wrote:


I tried NetBSD-6-BETA2 but had too many problems.
Attempted reinstalls of NetBSD-5 have all obviously
failed.


Indeed, downgrading is usually more problematic, postinstall not being
of much use in this case


Yeah, this is why I have a separate partition for /home for user data. I
copy off the etc files and start over, newfs-ing system partitions.

--
Hisashi T Fujinaka - ht...@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


Re: Problem with chown

2012-06-28 Thread David Lord
On 28 Jun 2012 at 9:15, Hisashi T Fujinaka wrote:

 On Thu, 28 Jun 2012, Matthew Mondor wrote:
 
  On Wed, 27 Jun 2012 23:20:36 -
  David Lord net...@lordynet.org wrote:
 
  I tried NetBSD-6-BETA2 but had too many problems.
  Attempted reinstalls of NetBSD-5 have all obviously
  failed.
 
  Indeed, downgrading is usually more problematic, postinstall not being
  of much use in this case
 
 Yeah, this is why I have a separate partition for /home for user data. I
 copy off the etc files and start over, newfs-ing system partitions.

I've no backup of /etc on this system so although it's
now booting NetBSD-6_BETA2 and I can see that not much
data has gone missing most of the contents of /etc were 
somehow deleted.

As I mentioned NetBSD-6 was giving problems, one of 
which is I can't use tne either of the distribution
cd's. I've manage to get back to being able to boot
NetBSD-6 by fist booting from a NetBSD-5 cd and 
copying from an incomplete archive of /etc then 
swapping to a netbsd-kernel.

My backup mirror and another system have both had
hdd failures.


cheers

David


 -- 
 Hisashi T Fujinaka - ht...@twofifty.com
 BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte




Re: Problem with chown

2012-06-27 Thread Hisashi T Fujinaka

On Wed, 27 Jun 2012, David Lord wrote:



Problem with chown

I've found that I have two files on with same name
on several of my systems:


-r-xr-xr-x  2 root  wheel  9256 Feb  2 16:54 /usr/sbin/chown
MD5 (/usr/sbin/chown) = fce92081f7907b04f0063e2f17f7f4e6
 9256  Feb  2  16:54  /usr/sbin/chown
above seems to work as expected


-r-xr-xr-x  1 root  wheel  9193 May 23 06:02 /sbin/chown
MD5 (/sbin/chown) = bd76dbd35bd23c59dbf224c831387a86
 9193  May 23  06:02  /sbin/chown
this gives an error
/sbin/chown: Undefined PLT symbol _libc_init (symnum =17)


I've not yet tracked down where the broken version
comes from, cdrom or build from source or other.


Anyone else seen this?


Yes, when kernel and userland got out of sync. I had to reinstall.

--
Hisashi T Fujinaka - ht...@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


Re: Problem with chown

2012-06-27 Thread Paul Goyette

This is on a 6.99.5 port-amd64 from early April...

# where chown | xargs ls -l
-r-xr-xr-x  1 root  wheel  12629 Apr 20 18:39 /sbin/chown
lrwxrwxr-x  1 root  wheel 11 Mar 26 10:52 /usr/sbin/chown - /sbin/chown
#



On Wed, 27 Jun 2012, David Lord wrote:



Problem with chown

I've found that I have two files on with same name
on several of my systems:


-r-xr-xr-x  2 root  wheel  9256 Feb  2 16:54 /usr/sbin/chown
MD5 (/usr/sbin/chown) = fce92081f7907b04f0063e2f17f7f4e6
 9256  Feb  2  16:54  /usr/sbin/chown
above seems to work as expected


-r-xr-xr-x  1 root  wheel  9193 May 23 06:02 /sbin/chown
MD5 (/sbin/chown) = bd76dbd35bd23c59dbf224c831387a86
 9193  May 23  06:02  /sbin/chown
this gives an error
/sbin/chown: Undefined PLT symbol _libc_init (symnum =17)


I've not yet tracked down where the broken version
comes from, cdrom or build from source or other.


Anyone else seen this?


David



!DSPAM:4feb87d22391129449192!





-
| Paul Goyette | PGP Key fingerprint: | E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com|
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |  | pgoyette at netbsd.org  |
-


Re: Problem with chown

2012-06-27 Thread David Lord
On 27 Jun 2012 at 15:43, Paul Goyette wrote:

 This is on a 6.99.5 port-amd64 from early April...
 
 # where chown | xargs ls -l
 -r-xr-xr-x  1 root  wheel  12629 Apr 20 18:39 /sbin/chown
 lrwxrwxr-x  1 root  wheel 11 Mar 26 10:52 /usr/sbin/chown - /sbin/chown
 #
 

Thanks

The file is from NetBSD-6.

I tried NetBSD-6-BETA2 but had too many problems. 
Attempted reinstalls of NetBSD-5 have all obviously
failed.

I'll try to remove the bogus files first before I
try another reinstall.


cheers

David




Re: Problem with chown

2012-06-27 Thread Hisashi T Fujinaka

On Wed, 27 Jun 2012, Hisashi T Fujinaka wrote:


On Wed, 27 Jun 2012, David Lord wrote:



Problem with chown

I've found that I have two files on with same name
on several of my systems:


-r-xr-xr-x  2 root  wheel  9256 Feb  2 16:54 /usr/sbin/chown
MD5 (/usr/sbin/chown) = fce92081f7907b04f0063e2f17f7f4e6
 9256  Feb  2  16:54  /usr/sbin/chown
above seems to work as expected


-r-xr-xr-x  1 root  wheel  9193 May 23 06:02 /sbin/chown
MD5 (/sbin/chown) = bd76dbd35bd23c59dbf224c831387a86
 9193  May 23  06:02  /sbin/chown
this gives an error
/sbin/chown: Undefined PLT symbol _libc_init (symnum =17)


I've not yet tracked down where the broken version
comes from, cdrom or build from source or other.


Anyone else seen this?


Yes, when kernel and userland got out of sync. I had to reinstall.


I can't remember if it was when I went from 5 - 6beta2 or when I went
from 6beta2 back to 5.

--
Hisashi T Fujinaka - ht...@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


Re: Problem with chown

2012-06-27 Thread Paul Goyette

And from a recent build.sh -u release I have the same thing:

# cd /build/netbsd-local/dest/amd64/
# ls -l sbin/chown usr/sbin/chown
-r-xr-xr-x  1 root  wheel  12629 Jun 24 11:11 sbin/chown
lrwxrwxr-x  1 root  wheel 11 Mar 26 10:52 usr/sbin/chown - /sbin/chown
#


On Wed, 27 Jun 2012, Paul Goyette wrote:


This is on a 6.99.5 port-amd64 from early April...

# where chown | xargs ls -l
-r-xr-xr-x  1 root  wheel  12629 Apr 20 18:39 /sbin/chown
lrwxrwxr-x  1 root  wheel 11 Mar 26 10:52 /usr/sbin/chown - /sbin/chown
#



On Wed, 27 Jun 2012, David Lord wrote:



Problem with chown

I've found that I have two files on with same name
on several of my systems:


-r-xr-xr-x  2 root  wheel  9256 Feb  2 16:54 /usr/sbin/chown
MD5 (/usr/sbin/chown) = fce92081f7907b04f0063e2f17f7f4e6
 9256  Feb  2  16:54  /usr/sbin/chown
above seems to work as expected


-r-xr-xr-x  1 root  wheel  9193 May 23 06:02 /sbin/chown
MD5 (/sbin/chown) = bd76dbd35bd23c59dbf224c831387a86
 9193  May 23  06:02  /sbin/chown
this gives an error
/sbin/chown: Undefined PLT symbol _libc_init (symnum =17)


I've not yet tracked down where the broken version
comes from, cdrom or build from source or other.


Anyone else seen this?


David









-
| Paul Goyette | PGP Key fingerprint: | E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com|
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |  | pgoyette at netbsd.org  |
-

!DSPAM:4feb8c922391410361320!





-
| Paul Goyette | PGP Key fingerprint: | E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com|
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |  | pgoyette at netbsd.org  |
-


re: Problem with chown

2012-06-27 Thread matthew green

 I've found that I have two files on with same name
 on several of my systems:
 
 
 -r-xr-xr-x  2 root  wheel  9256 Feb  2 16:54 /usr/sbin/chown
 MD5 (/usr/sbin/chown) = fce92081f7907b04f0063e2f17f7f4e6
   9256  Feb  2  16:54  /usr/sbin/chown
 above seems to work as expected
 
 
 -r-xr-xr-x  1 root  wheel  9193 May 23 06:02 /sbin/chown
 MD5 (/sbin/chown) = bd76dbd35bd23c59dbf224c831387a86
   9193  May 23  06:02  /sbin/chown
 this gives an error
 /sbin/chown: Undefined PLT symbol _libc_init (symnum =17)
 
 
 I've not yet tracked down where the broken version 
 comes from, cdrom or build from source or other.
 
 
 Anyone else seen this?

you've got netbsd-5 and netbsd-6 files installed together.
since /sbin/init is the newer one, i'm going to assume you
installed netbsd-6 and then netbsd-6, and that's how it got
into this state.

_libc_init is a symbol needed by newer programs in netbsd,
and provided by the libc.so in netbsd-6.


.mrg.