WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: x not start - no space left on device  (Read 6893 times)

Offline andfree

  • Full Member
  • ***
  • Posts: 127
x not start - no space left on device
« on: April 19, 2016, 03:38:10 AM »
The last session had become too slow and I tried to reboot. I clicked OK to reboot at the "tc exit options window" but it stuck there. I forced it to continue with "Alt+SysReq+reisub".
But now there's not a GUI:
Code: [Select]
sh: write error: No space left on device
tc@box:$ startx
cp: write error: No space left on device
cp: write error: No space left on device
sh: write error: No space left on device
tc@box:$ udevd[87]: failed to create queue file: No space left on device

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: x not start - no space left on device
« Reply #1 on: April 19, 2016, 04:16:23 AM »
Has the size of your backup exceeded the space on the device where you store your backup?

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: x not start - no space left on device
« Reply #2 on: April 19, 2016, 04:36:56 AM »
Has the size of your backup exceeded the space on the device where you store your backup?

How to find out it? I suppose that the device I store my backup is my internal hard-drive (/mnt/sda1). I can't think what other could it be. The capacity of the drive must be about 60GB, I'm not sure, but I can't imagine how the size of the backup exceeded such a space.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: x not start - no space left on device
« Reply #3 on: April 19, 2016, 04:53:49 AM »
By default the backup, mydata.tgz, is written to your tce folder.

If you reboot using "sudo exitcheck.sh reboot" and use the boot code "norestore", it might help.

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: x not start - no space left on device
« Reply #4 on: April 19, 2016, 05:14:27 AM »
By default the backup, mydata.tgz, is written to your tce folder.

Indeed, while the booting I read:
Code: [Select]
Restoring backup files from /mnt/sda1/tce/mydata.tgz
If you reboot using "sudo exitcheck.sh reboot" and use the boot code "norestore", it might help.

I rebooted using "sudo exitcheck.sh reboot" but how to use boot code "norestore"?

Code: [Select]
tc@box:$ norestore
-sh: norestore: not found

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: x not start - no space left on device
« Reply #5 on: April 19, 2016, 05:41:42 AM »
You need to add it to your bootloader config or, if the bootloader allows it, type it at the prompt before booting.

You could also move mydata.tgz somewhere else.

How big is mydata.tgz?
« Last Edit: April 19, 2016, 05:43:23 AM by Juanito »

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: x not start - no space left on device
« Reply #6 on: April 19, 2016, 06:00:10 AM »
You need to add it to your bootloader config or, if the bootloader allows it, type it at the prompt before booting.

I suppose you mean to edit the /mnt/sda1/tce/boot/extlinux/extlinux.conf file. But how to do so without a gui?
Typing it at the prompt gets the message I wrote at my previous post.

You could also move mydata.tgz somewhere else.

Somewhere else at /mnt/sda1 I suppose, but where? And what command I have to use to do so?

How big is mydata.tgz?

What command to use to see this?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: x not start - no space left on device
« Reply #7 on: April 19, 2016, 06:33:25 AM »
I suppose you mean to edit the /mnt/sda1/tce/boot/extlinux/extlinux.conf file. But how to do so without a gui?

"sudo vi /mnt/sda1/tce/boot/extlinux/extlinux.conf"

Quote
Somewhere else at /mnt/sda1 I suppose, but where?

First check if the device is full with "df -h /dev/sda1", if not full, then anywhere you like.

Quote
What command to use to see this?

google is your friend  ;)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: x not start - no space left on device
« Reply #8 on: April 19, 2016, 07:10:54 AM »
Sounds like out of RAM to me.

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: x not start - no space left on device
« Reply #9 on: April 19, 2016, 07:29:03 AM »
"sudo vi /mnt/sda1/tce/boot/extlinux/extlinux.conf"

Thanks, I booted using "norestore" and I have gui.

First check if the device is full with "df -h /dev/sda1", if not full, then anywhere you like.

Code: [Select]
tc@box:~$ df -h /dev/sda1
Filesystem                Size      Used Available Use% Mounted on
/dev/sda1                54.9G    441.7M     54.4G   1% /mnt/sda1
tc@box:~$

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: x not start - no space left on device
« Reply #10 on: April 19, 2016, 07:35:21 AM »
How big is mydata.tgz?

Right-click => Properties shows 40M. But this number would be the same if I hadn't booted using "norestore"?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: x not start - no space left on device
« Reply #11 on: April 19, 2016, 07:39:18 AM »
Show the output of "free".

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: x not start - no space left on device
« Reply #12 on: April 19, 2016, 07:42:08 AM »
Code: [Select]
tc@box:~$ free
             total       used       free     shared    buffers     cached
Mem:        447176     440468       6708      25292      47556     150392
-/+ buffers/cache:     242520     204656
Swap:       104764        172     104592
tc@box:~$

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: x not start - no space left on device
« Reply #13 on: April 19, 2016, 07:47:09 AM »
Your root filesystem is in RAM, and you are running out of file space because of your large backup.
I recommend in small memory machines or machines with large amounts of files in /home that the opt= and home=
boot options be used to place them on persistent storage.  Once that is working, remove home and opt from /opt/.filetool.lst.

Offline andfree

  • Full Member
  • ***
  • Posts: 127
Re: x not start - no space left on device
« Reply #14 on: April 19, 2016, 08:19:14 AM »
I'm afraid it didn't work.
I deleted "norestore" from extlinux.conf and rebooted. I got as expected the "no space left" message.
I used "sudo vi" command to delete home and opt from filetool.lst and rebooted. Unfortunally, I got again the "no space left" message.