WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Problem with home directory  (Read 4734 times)

Offline guillaumetld

  • Newbie
  • *
  • Posts: 37
Problem with home directory
« on: August 26, 2011, 12:15:12 PM »
Hi, i have some problems with my home directory.

In fact, i would like to edit .jwmrc file. I can open it, but the problem is that i can't save the modification i make, even with root. It's said that it's a read only file, but even with chmod 777 it doesn't work.
Moreover i saw that if i save a file in /home it's deleted at the next reboot, even with home=hda1 in extlinux.conf


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Problem with home directory
« Reply #1 on: August 26, 2011, 12:19:37 PM »
Sounds like /dev/hda1 is not being mounted on /home.
What does mount show?

Offline guillaumetld

  • Newbie
  • *
  • Posts: 37
Re: Problem with home directory
« Reply #2 on: August 26, 2011, 12:23:30 PM »
Quote
rootfs on / type rootfs (rw,size=318040k,nr_inodes=79510)
tmpfs on / type tmpfs (rw,relatime,size=580004k)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
tmpfs on /dev/shm type tmpfs (rw,relatime)
/dev/hda1 on /mnt/hda1 type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/hda1 on /home type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/hda1 on /opt type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/loop0 on /tmp/tcloop/hicolor-icon-theme type squashfs (ro,relatime)
/dev/loop1 on /tmp/tcloop/libxml2 type squashfs (ro,relatime)
/dev/loop2 on /tmp/tcloop/glib2 type squashfs (ro,relatime)
/dev/loop3 on /tmp/tcloop/shared-mime-info type squashfs (ro,relatime)
/dev/loop4 on /tmp/tcloop/Xorg-7.5-lib type squashfs (ro,relatime)
/dev/loop5 on /tmp/tcloop/graphics-libs-1 type squashfs (ro,relatime)
/dev/loop6 on /tmp/tcloop/gdk-pixbuf2 type squashfs (ro,relatime)
/dev/loop7 on /tmp/tcloop/expat2 type squashfs (ro,relatime)
/dev/loop8 on /tmp/tcloop/fontconfig type squashfs (ro,relatime)
/dev/loop9 on /tmp/tcloop/libxft type squashfs (ro,relatime)
/dev/loop10 on /tmp/tcloop/pango type squashfs (ro,relatime)
/dev/loop11 on /tmp/tcloop/pixman type squashfs (ro,relatime)
/dev/loop12 on /tmp/tcloop/cairo type squashfs (ro,relatime)
/dev/loop13 on /tmp/tcloop/atk type squashfs (ro,relatime)
/dev/loop14 on /tmp/tcloop/gtk2 type squashfs (ro,relatime)
/dev/loop15 on /tmp/tcloop/dbus type squashfs (ro,relatime)
/dev/loop16 on /tmp/tcloop/dbus-glib type squashfs (ro,relatime)
/dev/loop17 on /tmp/tcloop/libnotify type squashfs (ro,relatime)
/dev/loop18 on /tmp/tcloop/curl type squashfs (ro,relatime)
/dev/loop19 on /tmp/tcloop/libasound type squashfs (ro,relatime)
/dev/loop20 on /tmp/tcloop/firefox type squashfs (ro,relatime)
/dev/loop21 on /tmp/tcloop/jwm type squashfs (ro,relatime)
/dev/loop22 on /tmp/tcloop/libcups type squashfs (ro,relatime)
/dev/loop23 on /tmp/tcloop/cups type squashfs (ro,relatime)
/dev/loop24 on /tmp/tcloop/x0vncserver type squashfs (ro,relatime)
/dev/loop25 on /tmp/tcloop/gcc_libs type squashfs (ro,relatime)
/dev/loop26 on /tmp/tcloop/openssl-0.9.8 type squashfs (ro,relatime)
/dev/loop27 on /tmp/tcloop/openssh type squashfs (ro,relatime)

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Problem with home directory
« Reply #3 on: August 26, 2011, 08:05:33 PM »
... Moreover i saw that if i save a file in /home it's deleted at the next reboot, even with home=hda1 in extlinux.conf
That indicated in my view that 'home' is still included in '/opt/.filetool.lst' and hence the restoration from backup and your persistent home (on 'hda1') are "fighting" with each other over those files. The need to exclude persistent directories from backup has come up now countless times in the forum and is clearly explained in the wiki.

On this point I wonder whether this needs to be highlighted more strongly (in RED and 24 pt font ??) in the wiki, or better added to the FAQ, as it pops up so often.

The problem with the '.jwmrc' file sounds like what would happen if the file is not a file but a symbolic link into an extension. Running ls -al .jwmrc should clarify this quite easily.

Offline guillaumetld

  • Newbie
  • *
  • Posts: 37
Re: Problem with home directory
« Reply #4 on: August 29, 2011, 05:00:05 AM »
but home is NOT indicated in filetool.lst and i am sure of that.

Nevertheless, you are right with the fact that .jwmrc are symbolic links. The real file is in tmp/tcloop/jwm/etc/skel
and i can't remove them, even in root.

