WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #15 on: September 15, 2010, 12:35:07 PM »
The bootlocal.sh file should look like this, creating the directory;

#!/bin/sh
# put other system startup commands here
mkdir /media/windows
ln -s /mnt/hda2/windows /media/windows 

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #16 on: September 15, 2010, 01:05:16 PM »
Be aware that what you are trying to do is opposed to standard.
/hda is unheard of and
/media is only for removable media.

The correct location would be under /mnt
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #17 on: September 15, 2010, 01:45:25 PM »
Jason W and tinypoodle,

i have read both of your replies and now i am realizing that /media was a bad choice of name. 
i also remember gerald_clark commenting toward that effect.  it's finally making sense, why it DIDN'T make sense.  it appears that the name "media" is already taken.

anyway, i think i will choose to make a directory by the name of

reach

hopefully there will be no conflict or reason the word "reach" can't be substituted for "media".  I'll go back and check all of Jason W's instructions and substitute /reach/windows instead of /media/windows.  now that i'm getting the hang of this, it shouldn't be too difficult (today).

if i don't hear any reason the word "reach" doesn't work within a couple of hours, i'll proceed with my project of making a /reach/windows folder that survives a reboot.

thanks for all the help.
backup...backup...backup

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #18 on: September 15, 2010, 02:28:45 PM »
To be absolute: It is against standard to create any arbitrary files or directorys on top level of the root file system.
/reach would be equally against standard as /hda or any other name.

Best to create your personal dirs or symlinks in /home/tc and dirs to serve as mountpoints for devices in /mnt

BTW, in /home/tc it will be saved in backup by default  ;)
« Last Edit: September 15, 2010, 02:41:55 PM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #19 on: September 15, 2010, 04:32:20 PM »
tinypoodle,

"It is against standard to create any arbitrary files or directorys on top level of the root file system."
ahh, i understand now.  in the root directory it's a no-no.  i'm so use to microsoft windows where it's pretty much a yes-yes.  is this just a tinycore trait, or is this a linux trait (i'm pretty sure i've done this in ubuntu)?

"Best to create your personal dirs or symlinks in /home/tc and dirs to serve as mountpoints for devices in /mnt"
very good.  if i put this directory in /home/tc/reach/windows, this will be no problem.

"BTW, in /home/tc it will be saved in backup by default"
now that sounds TOO easy.  are you saying i don't have to do this:  control panel>backup/restore>backup, or edit some kind of configuration file? 

what about the checkbox when exit-ing?  that probably needs to be checked, doesn't it?

thanks.




backup...backup...backup

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #20 on: September 15, 2010, 06:56:32 PM »
http://www.pathname.com/fhs/pub/fhs-2.3.html

Yes, backup has to be made, and restored at next boot, (most) everything in home will be back. of course will still have to mount the partition under /mnt/hda2 or whatever for the symlink to actually work.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline ejames82

  • Full Member
  • ***
  • Posts: 183
Re: two problems: directories vanish after reboot and would like to remove xfce
« Reply #21 on: September 15, 2010, 09:29:10 PM »
tinypoodle,

great tutorial!

this will keep me busy for a while.

thanks.
backup...backup...backup