Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    fstab mount problems


    I have a pure linux desktop with 4 OSes on it, it is booted through grub, and this direct boots the other 3 grub2 OSes one of which is Kali. Because of my grub setup I do not have recovery options available for the grub2 OSes and Kali for some reason did not give me a root password option on install and a blank and toor do not work. I thought I might try opening mepis logging into a shell as # and running
    mount -o remount,rw /dev/sda6 and the doing a password set, however it appears there are no dynamic entries in fstab so that path is not open. Is it possible to do it with mount -t ext4 and follow through with a mount -o somehow I have tried a few things with no joy ?

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    963
    You don't need to use mount -o, you need to just mount the '/' partition for the distro of choice to any new mount point.

    ie: mkdir /mytemp
    mount /dev/sda6 /mytemp

    Then, you can either edit the /etc/shadow file manually, or you can try to chroot to that dir and run passwd.

  3. #3
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,907
    Does Kali use sudo? If so does
    Code:
    sudo passwd root
    let you set things up?
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!


    The Fifth Continent

  4. $spacer_open
    $spacer_close
  5. #4
    Thanks chroot worked

  6. #5
    Quote Originally Posted by mizzle View Post
    You don't need to use mount -o, you need to just mount the '/' partition for the distro of choice to any new mount point.

    ie: mkdir /mytemp
    mount /dev/sda6 /mytemp

    Then, you can either edit the /etc/shadow file manually, or you can try to chroot to that dir and run passwd.
    Thanks that worked perfectly

Posting Permissions

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