From owner-freebsd-isp@FreeBSD.ORG Fri Oct 10 19:12:57 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDD9716A4B3 for ; Fri, 10 Oct 2003 19:12:57 -0700 (PDT) Received: from bilver.wjv.com (user38.net339.fl.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FF2A43FAF for ; Fri, 10 Oct 2003 19:12:56 -0700 (PDT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by bilver.wjv.com (8.12.10/8.12.9) with ESMTP id h9B2CsHl010023 for ; Fri, 10 Oct 2003 22:12:54 -0400 (EDT) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.10/8.12.9/Submit) id h9B2Cs9p009996 for freebsd-isp@freebsd.org; Fri, 10 Oct 2003 22:12:54 -0400 (EDT) (envelope-from bv) Date: Fri, 10 Oct 2003 22:12:54 -0400 From: Bill Vermillion To: freebsd-isp@freebsd.org Message-ID: <20031011021254.GB45699@wjv.com> References: <001701c38f75$aa4b19e0$dec2fea9@computer> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.5 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Re: Harddisk Problem X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2003 02:12:58 -0000 When asked his whereabouts on Sat, Oct 11, 2003 at 11:57 , Lachlan took the fifth, drank it, and then slurred: This really isn't an ISP related issue and more probably it should have been posted to FreeBSD-questions - but: > On some hdd's there is an option on the jumper settings next to > master and slave. That for some reason, limits the size of the > hdd. I don't know why this option exists, but it does. Also, > you never get 70GB out of a 70GB hdd. Once again, i don't know > why. It's just the way it is. He really should try df with the -H option He may find his space is there. Note this system as below - with the first output using -h and the second using -H. Note particularl /dev/ad0s2g. Add the total of used and available and you come up with 28.8G total space with -h but you get 31.1G with the -H. Extroplating that to his larger drive I suspec he will see the correct amount. The -H is 'human readble' and it is a decimal byte count - the way manufacturers show their drives with 1,000,000 bytes equalling 1MB, while the -h used blocks of 1024 and thus will look like there is less space. Filesystem Size Used Avail Capacity Mounted on /dev/ad0s2a 123M 43M 70M 38% / /dev/ad0s2g 32G 3.8G 25G 13% /usr /dev/ad0s2f 3.9G 2.0K 3.6G 0% /usr2 /dev/ad0s2e 123M 30M 83M 27% /var procfs 4.0K 4.0K 0B 100% /proc Filesystem Size Used Avail Capacity Mounted on /dev/ad0s2a 129M 45M 73M 38% / /dev/ad0s2g 34G 4.1G 27G 13% /usr /dev/ad0s2f 4.2G 2.0K 3.9G 0% /usr2 /dev/ad0s2e 129M 31M 87M 27% /var procfs 4.1K 4.1K 0B 100% /proc > > -----Original Message----- > From: owner-freebsd-isp@freebsd.org [mailto:owner-freebsd-isp@freebsd.org]On > Behalf Of PsYxAkIaS (FreeBSD) > Sent: Saturday, October 11, 2003 7:30 AM > To: freebsd-isp@freebsd.org > Subject: Harddisk Problem > > > Hello, > > We just installed and mounted a 2nd HDD(secondary ide channel) on a > Dedicated Server on FreeBSD 4.8 and look what it gives: > > ] df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 2015918 52114 1802532 3% / > /dev/ad0s1f 22479870 16924774 3756708 82% /usr > /dev/ad0s1e 4031950 73418 3635976 2% /var > procfs 4 4 0 100% /proc > /dev/ad2s1e 76958474 4 70801794 0% /drive2 > > ] df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/ad0s1a 1.9G 51M 1.7G 3% / > /dev/ad0s1f 21G 16G 3.6G 82% /usr > /dev/ad0s1e 3.8G 72M 3.5G 2% /var > procfs 4.0K 4.0K 0B 100% /proc > /dev/ad2s1e 73G 4.0K 68G 0% /drive2 > > ] cat /etc/fstab > # See the fstab(5) manual page for important information on automatic mounts > # of network filesystems before modifying this file. > # > # Device Mountpoint FStype Options Dump > Pass# > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > /dev/ad0s1f /usr ufs rw 2 2 > /dev/ad0s1e /var ufs rw 2 2 > /dev/acd0c /cdrom cd9660 ro,noauto 0 0 > proc /proc procfs rw 0 0 > /dev/ad2s1e /drive2 ufs rw 2 2 > > The problem is that from 73GB (80gb hdd) it only sees free 68GB. > > How can i check if it has bad sectors? A friend suggested me low-level > format but I never done that before under unix. > > Also, do i need to be in single-user (I dont have physical access, only > remote root via ssh). > > > Thank you. > _______________________________________________ > freebsd-isp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isp > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org" > > > > _______________________________________________ > freebsd-isp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isp > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org" -- Bill Vermillion - bv @ wjv . com