Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: andfree on April 19, 2016, 03:38:10 AM

Title: x not start - no space left on device
Post by: andfree 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
Title: Re: x not start - no space left on device
Post by: Juanito 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?
Title: Re: x not start - no space left on device
Post by: andfree 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.
Title: Re: x not start - no space left on device
Post by: Juanito 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.
Title: Re: x not start - no space left on device
Post by: andfree 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
Title: Re: x not start - no space left on device
Post by: Juanito 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?
Title: Re: x not start - no space left on device
Post by: andfree 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?
Title: Re: x not start - no space left on device
Post by: Juanito 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  ;)
Title: Re: x not start - no space left on device
Post by: gerald_clark on April 19, 2016, 07:10:54 AM
Sounds like out of RAM to me.
Title: Re: x not start - no space left on device
Post by: andfree 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:~$
Title: Re: x not start - no space left on device
Post by: andfree 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"?
Title: Re: x not start - no space left on device
Post by: gerald_clark on April 19, 2016, 07:39:18 AM
Show the output of "free".
Title: Re: x not start - no space left on device
Post by: andfree 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:~$
Title: Re: x not start - no space left on device
Post by: gerald_clark 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.
Title: Re: x not start - no space left on device
Post by: andfree 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.
Title: Re: x not start - no space left on device
Post by: gerald_clark on April 19, 2016, 08:21:22 AM
You need to add the home= and opt= boot options as described in the wiki and book first.
Title: Re: x not start - no space left on device
Post by: andfree on April 19, 2016, 10:10:57 AM
Thank you. I added "home=sda1" and "opt=sda1" to the APPEND line of extlinux.conf, rebooted, and now x starts properly, everything seems to be fine and it's much more fast.
Title: Re: x not start - no space left on device
Post by: gerald_clark on April 19, 2016, 11:35:35 AM
Now remove opt and home from /opt/.filetool.sh and do a safe backup.
Title: Re: x not start - no space left on device
Post by: andfree on April 20, 2016, 03:55:29 AM
I removed opt and home from /opt/.filetool.lst, saved the file, rebooted and the changes remain (opt & home are not in filetool.lst). After all, a safe backup has already been done, hasn't it?
Title: Re: x not start - no space left on device
Post by: andfree on April 20, 2016, 10:32:59 AM
I wanted to delete the "lang=" option from extlinux.conf and by mistake I deleted "home=" & "opt=" options two. Now I have added them again, but I have two different /opt and two /home directories.
Title: Re: x not start - no space left on device
Post by: gerald_clark on April 20, 2016, 11:28:13 AM
It is not possible to have two directories with the same name.
Title: Re: x not start - no space left on device
Post by: andfree on April 20, 2016, 01:07:12 PM
It seems you are right. The problem seems to be different. The usr/local/share/X11/xorg.conf.d/10-keyboard.conf file has gone. How to create it again?
Title: Re: x not start - no space left on device
Post by: gerald_clark on April 20, 2016, 01:16:53 PM
Xorg does not require config files.
I said to do a safe backup, so your mydatabk.tgz should have all your backup files prior to your opt and home assignment.
I recommend browsing the file with mc.
Title: Re: x not start - no space left on device
Post by: andfree on April 20, 2016, 02:02:43 PM
There was a /usr/local/share/X11/xorg.conf.d/10-keyboard.conf file like this:

Code: [Select]
Section "InputClass"
Identifier       "Keyboard Defaults"
MatchIsKeyboard  "yes"
        Option           "xkb_model" "pc105"
Option           "XkbLayout"   "gr,us"
Option           "XkbOptions"  "grp:alt_shift_toggle,terminate:ctrl_alt_bksp"
EndSection

Now there's not.

filetool.lst was:

Code: [Select]
usr/local/share/X11/xorg.conf.d/10-keyboard.conf
Now it is:

Code: [Select]
opt
home

I try to delete opt & home and add usr/local/share/X11/xorg.conf.d/10-keyboard.conf to make it as it was, but when I go to backup and reboot, I get the message:

Code: [Select]
Errors occured during backup!
See: /tmp/backup_status

I see /tmp/backup_status:

Code: [Select]
tar: usr/local/share/X11/xorg.conf.d/10-keyboard.conf: No such file or directory
tar: error exit delayed from previous errors

Then I try to delete all contents of filetool.lst, but when I go to to backup and reboot I get again:

Code: [Select]
Errors occured during backup!
See: /tmp/backup_status

I see /tmp/backup_status:

Code: [Select]
tar: empty archive
I installed mc, but:

Code: [Select]
tc@box:~$ mc
Failed to run:
Cannot create /home/tc/.local/share/mc directory
tc@box:~$
Title: Re: x not start - no space left on device
Post by: Rich on April 20, 2016, 02:23:38 PM
Hi andfree
I try to delete opt & home and add usr/local/share/X11/xorg.conf.d/10-keyboard.conf to make it as it was, but when I go to backup and reboot, I get the message:

Code: [Select]
Errors occured during backup!
See: /tmp/backup_status

I see /tmp/backup_status:

Code: [Select]
tar: usr/local/share/X11/xorg.conf.d/10-keyboard.conf: No such file or directory
tar: error exit delayed from previous errors

It sounds like you didn't create the  /usr/local/share/X11/xorg.conf.d/10-keyboard.conf  file prior to running your backup.
Title: Re: x not start - no space left on device
Post by: andfree on April 20, 2016, 04:25:51 PM
Hi Rich.
Yes, I deleted the /usr/local/share/X11/xorg.conf.d/10-keyboard.conf somehow and I couldn't remember how I had created it. Finally I found it:

Code: [Select]
sudo touch /usr/local/share/X11/xorg.conf.d/10-keyboard.conf
After that I edited it as I wrote at my previous post, I added it at filetool.lst and removed from there opt & home. After all, I was able to backup and reboot.