Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: accidentaly removed all the permission from /bin folder. root not abl to run any cmd

  1. #11
    Join Date
    Oct 2009
    Beans
    4

    Re: accidentaly removed all the permission from /bin folder. root not abl to run any

    the system is on fedora 5..

  2. #12
    Join Date
    May 2008
    Location
    Ohio, USA
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: accidentaly removed all the permission from /bin folder. root not abl to run any

    Quote Originally Posted by viewguest View Post
    hey guys thanks for ur response..
    i hv booted from live cd.. n went into rescue mode

    when i type command, it give following reponse
    sh-3.2# sudo mount /dev/sda2 /mnt/sda2
    sh: sudo: command not found

    When you are in rescue mode, you are already the root user. "sudo" is not needed.

    Quote Originally Posted by viewguest View Post
    if i type foll command

    sh-3.2# mount /dev/sda2 /mnt/sda2
    mount: mount point /mnt/sda2 does not exists


    same with the cmd mount /dev/sda1 /mnt/sda1

    and both sda2 n sda1 are there in dev folder.
    Right. You will need to create the mount point. So, sticking to my example, we would create the mount point for /dev/sda2 like so:
    Code:
    mkdir -p /mnt/sda2
    Once this is done, now we can mount your partition like:
    Code:
    mount /dev/sda2 /mnt/sda2
    "Anybody who tells me I can't use a program because it's not open source, go suck on rms. I'm not interested. 99% of that I run tends to be open source, but that's _my_ choice, dammit." -- Linus Torvalds, 2004.

  3. #13
    Join Date
    Sep 2009
    Location
    127.0.0.1
    Beans
    159

    Re: accidentaly removed all the permission from /bin folder. root not abl to run any

    You should check the permissions on the mount point /mnt/sda2 after you create it but before you mount /dev/sda2. The permissions should be 7xx (where x is anything.)

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •