Solved 500Gb Disk, but only 60 GB of capacity

S

SubGenius

Guest
Hi to everyone,
I recently installed FBSD on new 500 GB internal disk, chosen auto partitioning but now only 60 GB is showed as used
Bash:
# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0s1     58G    8,9G     45G    17%    /
devfs          1,0K    1,0K      0B   100%    /dev

Bash:
# gpart show
=>       63  976773105  ada0  MBR  (466G)
         63          1        - free -  (512B)
         64  976773103     1  freebsd  [active]  (466G)
  976773167          1        - free -  (512B)



I really don't know what's appened. How I can investigate? Thanks
 
My 500GB HDD only shows 447GB total space using UFS, Guided and GPT for the Partition Scheme, but you should be seeing more free space:

Code:
$ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p2    447G     95G    316G    23%    /
devfs          1.0K    1.0K      0B   100%    /dev
$ gpart show
=>       40  976773088  ada0  GPT  (466G)
         40       1024     1  freebsd-boot  (512K)
       1064  968883200     2  freebsd-ufs  (462G)
  968884264    7888863     3  freebsd-swap  (3.8G)
  976773127          1        - free -  (512B)
 
Dear SubGenius,
it seems as if you have chosen MBR instead of GPT. The second block you posted shows that the slice allocated for FreeBSD occupies 466G.
Please have a look at https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disk-organization.html.
My guess it that df -h(1) only shows the root partition. May be others are not allocated by the auto partitioning system. gpart show should tell more. And have a look at your /etc/fstab where the other partitions might pop up. swapinfo might report about /dev/ada0s1b.
 

Bash:
# cat /etc/fstab
/dev/ada0s1        /        ufs        rw        1        1

So..seems that in my case the ada0s1 slice is mounted and not the probably correct ada0s1a partition
I've started now the laptop and i'm goin try to modify the line in /etc/fstab, hope have a luck
Thanks a lot


EDIT:
Perfect! Solved!
The system mount the root partition always, also if is set the slice and not the correct partition
Now all work fine!
Bash:
$ gpart show
=>       63  976773105  ada0  MBR  (466G)
         63          1        - free -  (512B)
         64  976773103     1  freebsd  [active]  (466G)
  976773167          1        - free -  (512B)

=>        0  976773103  ada0s1  BSD  (466G)
          0  125829120       1  freebsd-ufs  (60G)
  125829120  850943982       2  freebsd-ufs  (406G)
  976773102          1          - free -  (512B)

Well, my next target is to convert from MBR to GPT :)
Thanks a lot!
 
Hello SubGenius
Yes, if it is about slices and partitions I have also to think twice ;).
Well, my next target is to convert from MBR to GPT
I think this means reinstall. As far as I know there is no method just to convert the partitioning system. On the other hand installation is done pretty fast. Most of the work are adaption of the configurations. It might be not bad to save the files you have changed from default as /etc/rc.conf somewhere or so or just take some notes.
 
Back
Top