View previous topic :: View next topic |
Author |
Message |
ymichou n00b
Joined: 06 Oct 2006 Posts: 4
|
Posted: Fri Oct 06, 2006 7:29 pm Post subject: Accidentaly moved /etc/init.d directory to a home user direc |
|
|
Hi,
I accidentally move the /etc/init.d directory to the home directory of a normal user...
Now, when I rebooted on my gentoo installation, it stopped at the point where it tried to read the /etc/init.d directory, which it didn't find.
It allowed me to log in as root. Which I did. Now, when I tried to move the "init.d" directory from /home/user/ to /etc, it tell me that the target file system is read only.
How can I make it writeable ??
Thanks for any advice,
Yanick |
|
Back to top |
|
|
jonnevers Veteran
Joined: 02 Jan 2003 Posts: 1594 Location: Gentoo64 land
|
Posted: Fri Oct 06, 2006 7:31 pm Post subject: Re: Accidentaly moved /etc/init.d directory to a home user d |
|
|
ymichou wrote: | Hi,
I accidentally move the /etc/init.d directory to the home directory of a normal user...
Now, when I rebooted on my gentoo installation, it stopped at the point where it tried to read the /etc/init.d directory, which it didn't find.
It allowed me to log in as root. Which I did. Now, when I tried to move the "init.d" directory from /home/user/ to /etc, it tell me that the target file system is read only.
How can I make it writeable ??
Thanks for any advice,
Yanick |
try booting into a livecd
mounting your / directory (whatever it is hda1, sda1, etc) to /mnt/gentoo
if /home is a seperate parition mount it to /mnt/gentoo/home. if not skip this step.
and try moving the init.d directory then.
Code: | mv /mnt/gentoo/home/user_you_moved_it_to/init.d /mnt/gentoo/etc |
|
|
Back to top |
|
|
ymichou n00b
Joined: 06 Oct 2006 Posts: 4
|
Posted: Fri Oct 06, 2006 7:45 pm Post subject: Re: Accidentaly moved /etc/init.d directory to a home user d |
|
|
////
Try booting into a livecd
mounting your / directory (whatever it is hda1, sda1, etc) to /mnt/gentoo
if /home is a seperate parition mount it to /mnt/gentoo/home. if not skip this step.
and try moving the init.d directory then.
Code: | mv /mnt/gentoo/home/user_you_moved_it_to/init.d /mnt/gentoo/etc | [/quote]
///
Thanks.
Yes I though of doing this, but my home is on a raid0(stripped) file system and the root system is on a raid1 (mirror). So it make it a little more difficult. That's why I wanted to know if the file system could be made writeable when I end up in the maintenance login when I do a normal boot of my system
Yai |
|
Back to top |
|
|
widan Veteran
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Fri Oct 06, 2006 10:13 pm Post subject: Re: Accidentaly moved /etc/init.d directory to a home user d |
|
|
ymichou wrote: | That's why I wanted to know if the file system could be made writeable when I end up in the maintenance login when I do a normal boot of my system |
You can remount it read/write:
Code: | # mount -o rw,remount / |
|
|
Back to top |
|
|
ymichou n00b
Joined: 06 Oct 2006 Posts: 4
|
Posted: Sat Oct 07, 2006 10:06 am Post subject: Re: Accidentaly moved /etc/init.d directory to a home user d |
|
|
//
widan wrote: | ymichou wrote: | That's why I wanted to know if the file system could be made writeable when I end up in the maintenance login when I do a normal boot of my system |
You can remount it read/write:
Code: | # mount -o rw,remount / |
|
//
SOLVED
During the maintenance login I could copy the directory to it original place.
Thanks
Yanick |
|
Back to top |
|
|
|