HD Space
People, After a cvsup, installworld and portupgrade ... I have installed a new optimized kernel. After that I have installed KDE3 in my FreeBSd 5.3 machine. The problem is now /usr is 4 GB used against 1 G free. How is possible to clean /usr to dont have any problems in future upgrades ? Thanks a lot Giuliano -- Giuliano Cardozo Medalha Engenheiro de Redes PGP Key ID 8158E0BD pgp.mit.edu smime.p7s Description: S/MIME Cryptographic Signature
Re: HD Space
On Sunday 05 December 2004 09:02 pm, Giuliano Cardozo Medalha wrote: People, After a cvsup, installworld and portupgrade ... I have installed a new optimized kernel. After that I have installed KDE3 in my FreeBSd 5.3 machine. The problem is now /usr is 4 GB used against 1 G free. How is possible to clean /usr to dont have any problems in future upgrades ? Thanks a lot 1) Make sure all the temp build stuff is gone from /usr/ports cd /usr/ports rm -r */*/work 2) Clean out distfiles rm -r /usr/ports/distfiles/* 3) Remove buildworld object files chflags -R noschg /usr/obj/usr rm -r /usr/obj/usr -- Anish Mistry pgpW0JK142ZCm.pgp Description: PGP signature
Re: HD Space
At 12:02 AM -0200 12/6/04, Giuliano Cardozo Medalha wrote: People, After a cvsup, installworld and portupgrade ... I have installed a new optimized kernel. After that I have installed KDE3 in my FreeBSd 5.3 machine. The problem is now /usr is 4 GB used against 1 G free. How is possible to clean /usr to dont have any problems in future upgrades ? See if it looks any better after entering the commands: cd /usr/src make cleanworld -- Garance Alistair Drosehn= [EMAIL PROTECTED] Senior Systems Programmer or [EMAIL PROTECTED] Rensselaer Polytechnic Instituteor [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: HD Space
On Dec 5, 2004, at 8:48 PM, Garance A Drosihn wrote: See if it looks any better after entering the commands: cd /usr/src make cleanworld Could simply rm -rf /usr/obj/usr Also portsclean -CD will remove any stray /usr/ports/*/*/work directories. Will also remove the /usr/ports/distfiles/* which no longer match current port versions. -- David Kelly N4HHE, [EMAIL PROTECTED] Whom computers would destroy, they must first drive mad. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
zero out unused HD space
I am trying to zero out all the unused disk space in the FBSD system Hard Drive. Using this command dd if=/dev/zero of=filler bs=1m but get error message saying file system full and have file named filler. I don't think this commands is doing what I want. How can I check to see if the unused space is all zeros? Help please. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: zero out unused HD space
On Thu, Jan 15, 2004 at 08:25:27PM -0500, fbsd_user wrote: I am trying to zero out all the unused disk space in the FBSD system Hard Drive. Using this command dd if=/dev/zero of=filler bs=1m but get error message saying file system full and have file named filler. I don't think this commands is doing what I want. Why not? All this means that what used to be unused disk space has now been taken by the file filler, which happens to be full of zeros. If you now rm filler, this frees up the disk space again; the now free disk-space now contains mostly zeros (it won't stay that way for long on an active system). -- Jonathan Chen [EMAIL PROTECTED] -- Opportunity does not knock, it presents itself when you beat down the door - W.E. Channing ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding additional HD space
The 10 GB Hard Disk should have a BIOS Limitation jumper that will make the BIOS think it is a 508 MB drive. Set that jumper, and the system should boot. Once you have that drive in there, you could create the file system structure on it however you want, but place the / and /boot partitions below 500 MB so that the system will boot when you take out the old drive. Note that you will have to tell fdisk the correct geometry of the disk. Otherwise, create the partitions exactly how you have them on your 2 GB drive, making them larger as you wish, and dump + restore the files from one disk to the other. Once everything is copied over, you can install the boot sector on the new drive with fdisk -B -b /boot/mbr NOTE: Replace /boot/mbr with the path of the new hard disk! For example, /mnt/boot/mbr if you mounted the new disk under /mnt. After this is done, you can set the jumpers on the new drive to match the position of the old one (master, for example) and simply swap it out. Reboot, and enjoy. Marco Radzinschi E-Mail: [EMAIL PROTECTED] On Sat, 9 Nov 2002, Mike Loiterman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My current 2GB HD is reaching maximum capacity, is fairly old and probably about to die. What is the best way to go about replacing the drive? Few points to keep in mind: 1. The system cannot deal with HD drives over, I believe, 8 gigs. 2. I suppose it goes without saying, but I'll say it anyway: its critical to maintain the existing data! The machine is my web, mail, ssh, vpn, and ftp server. Needles to say I do a full backup every night. Ideally I'd like to buy new drive and do a ghost of the old drive onto the new drive. If you're not familiar with the term ghost -- in the Windows world there is a piece of software the allows you to do a bit for bit copy of one drive to another and accordingly its called Norton Ghost. Would doing a full restore from my backup be equivalent to this? If so, how do I preserve the partition structure and how do I actually perform the task? Do I boot using the old HD, do the restore onto the new drive, shutdown, unhook the old drive and reboot? How do I know the data is unaltered and is an exact copy? My last question -- How can I get the system to recognize larger hard drives? I have been successful getting older systems to recognize large drives using utilities such as MaxBlaster from Maxtor, but that was using Windows. Are there similar utilities for FreeBSD? I tried adding a 10 gig drive the system in question but the system refused to boot with that drive in any place on the IDE chain. I was also unsuccessful in using the MaxBlaster to enable the drive for use on the system. Maybe I was doing something wrong? Thanks in advance. ... Randomly Generated Quote: 'A government that is big enough to give you all you want is big enough to take it all away.' -- Barry Goldwater Mike Loiterman PGP Key 0xD1B9D18E http://www.ascendency.net -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 Comment: Message digitally signed by Mike Loiterman iQA/AwUBPczK9WjZbUnRudGOEQI5cwCgtUceNvjBESBz1WE2Oh0U1oKy+TEAnj5q P00iJZZ6WyVf1EvckZlcWr8v =gRXu -END PGP SIGNATURE- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Adding additional HD space
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The 10 GB Hard Disk should have a BIOS Limitation jumper that will make the BIOS think it is a 508 MB drive. Set that jumper, and the system should boot. I thought so too. I tried setting it, but I couldn't get it to boot. I guess the drive *could* be damaged, but I just pulled it out of a Windows box where it was working fine. It still has XP on it. Would that make a difference? I never reformatted it after I pulled it out. Once you have that drive in there, you could create the file system structure on it however you want, but place the / and /boot partitions below 500 MB so that the system will boot when you take out the old drive. Do you mean make the / and /boot partitions *less* then 500 MB or *below*. If you mean below, I'm not sure how to do that. Note that you will have to tell fdisk the correct geometry of the disk. I don't know how to do this or at least I don't remeber. Otherwise, create the partitions exactly how you have them on your 2 GB drive, making them larger as you wish, and dump + restore the files from one disk to the other. When you say dump + restore you mean do a level 0 dump and then a restore? Is that correct? ... Randomly Generated Quote: The moral of the story is: Kill the parents kill the children. Mike Loiterman PGP Key 0xD1B9D18E http://www.ascendency.net -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 Comment: Message digitally signed by Mike Loiterman iQA/AwUBPc7iZ2jZbUnRudGOEQLmGACg3Ql+Y6arFF74pECW1QUqTTqiCdQAoMx7 z0+lIzJj2pSAGxUP+w0eEbU1 =oMj+ -END PGP SIGNATURE- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message