Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17
After chroot, don't forget to use Code: su your_regular_user_name cd then you can use nano to created the file in your home folder using Code: nano ~/.xinitrc ... the file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043

    After chroot, don't forget to use
    Code:
    su your_regular_user_name
    cd
    then you can use nano to created the file in your home folder using
    Code:
    nano ~/.xinitrc
    ... the file only needs to contain
    Code:
    exec gnome-session
    ... jayd512 instructions should do the job - but with the above will ensure ~/.xinitrc is owned by your regular user rather than root

  2. #12
    Just Joined!
    Join Date
    Feb 2011
    Posts
    14
    Quote Originally Posted by jayd512 View Post
    From the LiveCD, open a terminal and do the following:

    Code:
    mkdir /mnt/sdax            <replace x with your home partition>
    mount /dev/sdax /mnt/sdax
    chroot /mnt/sdax /bin/bash
    You should then be able to make changes to your .xinitrc.
    The chroot /mnt/sda4 /bin/bash command returns with "chroot: failed to run command '/bin/bash' : No such file or directory

  3. #13
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    I've had that happen once or twice.
    After mounting the partition, try it without the '/bin/bash'
    Code:
    chroot /mnt/sda4
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  4. #14
    Just Joined!
    Join Date
    Feb 2011
    Posts
    14
    Quote Originally Posted by jayd512 View Post
    I've had that happen once or twice.
    After mounting the partition, try it without the '/bin/bash'
    Code:
    chroot /mnt/sda4
    It still replies with "chroot: failed to run command '/bin/bash' : No such file or directory"

  5. #15
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Is your /home partition on a separation partition than your root partition? If so, then you won't be able to chroot (b/c there is no shell there to get invoked).

    To list your partitions, post the output of:
    Code:
    fdisk -l
    To help us troubleshoot, you can also show the contents of your mounted partition:
    Code:
    ls /mnt/sda4

  6. #16
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    Quote Originally Posted by jayd512 View Post
    Code:
    mkdir /mnt/sdax            <replace x with your home partition>
    mount /dev/sdax /mnt/sdax
    chroot /mnt/sdax /bin/bash
    Had not spotted this, chroot requires root partition ... if you have a separate home partition then you need to chroot using your root partition - then use mount -a to mount partitions, then su your_regular_user and then create ~/.xinitrc

    If you need more help with this then post the output of sudo blkid

    Ed: you could just boot Arch then press Ctrl+Alt+F1 and login as your regular user in a virtual terminal and create ~/.xinitrc

  7. #17
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Well crud... that little slip made it right past me
    Sorry about that, guys.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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