Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Accidentaly moved /etc/init.d directory to a home user direc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ymichou
n00b
n00b


Joined: 06 Oct 2006
Posts: 4

PostPosted: Fri Oct 06, 2006 7:29 pm    Post subject: Accidentaly moved /etc/init.d directory to a home user direc Reply with quote

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
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Fri Oct 06, 2006 7:31 pm    Post subject: Re: Accidentaly moved /etc/init.d directory to a home user d Reply with quote

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
View user's profile Send private message
ymichou
n00b
n00b


Joined: 06 Oct 2006
Posts: 4

PostPosted: Fri Oct 06, 2006 7:45 pm    Post subject: Re: Accidentaly moved /etc/init.d directory to a home user d Reply with quote

////
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
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Fri Oct 06, 2006 10:13 pm    Post subject: Re: Accidentaly moved /etc/init.d directory to a home user d Reply with quote

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
View user's profile Send private message
ymichou
n00b
n00b


Joined: 06 Oct 2006
Posts: 4

PostPosted: Sat Oct 07, 2006 10:06 am    Post subject: Re: Accidentaly moved /etc/init.d directory to a home user d Reply with quote

//
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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