LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-09-2009, 01:34 PM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Rep: Reputation: 47
Mandriva's menu.lst problems'.


The following was written by CJS to my previous question.

Code:
This is just an idea, because I don't want to intrude on your excellent troubleshooting efforts, yancek; but it might help to see the output of meierfra's boot_info_script.txt in order to help pinpoint Gin's booting problem. If you are interested in running the script, Gins, how about downloading the "boot_info_script.txt" to your desktop, and then do the following as root user, but replace <username> with your username:
Code:
bash /home/<username>/Desktop/boot_info_script.txt
That will create a "RESULTS.txt" file in the same directory from where the script is run, namely your desktop; please copy/paste the contents of that file to your next post. That will help clarify your setup and hopefully what your booting problem might be.

http://www.linuxquestions.org/questi...428/page4.html

I do not how this works. It just went deep into the system and elicited all the details.

I believe it downloaded a script from some other source and elicited all the details.
These things are magic.

Could you tell me how it worked?
 
Old 01-09-2009, 01:50 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Gins;

When I recommended starting a new thread, I did not mean that you should start one that requires us to go back and re-read the other one!!! When you start a new thread, it needs to stand on its own.

Please tell us exactly what your question is: In this case, this might mean that you should summarize the information you are referring to.



Example:
Suppose I'm struggling with SED (I do that a lot....). I might logically start a new thread like this:
Quote:
In this thread <link>, they describe how SED addressing works. The discussion includes a new feature in which addressing can be used to access--eg--every third line. Can this be used in conjunction with the incremental addressing? eg sed '1,+~3<command>"
 
Old 01-09-2009, 02:18 PM   #3
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks pixellany

The following is my question.

Our friend CJS asked me to click on 'boot info script.txt'

It downloaded a thread and penetrate into my system and elicited a .txt file.

I just clicked; it elicited a .txt file.

I don't know how that works.
 
Old 01-09-2009, 02:32 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Gins View Post
Thanks pixellany

The following is my question.

Our friend CJS asked me to click on 'boot info script.txt'

It downloaded a thread and penetrate into my system and elicited a .txt file.

I just clicked; it elicited a .txt file.

I don't know how that works.
OK--you are getting closer... Where do I get this script you are referring to?

Are you asking HOW the script creates a .txt file??? Or where it gets the data??
 
Old 01-09-2009, 02:39 PM   #5
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Pixellany wrote the following:

Are you asking HOW the script creates a .txt file??? Or where it gets the data??


1. How do I download it without doing any work? I mean it penetrated into the system and elicited a .txt file

2. How did it penetrated into the system?

Usually I have to write a script and execute it.

I have some knowledge of writing scripts.

To execute a script you should use the 'chmod' command to change the status.

This particular file did not ask any permission; just penetrated into the system.
__________________
 
Old 01-09-2009, 02:48 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
One more time---where did you get the script that is doing **whatever**. If someone cannot repeat what you are doing, then how are we supposed to help you????

What you need to do is post:
  1. Where to get the script
  2. Details of how you ran it---ie what exactly you did.

From your previous post:
Quote:
Our friend CJS asked me to click on 'boot info script.txt'
It downloaded a thread and penetrate into my system and elicited a .txt file.
Where do I find 'boot info script.txt'??????

Last edited by pixellany; 01-09-2009 at 02:50 PM.
 
Old 01-09-2009, 03:49 PM   #7
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Yes, I want to know the following:

1. Where to get the script
2. Details of how you ran it---ie what exactly you did.
 
Old 01-09-2009, 06:13 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Gins;

I am afraid we may have a language barrier--or something.

You said that YOU did something with a script called "boot info script", and you described some things that happened. Now you are asking US where to get the script????

Maybe we should start over:
  • What is the original problem?
  • What have you tried?
  • What happened?
  • What is your current question?
 
Old 01-10-2009, 12:43 PM   #9
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
pixellany

English is the lingua franca for the forum. You are a native English speaker. English is my second language. So it is impossible to draw a parallel between your English and my English. I speak some Russian and French too.

It is needless to say there are language barriers between us.

Let me start from scratch.

1] Could you tell me how to download the file in question?

If I could download it, I would ask the the rest later on.
 
Old 01-10-2009, 01:42 PM   #10
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
Pixellany, I went back in Gins previous thread and found the link CJS provided to the script. You can get it ans see what it does if that is of any help.
 
Old 01-10-2009, 02:46 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Well, there it is!!!

Click on the link and it opens in a browser window--at least on my machine. Save the file, set the executable permissions, and run it. (You probably have to run it as root.)

Note that the script includes some instructions at the beginning.

I will try it myself when I have time.
 
Old 01-10-2009, 03:23 PM   #12
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
pixellany


1] Could you tell me how to download the file in question?
 
Old 01-10-2009, 03:25 PM   #13
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
Just in case anyone is wondering, the "Boot Info Script" now has an official home at sourceforge.net:

https://sourceforge.net/projects/bootinfoscript/

We appreciate and welcome any and all constructive criticism or suggestions, because the author (meierfra) would like the make the script as useful as possible when it comes to booting issues. Gins, in case you are wondering, you can execute a script without first setting its executable bit by doing:
Code:
sudo bash boot_info_script.sh
That also runs the script as root, and that's basically how you previously ran the script.

Last edited by CJS; 01-10-2009 at 03:28 PM.
 
Old 01-10-2009, 03:48 PM   #14
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I downloaded it for Mandriva 2009.


[ni@localhost Desktop]$ su root
Password:
[root@localhost Desktop]# ./boot_info_script.sh
bash: ./boot_info_script.sh: Permission denied
[root@localhost Desktop]#

Why didn't it work?

---------------------------------------------------------------

It is on the Desktop. As you see I have 3 files on the Desktop

[ni@localhost Desktop]$ ls
boot_info_script.sh

register.desktop

Buddahs_first_journey_to_SriLanka.jpg
[ni@localhost Desktop]$

------------------------------------------------------------------------------------------
[root@localhost Desktop]# file boot_info_script.sh
boot_info_script.sh: Bourne-Again shell script text executable
[root@localhost Desktop]#

I can't figure out the mistake I made. Probably I have a mental aberration as it is getting late here.

-----------------------------------------------------------------------------------
Yes, it worked.

[root@localhost Desktop]# sudo bash boot_info_script.sh
Finished. The results are in the file RESULTS.txt located in /home/ni/Desktop
[root@localhost Desktop]#


I have a question. It may be a silly question.
Why do I have to use the words 'sudo bash'?

In order to execute a script, we write './ name_of_the_script'

What is 'sudo bash'?
I must confess that there are many things which I have never learnt.

Last edited by Gins; 01-10-2009 at 04:00 PM.
 
Old 01-10-2009, 04:49 PM   #15
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You have to run that script as root.

You can switch to root using "su", or you can run individual commands using "sudo".

For details:
man su
man sudo

When you enter a command in Bash, it looks for a pathname in $PATH. To run the command in the current directory, you use "./command".

"." means "current directory"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub menu.lst rgreeves Linux - Software 7 11-22-2008 09:21 AM
GRUB / menu.lst problems with new linux distro on second hard drive kevinbenko Linux - Kernel 7 08-04-2008 11:19 PM
menu.lst not working lin_myworld Linux - Newbie 2 12-22-2007 05:00 PM
Grub Menu doesn't reflect menu.lst file fatsheep Linux - Software 4 06-11-2007 01:29 PM
Explain my Menu.lst Johnny Faster Ubuntu 5 06-22-2006 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration