HELP! drive full - cannot access it?

mattylad
Posts: 61
Joined: Sat Jul 11, 2009 10:20 pm

HELP! drive full - cannot access it?

Post by mattylad » Tue Apr 20, 2010 6:39 pm

Hello, today when trying to access my drive I find I cannot see it on the network
and using the web interface I get a page that starts off with:
/www/cgi-bin/admin/config: line 54: cannot create temp file for here document: No space left on device
Help - what do I do now?

IS it either the drive full or could it have gone faulty?
Dumb Windows user & 500gb Network Store owner.
I'm not compatible with Linux :(

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: HELP! drive full - cannot access it?

Post by Mijzelf » Wed Apr 21, 2010 6:26 pm

The first thing which comes in my mind is a logfile which has grown too big, occupying all space on the system partition. Are you running only firmware on that box? Do you have a way to connect the internal drive to a
Linux computer?

mattylad
Posts: 61
Joined: Sat Jul 11, 2009 10:20 pm

Re: HELP! drive full - cannot access it?

Post by mattylad » Thu Apr 22, 2010 7:21 pm

It looks like I am going to have to open it up and take it out to do just that.

Turning it off I have been able to reconnect to the admin pages.
They say it has 35gb free space.

Then I try to access the drive, see the folders and by the time I have got to one it tells me I cannot access it :(

Next time I'll try and delete the log.

It is running as it was supplied, so not sure what your on about with firmware?
Dumb Windows user & 500gb Network Store owner.
I'm not compatible with Linux :(

mattylad
Posts: 61
Joined: Sat Jul 11, 2009 10:20 pm

Re: HELP! drive full - cannot access it?

Post by mattylad » Thu Apr 22, 2010 10:06 pm

Hmmm, weirdly I can access the twonkeyvisiion server pages & play videos/music etc from it.
Its at http://192.168.0.40:9000/webbrowse

But I cannot access http://192.168.0.40/cgi-bin/admin/config as I get
/www/cgi-bin/admin/config: line 54: cannot create temp file for here document: No space left on device

<html>
<head>

<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />

<link rel='icon' href='/images/favicon.ico' type='image/x-icon'/>
<link rel='shortcut icon' href='/images/favicon.ico' type='image/x-icon'/>
<title>Configuration</title>
<link rel='stylesheet' href='/css/lacie.css' type='text/css' />
<script language='Javascript' src='/javascripts/common.js'></script>
<script>
function submitLanguage()
And so on.

Neither can I access it over the network, it keeps dissappearing on me :

I get:
Image
Dumb Windows user & 500gb Network Store owner.
I'm not compatible with Linux :(

mattylad
Posts: 61
Joined: Sat Jul 11, 2009 10:20 pm

Re: HELP! drive full - cannot access it?

Post by mattylad » Thu Apr 22, 2010 10:28 pm

OK, I have tried accessing it with IE instead of Firefox & while it did say:
/www/cgi-bin/public/login: line 23: cannot create temp file for here document: No space left on device
It still allowed me to log in and then delete the log.
So I then turned on the FTP & reset the server.

Have not been able to access the config pages since then but have been able to acess via windows explorer
and delete some files.

But it is telling me that there is 35gb of free space on the openshare drive ?

Weird.
Dumb Windows user & 500gb Network Store owner.
I'm not compatible with Linux :(

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: HELP! drive full - cannot access it?

Post by Mijzelf » Fri Apr 23, 2010 7:15 am

mattylad wrote:But it is telling me that there is 35gb of free space on the openshare drive ?
The drive is partitioned, as you can see here. The 35GB are free on the data partition, /dev/sda2, while the normal Linux logfiles are on the system partition, which is a unionfs of sda7, sda8 and sda9. I *think* it's sda9 which is full. When it's a 'normal' Linux system, you can find the logfile(s) in /var/log, which in the unionfs could translate to sda9/snaps/XX/var/log or sda8/var/log.

When you find a very big logfile, please have a look at it before deleting it. It could contain important information. It's not intended to grow that big.

mattylad
Posts: 61
Joined: Sat Jul 11, 2009 10:20 pm

Re: HELP! drive full - cannot access it?

Post by mattylad » Fri Apr 23, 2010 12:55 pm

OK thank you.

I have already deleted one via the web interface, it was only full of turn on/off info really.

I'll see if I can save another if I need to.

I'll have to see when I can get it opened, then I'll have the battle to use a PC with SATA ports in. (the kids ones lol)
Dumb Windows user & 500gb Network Store owner.
I'm not compatible with Linux :(

mattylad
Posts: 61
Joined: Sat Jul 11, 2009 10:20 pm

Re: HELP! drive full - cannot access it?

Post by mattylad » Wed Apr 28, 2010 7:59 pm

OK I have finally rebuilt an oldPC so I can access it.

I have a Ubuntu live CD I can use, are you able to explain what I (a windows user & Linoob) should be doing to find
the logfile, perhaps what it may be called & how to read it? (and what to use to look for it).

Thank you.
Dumb Windows user & 500gb Network Store owner.
I'm not compatible with Linux :(

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: HELP! drive full - cannot access it?

Post by Mijzelf » Wed Apr 28, 2010 9:00 pm

When I remember well Ubuntu will create a desktop icon for each mountable partition it finds. You can mount them by clicking on the icon.
When you've mounted all partitions you can open a terminal, and type 'df <enter>'. This will give a list of all physical and virtual mounted devices, with the amount of of used space. I expect there will be a partition /dev/sda8, /dev/sda9, /dev/sdb8 or /dev/sdb9 which is 99 or 100% full.
When it's a /dev/sdx8, find the right desktop icon, open it, and look in var/log. When it's a /dev/sdx9 have a look in snaps/XX/var/log, where XX is a number. If there is no big file in there, use the search function (rightclick desktop icon?) to search for files bigger than, let's say, 5MB.
When you've found the file you can either delete it, or move it to the biggest partition, which is the data partition.

mattylad
Posts: 61
Joined: Sat Jul 11, 2009 10:20 pm

Re: HELP! drive full - cannot access it?

Post by mattylad » Fri Apr 30, 2010 8:33 pm

Hello again.

Right I have run an Ubuntu Live CD with it connected and I can see it.

Using the GUI:
I see a 499gb Filesystem with Myshare & Openshare on - 33gb free space okidoki.
I see a 691mb Filesystem with:
Edmini folder
lost+found folder (with an X over it)
snaps folder

In snaps\00\usr\local\twonkeyvision there is:

twonkymediaserver-logtxt = 618.4mb. Gedit bombs out trying to open this. I suspect that is because of the size.
openoffic.org 3.1 opens it though.

I can copy this to an external USB drive to back it up but cannot delete it - I do not have permission.
(not having permission seems to be a big problem with me doing anything).

SO I have found the logfile, but 1) how do I get permission to delete it?
and 2) how can I prevent it getting so big again? can I turn off the twonkeyvision log? (I do not use twonkeyvision I dont think)
I only watch videos through the xbox360 or use the filestore.

Edit - OK now - I have found how to get permissions, I have moved the file to the trash.

No more room yet though? I'll keep investigating
Dumb Windows user & 500gb Network Store owner.
I'm not compatible with Linux :(

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: HELP! drive full - cannot access it?

Post by Mijzelf » Fri Apr 30, 2010 8:55 pm

Sounds like you have found the problemfile.

To delete that file you need rootaccess. Unfortunately this means that you'll have to delete it from the commandline. Maybe you're old enough to be familiar with Norton Commander? You can use a similar tool: Midnight Commander. Open a terminal and type:

Code: Select all

sudo apt-get update
sudo apt-get install mc
cd /
sudo mc
Now you're running mc with root rights. (All rights. Be careful)
To find out where your file is located, open another terminal, and type

Code: Select all

df
This will give a list of all mounted filesystems, their size and their usage. You can find your 691MB filesystem with 99-100% usage, and in the last column is the mountpoint. Use mc in the first terminal to navigate to the mountpoint, and then navigate further to snaps\00\usr\local\twonkeyvision. Highlight the logfile, and press F8 to delete it.
Mission completed.

mattylad
Posts: 61
Joined: Sat Jul 11, 2009 10:20 pm

Re: HELP! drive full - cannot access it?

Post by mattylad » Fri Apr 30, 2010 9:15 pm

I unmounted the drive & it asked me if I wanted to throw out the trash, so I did.

Its now back in its bx while I try & access it again.
Dumb Windows user & 500gb Network Store owner.
I'm not compatible with Linux :(

mattylad
Posts: 61
Joined: Sat Jul 11, 2009 10:20 pm

Re: HELP! drive full - cannot access it?

Post by mattylad » Fri Apr 30, 2010 10:13 pm

OK, I now have my drive back, thank you for your assistance.

Setting the drive config, the IP etc is this done to the controller or on some files on the drive?

The reason I ask is that I have 2 enclosures, & am wondering if I put it back in the wrong one as I
had to reset the IP.
Dumb Windows user & 500gb Network Store owner.
I'm not compatible with Linux :(

Mijzelf
Posts: 6226
Joined: Mon Jun 16, 2008 10:45 am

Re: HELP! drive full - cannot access it?

Post by Mijzelf » Sat May 01, 2010 7:28 am

mattylad wrote:OK, I now have my drive back
Congratulations! :D
Setting the drive config, the IP etc is this done to the controller or on some files on the drive?
I don't know. I'd expect the MAC address in flashmemory, and all other stuff on harddisk. But I can imagine the the firmware regularly does some maintenance on these files (for instance when the network goes up after resetting the router) and that they get damaged due to full disk.

mattylad
Posts: 61
Joined: Sat Jul 11, 2009 10:20 pm

Re: HELP! drive full - cannot access it?

Post by mattylad » Sat May 01, 2010 9:01 am

Well, now I have opened it & voided any warranty then I'm at liberty to do anything I'm capable (or get instructions on)
that may improve it.

I'll have a look at the log file I backed up, if there is nothing of any interest in it to me then I will want to know how to turn it off to prevent this happening again. although I'm not rushing - I have all weekend lol.

I guess I shall be having a good read on here. Cheers.
Dumb Windows user & 500gb Network Store owner.
I'm not compatible with Linux :(

Post Reply