Solved

Linux filesystem not showing space available

Posted on 2012-04-08
14
400 Views
Last Modified: 2012-10-30
I have a backup disk unit of 1 Terabyte. It is connected to my network and from my Windows pc I can access directories and files on it. However the disk space available as shown is much less than the unit has, and so when I attempt to copy a large directory as a backup from the PC the unit runs out of space.
Accessing the unit using Linux I can find the existing directories and with some linux commands like ls I can look at the files and see their current sizes. I believe that what I need to do is mount the whole unit to be available but I don't know how to or if this is correct.
I have some basic unix/linux knowledge.
Any help much appreciated.
Mike Gunner, Spain
0
Comment
Question by:Michael Gunner
  • 7
  • 4
  • 3
14 Comments
 
LVL 37

Expert Comment

by:Gerwin Jansen
Comment Utility
Hello Mike, how is your backup disk connected to the network? What brand/type is your backup disk and do you know how it was formatted?
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
The issue is how the 1tb disk is partitioned. Could you provide make, model of the device?
Also post the output from running the following command on the Linux system: df -k
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
Comment Utility
Additonal: as root on your linux system show output of: fdisk -l
0
 

Author Comment

by:Michael Gunner
Comment Utility
I am very sorry I did not come back earlier on these comments. I was out of action for a while, and then had a big backlog of things. And then I kept forgetting about it.
Anyway the problem is still there. The 1TB disk is showing in Windows:
1.58 GB available of 19.2 GB.

Answering some questions from above:
It is a Hitachi 1.0 TB external hard disk  LS-1000-EMEA  OS00062   s/n HD27K77C

It is configured on the windows netwrok as Y (192.168.2.8)
All permissions are shown. Unix users are User\root  and Unix Group\root

Logging in to the server as root:
df -k does not show this drive. I proved it by repeating df -k after disconnecting the drive and the display is the same.
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2             20157076  18292596   1659760  92% /
tmpfs                  1030872         0   1030872   0% /dev/shm
/dev/sda1               198337     57210    130887  31% /boot
/dev/sda3             54298068  50825604    714272  99% /var



fdisk -l gives:

Disk /dev/sda: 82.0 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb7cfb7cf

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26        2576    20480000   83  Linux
/dev/sda3            2576        9443    55163904   83  Linux
/dev/sda4            9443        9965     4193280    5  Extended
/dev/sda5            9443        9965     4192256   82  Linux swap / Solaris




It's a lot to hope that the experts are still watching. But if you are maybe you have a solution. This time I will reply quickly to any request.
Thank you.
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
does this external drive have a web interface to manage it?
How are the resources from the drive allocated?
CIFS/SAMBA windows share
NFS linux/unix?

Access the web interface 192.168.2.8 and look at how the space is allocated for each system that accesses it.
0
 

Author Comment

by:Michael Gunner
Comment Utility
//192.168.2.8  in Firefox does not find it. I am not sure what I am not doing right here.
Samba is used (I was told)
Properties (windows)  tell me NTFS
The other questions I don't know how to get answers for.
Thanks
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
http://192.168.2.8

Make/model of the external drive enclosure
Do you have a vendor provider utility installed on your system that helps you manage the external drive?
0
Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

 

Author Comment

by:Michael Gunner
Comment Utility
It is a Hitachi 1.0 TB external hard disk  LS-1000-EMEA  OS00062   s/n HD27K77C
I don't have a vendor utility installed. I suppose one would be available to download, because I don't know where the disk is! That sounds a good idea to me.
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
Comment Utility
Hi, that drive only has a USB connector, no network interface. It is connected directly to your machine, the 192.168.2.8 address is of no use in this case. Only when you have it connected to your Windows PC and shared the external disk through a Windows share then the disc would be accessible through \\192.168.2.8\yoursharename where 192.168.2.8 would be the private IP address of you Windows machine. The fdisk and df commands, you run them how exactly? A bootable Linux CD or another (Linux) machine maybe? Enlighten us please :)
0
 

Author Comment

by:Michael Gunner
Comment Utility
Thank you for the interest.
The drive is connect to a Linux Fedora machine, and that is connected via a network cable to the router. I am able to log in a root to this machine and run those commands. By doing grep and some piping I can access the files which I can see on the windows interface. The Y drive with this IP appears at the bottom of my PC drives on Windows. It doesn't appear as a network machine, as you have explained. When the Linux machine is switched on I can see into the Y drive and open some of the files.
I did not set this up - and as you can see I am not expert on networks.
I may not be able to check on this now until Monday, but your comments so far are interesting.
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
Comment Utility
Your last comment tells me that the Fedora machine is sharing (part of the) attached external hard drive over the network, as a Samba share for example. The partition table you've shown looks to be of the Fedora system itself. See if you can talk to someone who knows about the Fedora system and tell you what being shared in detail.
0
 

Author Comment

by:Michael Gunner
Comment Utility
Thank you for the information. Is there someone who knows about Fedora who can advise me what to do?
Thanks to everyone who has helped.
0
 

Accepted Solution

by:
Michael Gunner earned 0 total points
Comment Utility
Thank you all. I took the disk out of the Hitachi case, bought a new box for 20 € and put the disk in it. I then formated from Windows and it gave me the whole 1TB.
The conclusion is that the Hitachi unit was faulty.
0
 

Author Closing Comment

by:Michael Gunner
Comment Utility
It wasn't the solution I wanted but it seemed that the fault was not in the use of Linux or Windows, but was a fault in the Hitachi unit.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now