Drive Space
Hi, Just wondering if someone could explain what's going on with my drive space. I've got 2 x 500GB and 1 x 1.5TB SATA drives. /dev/ad5p1 on /data/backup (ufs, NFS exported, local, soft-updates) /dev/ad6s1a on /data/windows (ufs, NFS exported, local) /dev/ad7s1a on /data/Public (ufs, NFS exported, local) What I can't understand is why when I do 'df -h' or 'df -k' the Used and Avail amounts don't add up to the Size: # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ad5p1 1.3T131G1.2T10%/data/backup /dev/ad6s1a451G113G302G27%/data/windows /dev/ad7s1a451G 31G384G 8%/data/Public # df -k Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/ad5p1 1442083968 137575328 129008780410%/data/backup /dev/ad6s1a 473012182 118932864 31623834427%/data/windows /dev/ad7s1a 473012182 32967330 402203878 8%/data/Public Can someone explain where I'm going wrong? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Drive Space
On Thu, May 27, 2010 at 10:22 PM, Steve Laurie st...@foo-unix.org wrote: Hi, Just wondering if someone could explain what's going on with my drive space. I've got 2 x 500GB and 1 x 1.5TB SATA drives. /dev/ad5p1 on /data/backup (ufs, NFS exported, local, soft-updates) /dev/ad6s1a on /data/windows (ufs, NFS exported, local) /dev/ad7s1a on /data/Public (ufs, NFS exported, local) What I can't understand is why when I do 'df -h' or 'df -k' the Used and Avail amounts don't add up to the Size: # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/ad5p1 1.3T131G1.2T10%/data/backup /dev/ad6s1a451G113G302G27%/data/windows /dev/ad7s1a451G 31G384G 8%/data/Public # df -k Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/ad5p1 1442083968 137575328 129008780410%/data/backup /dev/ad6s1a 473012182 118932864 31623834427%/data/windows /dev/ad7s1a 473012182 32967330 402203878 8%/data/Public Can someone explain where I'm going wrong? Each filesystem has a reversed amount, it defaults to 8%. -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Drive Space
On Thu, May 27, 2010 at 11:16 PM, Adam Vande More amvandem...@gmail.comwrote: Each filesystem has a reversed amount, it defaults to 8%. reserved man newfs and http://www.freebsd.org/doc/en/books/faq/disks.html#DISK-MORE-THAN-FULL -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Installation and Hard Drive space
jam man disturbed my sleep to write: I've been trying to load up this laptop (with 4.9 if it matters) which only has 750megs of storage...I thought this should be enough, but I get errors while installing: /usr: files system full.I hope I dont have install skack (lol)! I have /usr partitioned at 620 megs (/ at 80)or so, and have chosen to install minimal without ports (I have tried this in expert mode and standard mode, but still recieve the same error). Is there something wrong, or does the most minimal installation of FreeBSD need more than 620megs in /usr??? Any reply would be appreciated. A minimal installation usually takes about 120MB. Are you adding X, or any additional packages? -- Saint Aardvark the Carpeted [EMAIL PROTECTED] Because the plural of Anecdote is Myth. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Installation and Hard Drive space
I've been trying to load up this laptop (with 4.9 if it matters) which only has 750megs of storage...I thought this should be enough, but I get errors while installing: /usr: files system full.I hope I dont have install skack (lol)! I have /usr partitioned at 620 megs (/ at 80)or so, and have chosen to install minimal without ports (I have tried this in expert mode and standard mode, but still recieve the same error). Is there something wrong, or does the most minimal installation of FreeBSD need more than 620megs in /usr??? Any reply would be appreciated. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
drive space shell script help ?
Im trying to write a script that will email me when drive space on any given partition is above a certain value. i was trying this ...but no working ... #!/bin/sh # this is a script to check drive space and email HSD dept. # cd ~bbailey rm ~bbailey/drvspc.txt df -k | awk '{print$5}' ~bbailey/drvspc.txt cat drvspc.txt while read i do if [$i '89']; then mail -s check drive space on core [EMAIL PROTECTED] fi echo done ME not being that great at shell scripting yet ...i was wondering what im doing wrong here ?? any and all help is greatly appreciated thanx -- Brent Bailey CCNA Bmyster LLC Computer Networking and Webhosting Network Engineer, Webmaster, President http://www.bmyster.com [EMAIL PROTECTED] 207-247-8330 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: drive space shell script help ?
#!/bin/sh # this is a script to check drive space and email HSD dept. # cd ~bbailey rm ~bbailey/drvspc.txt df -k | awk '{print$5}' ~bbailey/drvspc.txt cat drvspc.txt while read i do if [$i '89']; then This line should be: if [ $i -gt 89 ] ; then The spaces between the leading and trailing brackets are mandatory, and you had 2 spaces between the ; and 'then', and the comparison operator for integers is '-gt' for 'greater than'. I don't believe you need the ticks around 89 either. A great source for help: http://www.tldp.org/LDP/abs/html/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: drive space shell script help ?
The more I play with your script, the more fun it becomes. #!/bin/sh # this is a script to check drive space and email HSD dept. # cd ~bbailey rm drvspc.txt # Once I'm in ~bbailey, I don't need the complete path to any files there. df -k | # You have to get rid of the word 'Capacity' or your comparison will fail, grep -v Capacity | # There's no need to check the /proc filesystem, it'll always be full, grep -v /proc | awk '{print$5}' | # You have to use sed to eliminate the % from df -k or the comparison will fail. sed -e 's/%//' drvspc.txt cat drvspc.txt | while read i do if [ $i -gt 89 ] ; then mail -s check drive space on core [EMAIL PROTECTED] fi done # Quotes not necessary when echoing a single word, but I wouldn't do this, you # might want to schedule this with cron and it'll clutter up your screen # if you tell it to say 'done' every time it runs. echo done exit 0 Thanks, Charles Got a computer with idle CPU time? Join [EMAIL PROTECTED] and help make history! http://setiathome.ssl.berkeley.edu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: drive space shell script help ?
Awesome that worked ..Im also going to try some of the other options you had mentioned..I wanted to thank you for your help :-) This has got to be the best dam mailing list there is :-) -- Brent Bailey CCNA Bmyster LLC Computer Networking and Webhosting Network Engineer, Webmaster, President http://www.bmyster.com [EMAIL PROTECTED] 207-247-8330 The more I play with your script, the more fun it becomes. #!/bin/sh # this is a script to check drive space and email HSD dept. # cd ~bbailey rm drvspc.txt # Once I'm in ~bbailey, I don't need the complete path to any files there. df -k | # You have to get rid of the word 'Capacity' or your comparison will fail, grep -v Capacity | # There's no need to check the /proc filesystem, it'll always be full, grep -v /proc | awk '{print$5}' | # You have to use sed to eliminate the % from df -k or the comparison will fail. sed -e 's/%//' drvspc.txt cat drvspc.txt | while read i do if [ $i -gt 89 ] ; then mail -s check drive space on core [EMAIL PROTECTED] fi done # Quotes not necessary when echoing a single word, but I wouldn't do this, you # might want to schedule this with cron and it'll clutter up your screen # if you tell it to say 'done' every time it runs. echo done exit 0 Thanks, Charles Got a computer with idle CPU time? Join [EMAIL PROTECTED] and help make history! http://setiathome.ssl.berkeley.edu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Drive Space?
Newbie here, How can you tell how much free drive space you have with v4.5-stable FreeBSD? use df(1) generally you wantdf -k to make it display in kilobytes ordf -m to make it display in megabytes You might also want to use -l if you only want local disk (not NFS) jerry His Faithful Servant, Mark-Nathaniel Weisman President / CEO Infinite Visions Educational Systems Inc. Anchorage, Alaska http://www.ivedsys.com [EMAIL PROTECTED] 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: Drive Space?
On Tue, 3 Dec 2002, Mark-Nathaniel Weisman wrote: Newbie here, How can you tell how much free drive space you have with v4.5-stable FreeBSD? His Faithful Servant, Mark-Nathaniel Weisman President / CEO Infinite Visions Educational Systems Inc. Anchorage, Alaska http://www.ivedsys.com [EMAIL PROTECTED] df (disk free) Rus -- http://www.fsck.me.uk - My blog http://shells.fsck.me.uk - Hosting how you want it. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Missing hard-drive space?
I installed FreeBSD recently, and noticed something strange when I run df: (15:28:00) proteus:~/$ uname -a FreeBSD proteus.res.cmu.edu 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Tue Sep 10 20:21:39 EDT 2002 [EMAIL PROTECTED]:/usr/src/sys/compile/adam i386 (15:28:02) proteus:~/$ df -m Filesystem 1M-blocks Used Avail Capacity Mounted on /dev/ad1s3a14332 2930 1025422%/ procfs 0 0 0 100%/proc /dev/ad0s1 28609 12301 1630743%/mnt/msdos linprocfs 0 0 0 100% /usr/compat/linux/proc /dev/ad1s1 14638 8782 585660%/mnt/msdos2 linprocfs 0 0 0 100% /usr/compat/linux/proc (15:28:06) proteus:~/$ I have BSD installed on /dev/ad1s3a. The minor questions I have are why does linprocfs show up twice, and why does my swap not show up? But the big question is where did the missing HD space on ad1s3a go? 14332M total - (2930 usedM + 10254M avail) = 1148M unaccounted for. My swap (on /dev/ad1s2) is only 94M. Anyone have any ideas? Thanks, Adam To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Missing hard-drive space?
On Sun, 22 Sep 2002, Adam Bender wrote: I installed FreeBSD recently, and noticed something strange when I run df: (15:28:00) proteus:~/$ uname -a FreeBSD proteus.res.cmu.edu 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Tue Sep 10 20:21:39 EDT 2002 [EMAIL PROTECTED]:/usr/src/sys/compile/adam i386 (15:28:02) proteus:~/$ df -m Filesystem 1M-blocks Used Avail Capacity Mounted on /dev/ad1s3a14332 2930 1025422%/ procfs 0 0 0 100%/proc /dev/ad0s1 28609 12301 1630743%/mnt/msdos linprocfs 0 0 0 100% /usr/compat/linux/proc /dev/ad1s1 14638 8782 585660%/mnt/msdos2 linprocfs 0 0 0 100% /usr/compat/linux/proc (15:28:06) proteus:~/$ I have BSD installed on /dev/ad1s3a. The minor questions I have are why does linprocfs show up twice, and why does my swap not show up? But the Linprocfs shows up twice because you have mounted it twice, probably by mistake. If it does not appear twice in /etc/fstab, I don't know how it happened, but you can have any number of them just by running mount /usr/compat/linux/proc lots of times. Most people only mount it once, though :-) Swap space is not shown by mount. You can view your swap partitions with swapinfo or pstat -s. big question is where did the missing HD space on ad1s3a go? 14332M total - (2930 usedM + 10254M avail) = 1148M unaccounted for. My swap (on /dev/ad1s2) is only 94M. Anyone have any ideas? That is the 8% reserved for root use (actually the space is reserved so FFS can do a decent housekeeping job, but root can use it in an emergency). See http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#DISK-MORE-THAN-FULL. $.02, /Mikko To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message