Find the answer to your Linux question:
Results 1 to 5 of 5
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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    25

    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
    917
    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,672
    Does Kali use sudo? If so does
    Code:
    sudo passwd root
    let you set things up?
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jul 2010
    Posts
    25
    Thanks chroot worked

  6. #5
    Just Joined!
    Join Date
    Jul 2010
    Posts
    25
    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
  •