[ale] RESOLVED: Reboot wedging problems after disk transplant
Michael D. Hirsch
mhirsch at nubridges.com
Thu Jun 26 10:15:12 EDT 2003
On Thursday 26 June 2003 10:09 am, John Mills wrote:
> James, ALErs -
>
> Thanks for the lead.
>
> On 25 Jun 2003, James P. Kinney III wrote:
> > You will certainly need to be in runlevel 1 to do this.
> >
> > rm /tmp
> > mkdir /tmp
> > sync
> > sync
> > shutdown -h now
Hmm. I just remembered. When you create a tmp directory, remember to set
the permissions correctly (including the sticky bit) to rwxrwxrwt. "chmod
1777 /tmp" should do it.
I don't _think_ not having the sticky bit will affect things until you get
a malicious (or ignorant) user who starts deleting files that don't belong
to him. But it is better to be right. OTOH, it may have something to do
with shy you neede the hacks below. They should not be necessary.
Michael
> This was the right idea (Linux creates any essential '/tmp/' files at
> boot), but I still didn't start X11 successfully in RH-7.3. What _did_
> get me home was pre-creating all the /tmp/* subdirectories by the
> following ugly, round-about hack:
>
> # mkdir /get_tmp
> # telinit 1
> sh # (cd /usr ; tar cf - ./tmp ) | (cd /get_tmp ; tar xvf - )
> sh # cd /get_tmp
> sh # find ./tmp ! -type d -print > ./tmplist
> sh # rm -f `cat ./tmplist`
> sh # cd /
> sh # rm ./tmp
> sh # mv /get_tmp/tmp .
> sh # shutdown -h now
>
> (Cycle power for calm, quick and orderly reboot. #8-)
>
> Take out the trash:
> # rm -rf /get_tmp /usr/tmp
>
> NOTE1: '/usr' and '/' were different partitions so I used 'tar' to
> transplant the ./tmp branch but 'mv' to move it down by one directory in
> the same partion.
>
> NOTE2: The song-and-dance through the dummy '/get_tmp' branch just
> minimized the number of operations I did without a viable './tmp': you
> could probably dispense with it. If I planned doing this again #8-) I
> might try fewer steps, but I hoped caution would minimize further
> digital self-amputations:
> "All's well that ends." -- Anon, after The Bard
>
> Cheers.
>
> John Mills
> john.m.mills at alum.mit.edu
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list