Operating System - HP-UX
1833016 Members
2170 Online
110048 Solutions
New Discussion

Move /.mozzila to new file system

 
SOLVED
Go to solution
Luis Franco
Occasional Advisor

Move /.mozzila to new file system

I would like to have more room in my / root file system. I would like to know the proper procedure in order to move a directory above / to a new file system and mount it.

Thanks in advance for your help
6 REPLIES 6
Mel Burslan
Honored Contributor

Re: Move /.mozzila to new file system

looks like you are running mozilla as root user and your home directory is set to "/" as, by default, mozilla created the .mozille subdirectory under your home directory designated by $HOME. I have not modified the mozilla settings for quite a while so I am not sure where but if you go to the edit menu and then the preferences, somewhere deep down inside, I believe you can specify where your files you want placed. After this, you can move the .mozilla directory to this new location you specified.
________________________________
UNIX because I majored in cryptology...
Juergen Tappe
Valued Contributor

Re: Move /.mozzila to new file system

1. create a new volume i.e.
lvcreate /dev/vg02/lvol9
lvextend -L 1000 /dev/vg02/lvol9
newfs -F vxfs /dev/vg02/rlvol9

2. stop any processes using your directory
in your case mozilla

3. mount new FS to temporary mountmoint
mkdir /.mozilla.new
mount /dev/vg02/lvol9 /.mozilla.new

4. "copy" any data to new FS
cd /.mozilla
find . | cpio -pdmuvx /.mozilla.new
(check content of /.mozilla.new)

5. umount new FS and "disable" old .mozilla
umount /.mozilla.new
mv /.mozilla ./mozilla.old
mv /.mozilla.new /.mozilla

6. modify /etc/fstab
add a line like
/dev/vg02/lvol9 /.mozilla vxfs delaylog 0 2

7. mount it finally
mount -av

8. restart the application
Working together
Juergen Tappe
Valued Contributor

Re: Move /.mozzila to new file system

forgot :

9. check application and if all working file
rm -r /.mozilla.old

(you want to get space in root filesystem)

:-)
Working together
Juergen Tappe
Valued Contributor
Solution

Re: Move /.mozzila to new file system

Two other thoughts:

1. you can try to "remove temporary Internet files" within you mozilla GUI.
Dont know where this is located within this GUI

2. quicker than creating a new filesystem is to find an existing one with enough space and using a symbolic link.
- du -skx /.mozilla
that is the size in KB you need elsewhere

- bdf
find a filesystem (not /tmp or /var/tmp pls)
where much more space is available.
Lets say its /usr for example.
Then
mv /.mozilla /usr/local/root.mozilla
ln -s /usr/local/root.mozilla /.mozilla
Working together
Luis Franco
Occasional Advisor

Re: Move /.mozzila to new file system

Thanks!!!, I used the Link option.

Juergen Tappe
Valued Contributor

Re: Move /.mozzila to new file system

btw: I would apreciate some points :-)
Working together