
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Computer fails to boot
David Bernat writes:
> "Stephen J. Turnbull" <stephen@example.com> wrote:
>
> > sudo mount -o remount,rw /dev/sda1
> >
> >instead:
>
> ubuntu@example.com:~$ sudo mount -o remount,rw /dev/sda1
> mount: can't find /dev/sda1 in /etc/fstab or /etc/mtab
Aha, enlightenment crashes through. Of course you can't, / is a CD
(plus a little magic that makes it a little bit writable :-รพ ).
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.
# If success, eject CD and ...
$ shutdown -r now
Home |
Main Index |
Thread Index