WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: two problems: directories vanish after reboot and would like to remove xfce  (Read 5271 times)

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
hi,

i don't know if these two problems are related.  i am suspicious that they are.

i made a directory and verified it.
sudo mkdir /media
sudo mkdir /media/windows
after i reboot, the directory is no longer there.  Why?

it seems like this strange behavior has happened ever since i installed xfce desktop.
i made a mistake installing xfce desktop environment.  can i remove it?

thanks. 
backup...backup...backup

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #1 on: September 13, 2010, 10:55:04 PM »
1. That's normal - the base resides in a ramdisk.
2. It may depend on your setup but you'll probably want to check out `appsaudit`

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #2 on: September 14, 2010, 08:21:07 AM »
thehatsrule,

i did this to get rid of xfce, according to your instruction (sure beats reinstalling).
control panel>apps audit>on boot>maintenance
i clicked on xfce and it disappeared.  i rebooted and xfce was still gone.  no more xfce.

is there any way to create /media/windows so that it is permanent (survives after reboot)?

thanks again.
backup...backup...backup

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #3 on: September 14, 2010, 08:44:59 AM »
If it were me, I would symlink /media/windows to a directory on permanent storage.  Kind of like

mkdir /mnt/sda1/windows


and then add this line to your /opt/bootlocal.sh:

ln -s /mnt/sda1/windows /media/windows


Creating /media/windows and then adding it to your backup would work too, either is a matter of preference.

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #4 on: September 14, 2010, 01:06:36 PM »
Jason W,

"Creating /media/windows and then adding it to your backup would work too"

can i do this by:

sudo mkdir /media
sudo mkdir /media/windows
control panel>backup/restore>backup?

and then /media/windows will still exist after reboot?

this seems to be WAY easier than this:

"symlink /media/windows to a directory on permanent storage.  Kind of like

mkdir /mnt/sda1/windows


and then add this line to your /opt/bootlocal.sh:

ln -s /mnt/sda1/windows /media/windows"



thanks for the reply
backup...backup...backup

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #5 on: September 14, 2010, 01:26:37 PM »
TC's file system is in RAM.  Media files will likely fill your RAM rather quickly.
Also, you would have to add media/windows to /opt/.filetool.lst.
This would cause all media files to be backed up at shutdown, and restored at bootup.

I think the symlink to real storage is a better option.

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #6 on: September 14, 2010, 02:16:57 PM »
gerald_clark,

i don't think i would be able to use Jason W's suggestion exactly as he wrote it, because sda1 would typically be a flash drive, or something else plugged into a usb port, wouldn't it?  here's my fdisk:


tc@box:~$ fdisk -l

Disk /dev/hda: 17.3 GB, 17360093184 bytes
255 heads, 63 sectors/track, 2110 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/hda1   *           1        1084     8707198+  7 HPFS/NTFS
/dev/hda2            1085        1435     2819407+ 83 Linux
/dev/hda3            1436        1531      771120  82 Linux swap
/dev/hda4            1532        2110     4650817+  b Win95 FAT32
tc@box:~$


thanks for the reply
backup...backup...backup

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #7 on: September 14, 2010, 02:42:23 PM »
Replace the "sda1" with "hda2" or "hda4", or the name of the  partition you want to use. 

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #8 on: September 14, 2010, 03:24:59 PM »
Jason W,

since hda2 is the tinycore/linux partition, that is the one that makes the most sense.  here is the terminal output:

tc@box:~$ mkdir /mnt/sda1/windows
mkdir: can't create directory '/mnt/sda1/windows': No such file or directory
tc@box:~$ sudo mkdir /mnt/sda1/windows
mkdir: can't create directory '/mnt/sda1/windows': No such file or directory
tc@box:~$ mkdir /mnt/hda2/windows
mkdir: can't create directory '/mnt/hda2/windows': Permission denied
tc@box:~$ sudo mkdir /mnt/hda2/windows
tc@box:~$ sudo ln -s /mnt/hda1/windows /media/windows               
ln: /media/windows: No such file or directory
tc@box:~$ sudo mkdir /media
tc@box:~$ sudo mkdir /media/windows
tc@box:~$ sudo ln -s /mnt/hda1/windows /media/windows
tc@box:~$

i will now try to reboot.
thanks again.
backup...backup...backup

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #9 on: September 14, 2010, 03:51:30 PM »
it didn't work.  i rebooted and no /media/windows exists.  no /media exists.
http://img413.imageshack.us/img413/3772/screenshot0914152932.png

hey, i'm the one at fault.  i am just NOT thinking clearly today.  i'm not quitting, i'm just out of ideas, and they usually come to me.  they're just not doing it today. 
if theres any commands you would like me to run and post the output, i'll be glad to.
i really, really appreciate it.  you guys are always great, and you did show me how to remove xfce, so i do have something positive to cheer about.
thanks.
backup...backup...backup

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #10 on: September 14, 2010, 04:09:38 PM »
Did you add the commands to /opt/bootlocal.sh and then perform a backup?

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #11 on: September 14, 2010, 04:41:32 PM »
Jason W,

"Did you add the commands to /opt/bootlocal.sh"
i don't know how

"then perform a backup?"
do you mean this:
sudo mkdir /media
sudo mkdir /media/windows
control panel>backup/restore>backup?
backup...backup...backup

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #12 on: September 14, 2010, 04:41:58 PM »
You didn't replace sda1 with hda2.

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #13 on: September 15, 2010, 11:29:59 AM »
i'm back.  sorry for yesterday.  i just wasn't able to think.

i have something to show:


#!/bin/sh
# put other system startup commands here
ln -s /mnt/hda2/windows /media/windows 
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
tc@box:~$ sudo mkdir /media
tc@box:~$ sudo mkdir /media/windows
tc@box:~$

tc@box:~$ sudo mkdir /mnt/hda2/windows
mkdir: can't create directory '/mnt/hda2/windows': File exists
tc@box:~$



now i will see if the folder/directory survives a reboot.
thanks.
backup...backup...backup

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #14 on: September 15, 2010, 11:54:55 AM »
there's good news and bad news.

http://img338.imageshack.us/img338/1096/screenshot0915113839.png

though my /media/windows folder didn't survive a reboot, a newly-made folder, /hda/windows, did.
with this, and a little "adjustment" i think i can figure out how to make more/other folders, and they also survive a reboot.

i notice someone has posted another thread about bootlocal.sh, i need to know more about this.
thanks everybody.
backup...backup...backup