PDA

View Full Version : VI wont install (not normal question)


pitt30
08-02-2003, 01:26 PM
when i try to ftp .bashrc to root(/) it gives me an error that / is read only.

so now what do i do, how can i get around that, or can't i

thanks for any help

mrblack51
08-02-2003, 01:54 PM
actually, this is the "normal question" =) you have to mount your root as read/write rather than read only, which is the default. you can do this by using the following command at bash:

mount -o remount,rw /

however, if you are running an s2 and using the bash env hack (not monte), then you can't put your .bashrc onto the root and have it stay there. the initrd will delete it on boot.

pitt30
08-02-2003, 02:02 PM
well i used cobelli's guide, which i believe is the bash env hack. in that case what am i supposed to do?
i need to get an editor on there

devnull
08-03-2003, 03:54 AM
My root partition doesn't seem to be mounted read-only even though 'mount' says so:


bash-2.02# pwd
/
bash-2.02# mount
/dev/hda4 on / type ext2 (ro)
/dev/hda9 on /var type ext2 (rw)
/proc on /proc type proc (rw)
bash-2.02# touch woof
bash-2.02# date
Sun Aug 3 07:29:44 UTC 2003
bash-2.02# ls -l woof
-rw-rw-rw- 1 0 0 0 Aug 3 07:29 woof


Should I be worried? The series 1 hacking threads seem to be very careful about making sure that you remount read-only to avoid corruption.

Anyone else seen this behavior? Obviously pit30 has not. :-(

gary

alldeadhomiez
08-03-2003, 10:28 AM
Originally posted by devnull
My root partition doesn't seem to be mounted read-only even though 'mount' says so

mount probably reads /etc/mtab to get that data, which might not be up to date on a read-only partition because of the obvious chicken and egg problem involved. Use 'cat /proc/mounts' to find out for sure, as that reads it straight from the kernel.

devnull
08-03-2003, 01:32 PM
/proc/mounts showed rw.

Now all I have to do is find out where it's getting changed to rw. I didn't intentionally change it - it came up this way after monte.

thanks for the help,

gary