How To Fix Deleted TMP Folder SOLVED

Post here if you are a new Porteus member and you're looking for some help.
jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

How To Fix Deleted TMP Folder SOLVED

Post#1 by jimwg » 22 May 2014, 01:14

Greetings:

I "accidentally" deleted the TMP folder to dredge up more free room in 2gig flash drive (not emergency, have other backups) and when I boot up the screen reads:

INIT: Id "x1" respawning too fast, Disabled for 5 minutes.

How could I repair this situation?

Thanks.

Jim in NYC
Last edited by jimwg on 24 May 2014, 11:46, edited 1 time in total.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: How To Fix Deleted TMP Folder

Post#2 by fanthom » 22 May 2014, 08:44

please boot to text mode, login as root then run following command:

Code: Select all

cp -a /mnt/live/memory/images/001-core.xzm/tmp   /
btw: be careful what you are doing as it wont be that easy to recover folders like /etc (many modules creates it).
Please add [Solved] to your thread title if the solution was found.

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: How To Fix Deleted TMP Folder

Post#3 by jimwg » 22 May 2014, 18:58

fanthom wrote:please boot to text mode, login as root then run following command:

Code: Select all

cp -a /mnt/live/memory/images/001-core.xzm/tmp   /
btw: be careful what you are doing as it wont be that easy to recover folders like /etc (many modules creates it).
Thanks for reply. Didn't seem to alter anything, as though tmp folders still aren't there. Is there an alternate method or can I copy a tmp folder to that flash from a working one?

JIm in NYC

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: How To Fix Deleted TMP Folder

Post#4 by brokenman » 22 May 2014, 19:21

Boot into always fresh mode.
Copy the /tmp folder from /mnt/live/memory/images/001-core.xzm/tmp into the 'rootcopy' folder of your installation media or if you are using a savefile/folder then copy it into this location.

In the case of a save file then you will need to mount it first.

Code: Select all

mkdir /mnt/mychanges
mount -o loop /path/to/my/savefile.dat /mnt/mychanges
cp -a /mnt/live/memory/images/001-core.xzm/tmp /mnt/mychanges
umount /mnt/mychanges
In 'always fresh mode' you will have a working copy. That's what this mode is for.

GOod luck.
How do i become super user?
Wear your underpants on the outside and put on a cape.

tome
Contributor
Contributor
Posts: 675
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Russia is causing the immense damage to humanity
Contact:

Re: How To Fix Deleted TMP Folder

Post#5 by tome » 22 May 2014, 20:59

you can also delete wh tmp file from your changes
You have mind and feelings. Be wise and clever.

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: How To Fix Deleted TMP Folder

Post#6 by jimwg » 23 May 2014, 11:31

tome wrote:you can also delete wh tmp file from your changes
I don't know what was in those wh. files causing the hang-up, but deleting them along with fanthom's lines did the trick. Flash is back up and running and a new Porteus lesson on recovery learned! Thanks a trillion!

Re: brokenman
In 'always fresh mode' you will have a working copy. That's what this mode is for.

Okay, in my situation it didn't work likely because of my set-up:
http://forum.porteus.org/posting.php?mo ... 25&p=24699

so instead right after the boot-up screen I got a black one with a white upper left-hand window flashing:

"xterm: cannot load font '-misc-fixed-medoium-r-semi-condensed -13-120-75-75-c-80-iso10646-1"

I understand my set-up is set-up to invite such an error, but I have it so to get max 3.0 final xfce.4.11 and mplayer performance.

Jim in NYC

Post Reply