edit: At boot, i have chmod: /home/tc/.jwmrc: Read only file system
edit 2: If you have a solution, it's good for my knwoledge, but i installed jwm snapshot and it works perfectly.

edit 3: Just an other question. I would like to modify the /usr/local/tce.jwn and launch a program called bclient.bat, located in /home/shop.
I tried to use exec /home/shop/bclient.bat but it doesn't work, because bclient.bat call other files with relative links, and i don't want to modify all the code...In fact, i always need to cd /home/shop before launching this program. Then, i tried to use cd /home/shop in my tcejwm, but it doesn't work. Any idea ?
« Last Edit: August 29, 2011, 06:39:03 AM by guillaumetld »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Problem with home directory
« Reply #5 on: August 29, 2011, 08:39:56 AM »
If you are talking about the .jwmrc links to /tmp/tcloop/jwm in your home directory then to correct this try the following:

cp -L /etc/skel/.jwmrc* .

Answer y to overwrite each file. Both jwm and jwm-snapshot extensions need some adjustments.

10+ Years Contributing to Linux Open Source Projects.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: Problem with home directory
« Reply #6 on: August 29, 2011, 08:49:20 AM »
Hi guillaumetld
Lets do a quick sanity check as to why you are losing your files in home. Post the output from:
sudo find / -iname mydata*
cat /proc/cmdline
cat /opt/.backup_device
cat /opt/.tce_dir

        [EDIT]: Added missing period in last line
« Last Edit: August 29, 2011, 11:45:15 AM by Rich »

Offline guillaumetld

  • Newbie
  • *
  • Posts: 37
Re: Problem with home directory
« Reply #7 on: August 29, 2011, 10:25:15 AM »
In the good order:

Quote
/mnt/hda1/tce/mydata.tgz
/etc/sysconfig/mydata

Quote
initrd=/boot/tinycore.gz quiet home=hda1 tce=hda1 opt=hda1 BOOT_IMAGE=/boot/bzImage

Quote
hda1/tce

Quote
cat: can't open '/opt/tce_dir': No such file or directory

I made a sudo find / -name tce_dir and there is nothing.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Problem with home directory
« Reply #8 on: August 29, 2011, 11:38:44 AM »
If you are talking about the .jwmrc links to /tmp/tcloop/jwm in your home directory then to correct this try the following:

cp -L /etc/skel/.jwmrc* .

Answer y to overwrite each file. Both jwm and jwm-snapshot extensions need some adjustments.
Verifying the issue with .jwmrc files being read-only filesystem caused by linking to /tmp/tcloop, I have updated both jwm.tcz and jwm-snapshot.tcz. Not being a use of this window manager, I would appreciate feedback in the TCE section: http://forum.tinycorelinux.net/index.php/topic,11295.msg59308.html#msg59308
10+ Years Contributing to Linux Open Source Projects.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: Problem with home directory
« Reply #9 on: August 29, 2011, 11:43:32 AM »
Hi guillaumetld
My fault, I didn't hit the . key hard enough, it should have read:
cat /opt/.tce_dir

That  /etc/sysconfig/mydata  entry looks a little suspicious, how are you running your back up?
Command line or using the GUI? If command line, what command are you giving? If GUI, is the
device listed as hda1/tce?

Offline guillaumetld

  • Newbie
  • *
  • Posts: 37
Re: Problem with home directory
« Reply #10 on: August 29, 2011, 11:47:29 AM »
Quote
/mnt/hda1/tce

I run my backup with the GUI, and i used the default option i had the first time which was hda1/tce.

Offline guillaumetld

  • Newbie
  • *
  • Posts: 37
Re: Problem with home directory
« Reply #11 on: August 29, 2011, 11:50:55 AM »
In fact, i overwrited the .jwmrc* in my /home, with the /etc/skel/.jwmrc* and it works now.

Nevertheless, i dont need to use jwm. The onliest thing i need is a desktop manager because i need to configure the right click, and see a bar with the windows openned. If you know a better one, i'm in !

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: Problem with home directory
« Reply #12 on: August 29, 2011, 12:07:20 PM »
Hi guillaumetld
I'm running out of ideas here. If you rename that  /etc/sysconfig/mydata  file to  /etc/sysconfig/nmydata
and run your back up and reboot, do you still lose /home files? Does  /etc/sysconfig/mydata show
up again?

Did you actually save a file to /home or a link to a file? Does anyone know if links get included in
back ups?

Offline guillaumetld

  • Newbie
  • *
  • Posts: 37
Re: Problem with home directory
« Reply #13 on: August 29, 2011, 12:22:04 PM »
It's working now in fact, maybe i fixed an error when i tried to do something else (in fact, i had some backup conflict before, maybe it's this ?).

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: Problem with home directory
« Reply #14 on: August 29, 2011, 12:36:27 PM »
Hi guillaumetld
Did you rename the file as I suggested? If so, if you change it back do your back up problems return?