LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2015, 01:11 PM   #1
nix.noob
LQ Newbie
 
Registered: Aug 2013
Posts: 28

Rep: Reputation: Disabled
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)

                              Disk Drive: /dev/sda
                        Size: 30016659456 bytes, 30.0 GB
              Heads: 64   Sectors per Track: 32   Cylinders: 28626

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    sda1        Boot        Primary   ext4                             30016.66*
I'm not sure where to look next.
 
Old 02-07-2015, 01:31 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Try df -h
 
Old 02-07-2015, 01:32 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,332

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
If the partition is mounted, you can get the approximate 'used' space with df -h.
 
Old 02-07-2015, 01:34 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,343

Rep: Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907
Post the output of the command:
df -h

Is the drive still mounted?

Too late...
 
Old 02-07-2015, 02:36 PM   #5
nix.noob
LQ Newbie
 
Registered: Aug 2013
Posts: 28

Original Poster
Rep: Reputation: Disabled
It is still mounted.
Code:
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          2.9G  2.6G  135M  96% /
/dev/root       2.9G  2.6G  135M  96% /
devtmpfs        214M     0  214M   0% /dev
tmpfs            44M  660K   43M   2% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            88M     0   88M   0% /run/shm
/dev/mmcblk0p1   56M   15M   42M  26% /boot
nb, this is a raspberry pi, so the main filesystem is on an 8GB sd card.
/dev/sda1 is the 30GB disk. Or so I believe.

Last edited by nix.noob; 02-07-2015 at 02:38 PM.
 
Old 02-07-2015, 03:09 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,343

Rep: Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907
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.

Last edited by michaelk; 02-07-2015 at 03:14 PM.
 
Old 02-07-2015, 03:33 PM   #7
nix.noob
LQ Newbie
 
Registered: Aug 2013
Posts: 28

Original Poster
Rep: Reputation: Disabled
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.
 
  


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
incorrect disk space aclhkaclhk Linux - Hardware 5 12-09-2009 05:04 AM
Incorrect and conflicting free disk space reported in Lenny raovq Debian 5 05-06-2009 01:14 PM
Available disk space incorrect Jeiku Slackware 2 03-04-2007 09:46 PM
disk space incorrect burnt_toast Linux - Software 2 09-16-2003 09:33 PM
incorrect disk space njk General 5 08-23-2003 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:51 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration