Re: [gentoo-user] Re: emerge error
On Thu, 24 Jan 2008 13:46:04 + (UTC), James wrote: Then don't reboot. Mount another drive somewhere temporary, copy the contents of /var to it, then unmount /var and mount the new drive on /var. Reformat the original filesystem and reverse the process. Earlier I posted the partitions: /dev/hda3 18G 2.1G 16G 12% / udev 125M 2.6M 123M 3% /dev shm 125M 0 125M 0% /dev/shm /dev/hda1 393M 46M 347M 12% /boot since /var is part of / (on the same partition) will this still work? No, another reason to keep /var, and as much else as possible, away from /. Use a suitable filesystem, or the flash memory will die very quickly, especially if you put /var on it. What would be the best file system to use on said CF HD to extend the life? I usually use the reiserfs on boot and root (simple partioning scheme). But, I'm open to suggestions here. JFFS2, or budget on replacing the cards every couple of months. -- Neil Bothwick First Law of Laboratory Work: Hot glass looks exactly the same as cold glass. signature.asc Description: PGP signature
Re: [gentoo-user] Re: emerge error
On Jan 23, 2008 8:03 AM, James [EMAIL PROTECTED] wrote: KH gentoo-user at konstantinhansen.de writes: James Ausmus wrote: 1. Check your disk space, make sure it's not full Not a problem... 2. As root, do a chown -R portage:portage /var/cache/edb add the -c to chown -c, --changes like verbose but report only when a change is made Many of the files were owned by root:portage Now they are owned by portage:portage, but that did not fix the error: snip OK, try doing: emerge --metadata Also, have you done a emerge --sync since this started? Sounds like it might just be a cache corruption - if the cache was corrupted during the rsync process in an emerge--sync, then just doing a emerge --metadata won't help, but if was just corrupted on disk (in the /var/cache/edb dir), then a emerge --metadata might do it. HTH- James -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: emerge error
James wrote: SNIP Maybe the '/usr/bin/emerge' executable is corrupted. Can I just scp over a copy from another similar arch machine? Any other ideas? James http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml Dale :-) :-) -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: emerge error
On Wed, 23 Jan 2008 16:39:51 + (UTC), James wrote: ideas? fsck. If that fails, copy off the data you can and reformat, the filesystem is screwed. -- Neil Bothwick You shall know the truth, and you shall freak. signature.asc Description: PGP signature
Re: [gentoo-user] Re: emerge error
On Wed, 23 Jan 2008 18:33:19 + (UTC), James wrote: dd over ssh everything onto a 8G Compact Flash card that is plugged into another system and then install the CF card into an ide-to-cf socket reboot and then emerge-sync? think this will work? No, because it will copy the corruption too. You'll end up with a byte for byte copy of your broken filesystem. If fsck won't fix it, backup, reformat, restore is the only safe fix. -- Neil Bothwick To whom the gods destroy, they first teach Windows... signature.asc Description: PGP signature
Re: [gentoo-user] Re: emerge error
On Wed, 23 Jan 2008 20:08:00 + (UTC), James wrote: No, because it will copy the corruption too. You'll end up with a byte for byte copy of your broken filesystem. If fsck won't fix it, backup, reformat, restore is the only safe fix. If I reboot, I *may* loose the firewall completely, depending on what the drive does. The only safe thing is to build another firewall before rebooting the current firewall (then see if fsck will fix it)... Then don't reboot. Mount another drive somewhere temporary, copy the contents of /var to it, then unmount /var and mount the new drive on /var. Reformat the original filesystem and reverse the process. Either way, once I build a new firewall, I'm going to copy it to CF and be done with these old ide drives. Use a suitable filesystem, or the flash memory will die very quickly, especially if you put /var on it. -- Neil Bothwick New Intel opcode #007 PUKE: Put unmeaningful keywords everywhere signature.asc Description: PGP signature
Re: [gentoo-user] Re: emerge error
If you need another firewall in the interim, I would suggest giving IPCop a try. I've been using it as a gateway OS for 5 years now and it's been solid for the entire time. Or, if you'd really rather stick with Gentoo, you could run IPCop on another of your K6 machines until you rebuild the Gentoo one. -Hal Neil Bothwick wrote: On Wed, 23 Jan 2008 20:08:00 + (UTC), James wrote: No, because it will copy the corruption too. You'll end up with a byte for byte copy of your broken filesystem. If fsck won't fix it, backup, reformat, restore is the only safe fix. If I reboot, I *may* loose the firewall completely, depending on what the drive does. The only safe thing is to build another firewall before rebooting the current firewall (then see if fsck will fix it)... Then don't reboot. Mount another drive somewhere temporary, copy the contents of /var to it, then unmount /var and mount the new drive on /var. Reformat the original filesystem and reverse the process. Either way, once I build a new firewall, I'm going to copy it to CF and be done with these old ide drives. Use a suitable filesystem, or the flash memory will die very quickly, especially if you put /var on it. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: emerge error
On 01/23/08 16:39, James wrote: OSError: [Errno 13] Permission denied: '/var/cache/edb/dep/usr/portage/net-zope' Well here is the problem: in '/var/cache/edb/dep/usr/portage' drwxrwsr-x 2 root portage 1480 Jan 10 13:41 net-www ?? ? ?? ?? net-zope drwxrwsr-x 2 root portage 3024 Jan 22 22:29 perl-core But I cannot remove it? rm -rf ./net-zope rm: cannot remove `./net-zope': Permission denied cp /dev/null net-zope cp: accessing `net-zope': Permission denied rmdir net-zope rmdir: net-zope: Permission denied chown root:portage net-zope chown: cannot access `net-zope': Permission denied ideas? Try booting from Live Gentoo CD (or Knopix) mount the partition and delete that file. -- #Joseph GPG KeyID: ED0E1FB7 -- gentoo-user@lists.gentoo.org mailing list