Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started 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:
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
-
Has the size of your backup exceeded the space on the device where you store your backup?
-
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.
-
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.
-
By default the backup, mydata.tgz, is written to your tce folder.
Indeed, while the booting I read:
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"?
tc@box:$ norestore
-sh: norestore: not found
-
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?
-
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?
-
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"
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.
What command to use to see this?
google is your friend ;)
-
Sounds like out of RAM to me.
-
"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.
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:~$
-
How big is mydata.tgz?
Right-click => Properties shows 40M. But this number would be the same if I hadn't booted using "norestore"?
-
Show the output of "free".
-
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:~$
-
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.
-
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.
-
You need to add the home= and opt= boot options as described in the wiki and book first.
-
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.
-
Now remove opt and home from /opt/.filetool.sh and do a safe backup.
-
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?
-
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.
-
It is not possible to have two directories with the same name.
-
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?
-
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.
-
There was a /usr/local/share/X11/xorg.conf.d/10-keyboard.conf file like this:
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:
usr/local/share/X11/xorg.conf.d/10-keyboard.conf
Now it is:
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:
Errors occured during backup!
See: /tmp/backup_status
I see /tmp/backup_status:
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:
Errors occured during backup!
See: /tmp/backup_status
I see /tmp/backup_status:
tar: empty archive
I installed mc, but:
tc@box:~$ mc
Failed to run:
Cannot create /home/tc/.local/share/mc directory
tc@box:~$
-
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:
Errors occured during backup!
See: /tmp/backup_status
I see /tmp/backup_status:
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.
-
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:
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.