04-06-2017
Hi,
That's not so good, then - if your shell is missing from /bin you'll have to fix that before you can do your chroot. Just be sure that it really is your root filesystem that's mounted - it looks like it is from your screenshot, certainly. Have a look manually at the contents of /mnt/sysimage/bin and /mnt/sysimage/lib at a minimum in case anything else important is missing.
Either way, if Bash (assuming Bash is your shell) is truly missing, you'll have to get any missing binaries and libraries from your OS installation media, and copy them in to place using the Live CD/USB environment you're using. Then, you might be able to do your chroot, if you're lucky.
What actually went wrong, out of interest ? What was it that happened to this system that left it in the state it's now in, do you know ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
2. UNIX for Advanced & Expert Users
I want to add a default path /bin/mycommands along with others to be loaded as default path for all new accounts created on my system . With out the new accounts not having to change thie manually to /bin/mycommands.Do I change the /etc/profile ? is there any better way?
Please throw some... (2 Replies)
Discussion started by: sravusa
2 Replies
3. UNIX for Advanced & Expert Users
hi i have some perl scripts with shebang line as (#! /usr/bin/env perl ) instead of actual absolute path of perl ( i know why its that way ) everything works fine from command line , the problem is when i am trying to run those scripts from web ( local web tool ) it throws error as /usr/bin/env :... (6 Replies)
Discussion started by: zedex
6 Replies
4. Shell Programming and Scripting
How to code shell script to know if the file in a dirctory is empty i.e., zero byte then not to execute any graph.Please help on this thanks in advance.
---------- Post updated at 08:18 AM ---------- Previous update was at 08:14 AM ----------
I know if clause wil help.my question is how to... (7 Replies)
Discussion started by: vamsi86
7 Replies
5. UNIX for Dummies Questions & Answers
The way this works from the command prompt is:
___________________________________________
cd /data/local/bin
chmod 0755 file.bin
./file.bin
_______________________________________________
How do I make this happen in a script. The file must be run in its directory but I can not get the... (2 Replies)
Discussion started by: chrstdvd
2 Replies
6. AIX
Good day. I currently have a request to have sftp access to a specific directory for a user(s). They can have access to that folder only, and nothing below it.
Now here is the gotcha that seems to be catching me. The folder they need access to is NOT owned by root, and most of the parent... (0 Replies)
Discussion started by: smurphy_it
0 Replies
7. Shell Programming and Scripting
Hello,
When i run a bash script on ubuntu i get this message..
#!/bin/bash cannot find file or directory...
Can anibody help me with this, because the file actually exists....
Is there any extra configuration to be made? (5 Replies)
Discussion started by: oliveiraum
5 Replies
8. Solaris
Hi,
I am getting below error in Solaris 10 SPARC when trying to issue a search on /var/tmp partition
Below is the query
/bin/find /var/tmp/ -type f -atime +1
Below is the result
/bin/find: stat() error <File> : No such file or directory (28 Replies)
Discussion started by: prash358
28 Replies
9. Shell Programming and Scripting
I keep getting this error and I am not sure why.
-bash: ./p4: /bin/ksh^M: bad interpreter: No such file or directory
First I run my makefile and this works fine:
goodmain: main.o
gcc -o goodmain main.o
main.o: main.c
gcc -c main.c
Then I want to limit my output so I... (11 Replies)
Discussion started by: cokedude
11 Replies
10. Shell Programming and Scripting
Hi,
I installed ruby using rvm with root user on Linux.
Now i m trying the below command as a non root user with sudo privileges.
sudo /usr/local/rvm/rubies/ruby-2.2.5/bin/gem install passenger
I get the below error:
I had even reset the path for both gem as well as ruby as you... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT LINUX
grub-install
GRUB-INSTALL(8) System Administration Utilities GRUB-INSTALL(8)
NAME
grub-install - install GRUB to a device
SYNOPSIS
grub-install [OPTION] install_device
DESCRIPTION
Install GRUB on your drive.
-h, --help
print this message and exit
-v, --version
print the version information and exit
--modules=MODULES
pre-load specified modules MODULES
--boot-directory=DIR
install GRUB images under the directory DIR/grub instead of the /boot/grub directory
--grub-setup=FILE
use FILE as grub-setup
--grub-mkimage=FILE
use FILE as grub-mkimage
--grub-mkrelpath=FILE
use FILE as grub-mkrelpath
--grub-mkdevicemap=FILE use FILE as grub-mkdevicemap
--grub-probe=FILE
use FILE as grub-probe
--no-floppy
do not probe any floppy drive
--allow-floppy
Make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes.
--recheck
probe a device map even if it already exists
--force
install even if problems are detected
--disk-module=MODULE
disk module to use
INSTALL_DEVICE can be a GRUB device name or a system device filename.
grub-install copies GRUB images into /boot/grub, and uses grub-setup to install grub into the boot sector.
REPORTING BUGS
Report bugs to <bug-grub@gnu.org>.
SEE ALSO
grub-mkconfig(8), grub-mkimage(1), grub-setup(8), grub-mkrescue(1)
The full documentation for grub-install is maintained as a Texinfo manual. If the info and grub-install programs are properly installed at
your site, the command
info grub-install
should give you access to the complete manual.
grub-install (GRUB) 1.99-12ubuntu5 October 2011 GRUB-INSTALL(8)