LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 04-17-2004, 01:32 PM   #1
Greg21
Member
 
Registered: Jan 2002
Posts: 72

Rep: Reputation: 15
new disk wrong size?


I recently bought a 120 gig hard drive and proceeded to install it on my freeBSD box.

Everything went fine, but when I mount the drive as a samba share on my windows box it reads that the drive's total size is 108 GB and that 99.6 GB are free (even though I haven't put anything on it yet!).

The other hard drive I share is a 40 gig that reads a total size of 34.7 GB with 30 GB free. I forget the "acutal" size of a 40 gig HD, but 34.7 sounds reasonable. I have also used about 4 GB on that drive, making the free space sound reasonable.

I'm confused. If there is any other information I can provide that would be helpful, let me know (and how to get at that information).

Thanks,
Greg
 
Old 04-17-2004, 02:04 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,806

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
What does freeBSD say for size and free space?

What type of file system are you using for the share?
ext2 and ext3 partitions are by default formatted with a 5% reserve space for root.

Last edited by michaelk; 04-17-2004 at 02:06 PM.
 
Old 04-17-2004, 03:01 PM   #3
Greg21
Member
 
Registered: Jan 2002
Posts: 72

Original Poster
Rep: Reputation: 15
Its formatted in whatever sysinstall formats to by default.

How do I ask freeBSD about the availible space on the drives?

greg
 
Old 04-17-2004, 03:29 PM   #4
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
df -h

Anyways it is normal for your pc to think your 120 gig drive is about 110gigs. This is due to the filesystem, some of the disk is used to handle such things as backup's, and temporary storage for reorganization of the memory blocks. Windows does the same thing etc...

UFS is the default for bsd anyways we dont use smelly ext2 or ext3 because we dont want gpl contamination.

Last edited by Stack; 04-17-2004 at 03:38 PM.
 
Old 04-17-2004, 04:00 PM   #5
Greg21
Member
 
Registered: Jan 2002
Posts: 72

Original Poster
Rep: Reputation: 15
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 248M 55M 173M 24% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1e 248M 1.3M 227M 1% /tmp
/dev/ad0s1f 35G 2.0G 30G 6% /usr
/dev/ad0s1d 248M 19M 208M 9% /var
/dev/ad1s1d 108G 2.0K 100G 0% /mnt/storage

How does a disk of capacity 108 have only 100G availible with 0% usage?

Also, shouldn't my 120 GB hard-drive have a size more around 117ish?

(thanks for helping)

Greg
 
Old 04-17-2004, 05:46 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,806

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
I forgot about ufs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB external Disk reports wrong size alans Linux - Hardware 1 03-17-2005 08:57 AM
Gnome gets wrong disk size of NFS volumes (FC3, x86_64) otzenpunk Fedora 0 12-02-2004 11:15 PM
Why should you give the size of the swap disk as twice the size of RAM vmniza Linux - Newbie 3 09-17-2004 02:13 AM
df returning wrong disk size delta7 Debian 4 08-20-2004 04:10 PM
SCSI-controller reports wrong disk size Gardener Linux - Hardware 2 08-13-2002 08:23 PM


All times are GMT -5. The time now is 07:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration