Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Computer fails to boot



"Stephen J. Turnbull" <stephen@example.com> wrote:

>Aha, enlightenment crashes through.  Of course you can't, / is a CD
>(plus a little magic that makes it a little bit writable :-&#254; ).
>That's also why you can't change the permissions of /bin/sh, most
>likely.  But you don't want to, you want to fix the one on the hard
>drive.
>
>Try this:
>
>$ sudo mkdir /tmp/mnt
>$ sudo mount -t ext3 /dev/sda1 /tmp/mnt
># for comparison's sake
>$ ls -l /tmp/mnt/bin/*sh
>$ sudo chmod 0755 /tmp/mnt/bin/sh
>$ ls -l /tmp/mnt/bin/*sh
>
># Eyeball the ls output.  Pretty much all of these should have
># permissions "-rwxr-xr-x" except for "sh" itself which should be a
># symlink with permissions "lrwxrwxrwx".  Especially whatever "sh"
># points to should be "-r-xr-xr-x" or "-rwxr-xr-x".  The size of "sh"
># (or its target, if a symlink) is likely to be around 80KB (for dash)
># or 1MB (for bash/zsh), if not, worry about disk corruption.

ubuntu@example.com:~$ sudo mkdir /tmp/mnt
ubuntu@example.com:~$ sudo mount -t ext3 /dev/sda1 /tmp/mnt
ubuntu@example.com:~$ ls -l /tmp/mnt/bin/*sh
-rwxr-xr-x 1 root root 813912 2008-05-12 18:36 /tmp/mnt/bin/bash
-rwxr-xr-x 1 root root 100856 2008-03-12 11:52 /tmp/mnt/bin/dash
lrwxrwxrwx 1 root root      4 2008-07-15 06:28 /tmp/mnt/bin/rbash -> bash
lrwxrwxrwx 1 root root      4 2008-07-15 14:55 /tmp/mnt/bin/sh -> dash
ubuntu@example.com:~$ sudo chmod 0755 /tmp/mnt/bin/sh
ubuntu@example.com:~$ ls -l /tmp/mnt/bin/*sh
-rwxr-xr-x 1 root root 813912 2008-05-12 18:36 /tmp/mnt/bin/bash
-rwxr-xr-x 1 root root 100856 2008-03-12 11:52 /tmp/mnt/bin/dash
lrwxrwxrwx 1 root root      4 2008-07-15 06:28 /tmp/mnt/bin/rbash -> bash
lrwxrwxrwx 1 root root      4 2008-07-15 14:55 /tmp/mnt/bin/sh -> dash

># If success, eject CD and ...
>
>$ shutdown -r now

Preparing to shut down and restart the computer now.





Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links