Incorrect disk space of external disk
I have an external disk connected to a raspberry pi to act as a nas, which I am accessing from a linux mint desktop machine.
The nas disk is 30GB, but according to my desktop machine, which connects through the file browser via samba, only around 318MB are reported as available. If I try to copy a 400MB file it tells me there is insufficient space. The disk is currently empty, so all 30GB should be available. On the nas box, cfdisk seems to report the disk size and the partition size correctly: Code:
cfdisk (util-linux 2.20.1) |
Try df -h
|
If the partition is mounted, you can get the approximate 'used' space with df -h.
|
Post the output of the command:
df -h Is the drive still mounted? Too late... |
It is still mounted.
Code:
$ df -h /dev/sda1 is the 30GB disk. Or so I believe. |
The drive is not mounted. No indication of /dev/sda1 in the output.
Your writing data to your / partition which shows 135M available. Look at the contents of the USBs mount point directory i.e /media/USBSSD to see if there are any files which should be deleted since your / usage is 96%. Mount the drive again. |
Quite right.
I think what had happened was that I had rebooted the machine and my fstab file had tabs instead of spaces, so it didnt automatically mount on start up. Thanks for the help. |
All times are GMT -5. The time now is 08:46 PM. |