LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Edit Grub (https://www.linuxquestions.org/questions/linux-newbie-8/edit-grub-4175430316/)

Carl1968 10-03-2012 12:18 PM

Edit Grub
 
Why do you get a blank window when trying to edit grub with vi

colorpurple21859 10-03-2012 12:28 PM

what file are you trying to edit? What Distro?

Carl1968 10-03-2012 12:49 PM

I'm in a Linux Secuirty class and the question is: "Why do you get a blank screen when trying to edit grub with vi?" I have Fedoria 17 installed on Workstation 9 VM

Gunjo 10-03-2012 01:11 PM

Quote:

Originally Posted by Carl1968 (Post 4796240)
I'm in a Linux Secuirty class and the question is: "Why do you get a blank screen when trying to edit grub with vi?" I have Fedoria 17 installed on Workstation 9 VM

Type command to Edit the grub file.

#vim /etc/grub.conf

Carl1968 10-03-2012 01:30 PM

Yes, but the question is why is the window blank?

colorpurple21859 10-03-2012 01:41 PM

Let me ask you this, Does the file exist that you are attempting to open?

Carl1968 10-03-2012 01:55 PM

It's a question in a textbook I do not have the System running currently.

Gunjo 10-03-2012 02:11 PM

Quote:

Originally Posted by Carl1968 (Post 4796278)
Yes, but the question is why is the window blank?

Quote:

Originally Posted by Carl1968 (Post 4796304)
It's a question in a textbook I do not have the System running currently.

Have you executed the command? #vim /etc/grub.conf

Please execute it if you have problem. then paste the error message.

colorpurple21859 10-03-2012 03:51 PM

The general rule of thumb is home work questions aren't allowed on this forum, but I have seen excxeptions to the rule. I Don't know if this one would qualify as an expection. Some things to consider are:
1. grub consist of several files and directorys to work, just not one file, so
Quote:

vi grub
is vague.
2.Since this is a linux security class the answer may have something to do with permissions.

TobiSGD 10-03-2012 04:02 PM

Quote:

Originally Posted by colorpurple21859 (Post 4796396)
The general rule of thumb is home work questions aren't allowed on this forum, but I have seen excxeptions to the rule. I Don't know if this one would qualify as an expection. Some things to condider are:
1. grub consist of several files and directorys to work, just not one file, so is vague.
2.Since this is a linux security class the answer may have something to do with permissions.

Homework questions are in fact allowed, but it is expected that the member who asks them shows us what he has done before and where the problems are, we want to see that the member makes an effort himself. The member can't expect from us that we make the homework for him, but of course we will try to help if there are problems that the meber can't solve.
So reading a question in a textbook and then asking here without even trying it once is not the way to go.

colorpurple21859 10-03-2012 09:56 PM

I wasn't sure what the policy was on homework. I have seen other posts that has indicated that answering home work questions was frowned on so I was hesitant about giving any definite answers. I had done a google search and didn't find any thing that stood out as a quick answer before replying. Since most questions in text books relate to what is being studied and taking in to account the little bit I know about grub, I wasn't real sure what the question was asking to begin with and therefore did not give what I believed would be the correct answer.

chrism01 10-04-2012 05:20 AM

I think we'd need a bit more context of the qn, as it doesn't immediately make sense to me.
However, in Centos/RHEL etc its /boot/grub/grub.conf (symlinked from /boot/grub/menu.lst).
I could guess why the qn is phrased that way, but I think I've given enough hints here .. ;)

gopinathnatarajan 10-04-2012 08:01 AM

The default /boot/grub/grub.conf in fedora represents the following.

title Installation
root (hd0,0)
kernel /vmlinuz-install
initrd /initrd.img-install

if not then the /boot/grub/grub.conf file is edited (or) moved to some other /data files.
so your are getting a blank window.

Wim Sturkenboom 10-04-2012 09:17 AM

Definitely permissions; just played a bit in Ubuntu to simulate. Up to Carl1968 to figure out which ones and how ;)

BTW A standard setup in Ubuntu does not show the behaviour of 'empty file'


All times are GMT -5. The time now is 09:59 AM.