Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is this a bad idea?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
grepcomputers
Guru
Guru


Joined: 16 Sep 2003
Posts: 375

PostPosted: Fri Apr 23, 2004 7:47 pm    Post subject: is this a bad idea? Reply with quote

I like having all my imporant data in /home, so I can blow away the other partitions if I suddenly need to reinstall (I know, unlikely).

Right now, /root is in /. I have some stuff in root which I want to keep backed up, as well as /etc (so I keep all my config files).

Is it better just to make copies of them periodically, or could I try...
mv /etc /home
mv /root /home
ln -s /home/etc /etc
ln -s /home/root /root

I just wondered if there are any ramifications to this that I have not forseen.

cheers...
...grep
Back to top
View user's profile Send private message
cheezyboy
n00b
n00b


Joined: 04 Feb 2004
Posts: 34

PostPosted: Fri Apr 23, 2004 8:30 pm    Post subject: Reply with quote

That sounds bad since / is mounted before /home and the config files in /etc are used for booting some of the stuff. I am not entirely sure what all might happen but I don't think that would be good. Remember grub/lilo mount the root partition during boot and somewhere in there is /etc/fstab which has the list of partitions to mount and if it isn't in / you would have to mount /home with grub or lilo during boot somehow.

Instead you might look into a cron job or something similar to backup /etc periodically not sure how I haven't played with the task scheduler stuff at all.

I think you might be alright with the /root though. I'm not sure what else might happen either.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Fri Apr 23, 2004 8:39 pm    Post subject: Reply with quote

Better do it the other way round (make symlinks in /home to /etc and /root).
I think it would work your way with /root, but not with /etc if /home is an extra partition. The problem will then be on /boot that /etc/fstab is a symlink to /home/etc/fstab, which is not yet mounted, thus not accessible and keeps the information on how to mount it. A similar problem is with /etc/inittab which is needed before filesystems get mounted.

Edit: cheezyboy was faster. I shouldn't open a dozen threads concurrently :wink:
Back to top
View user's profile Send private message
Some_Other_Nerd
n00b
n00b


Joined: 23 Apr 2004
Posts: 32
Location: 127.0.0.1 and ::1

PostPosted: Sat Apr 24, 2004 4:07 pm    Post subject: Reply with quote

I have a simmilar question, do you think this is ok?

mv /home /var
mv /root /var/home
ln -s /var/home /home
ln -s /var/home/root /root
usermod -d /var/home/root root
...

I think this makes sense (after reading man hier) because this way I can have all my files (like /var/www and /var/bak) backed up, not just my home folders.
_________________
foss-bugs.eth0.is-a-geek.org
eth0.is-a-geek.org
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sat Apr 24, 2004 4:32 pm    Post subject: Reply with quote

It would be ok to put /home on /var I think that was even teh default on some old unix variants. IMO it would be better to put /var/www and /var/bak and whatever else you want on /home. I just say that because mozilla(and probably some other progs) doesn't like it when the partition containing it's preffs dir fills up while it is running. It loses all you bookmarks and prefs if that happens. And /var is the most likely partition to sudeenly fill up in case of some failed emerges or a runaway log.
But I think putting /root on any partition besides / is not a good idea. You need it there in case you have to do some system maintenance with the other partitions unmounted. And as cheezyboy mentioned, moving /etc off of / is a definate no-no. Unless you have an initrd setup that will mont /etc before init is started.
Back to top
View user's profile Send private message
Some_Other_Nerd
n00b
n00b


Joined: 23 Apr 2004
Posts: 32
Location: 127.0.0.1 and ::1

PostPosted: Sat Apr 24, 2004 5:25 pm    Post subject: Reply with quote

Thanks, the two problems you mentioned don't really seem that important to me, I always do major system maintanance with LiveNetBSD or KNOPPIX and I almost constantly montior HD usage so if a log got ou of hand I would notice and kill it before it did damage.
_________________
foss-bugs.eth0.is-a-geek.org
eth0.is-a-geek.org
Back to top
View user's profile Send private message
grepcomputers
Guru
Guru


Joined: 16 Sep 2003
Posts: 375

PostPosted: Sun Apr 25, 2004 3:15 am    Post subject: Reply with quote

Hmm, a lot of good points have been made.
It seems simple enough to just write a cron job or something that will copy /etc and /root to /home every day at 2AM or something...or even not bother. After all, if something happens that I need to reinstall, I can always boot the Gentoo LiveCD and copy those folders into /home, then blow everything else away and go from there.

cheers...
...grep
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum