LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2012, 01:18 PM   #1
Carl1968
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
Edit Grub


Why do you get a blank window when trying to edit grub with vi
 
Old 10-03-2012, 01:28 PM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,963

Rep: Reputation: 272Reputation: 272Reputation: 272
what file are you trying to edit? What Distro?
 
Old 10-03-2012, 01:49 PM   #3
Carl1968
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-03-2012, 02:11 PM   #4
Gunjo
LQ Newbie
 
Registered: Sep 2012
Location: Maharashtra State, India
Distribution: Red Hat Enterprise Linux Server release 6.0 (Santiago)
Posts: 18

Rep: Reputation: Disabled
Quote:
Originally Posted by Carl1968 View Post
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
 
Old 10-03-2012, 02:30 PM   #5
Carl1968
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Yes, but the question is why is the window blank?
 
Old 10-03-2012, 02:41 PM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,963

Rep: Reputation: 272Reputation: 272Reputation: 272
Let me ask you this, Does the file exist that you are attempting to open?
 
Old 10-03-2012, 02:55 PM   #7
Carl1968
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
It's a question in a textbook I do not have the System running currently.
 
Old 10-03-2012, 03:11 PM   #8
Gunjo
LQ Newbie
 
Registered: Sep 2012
Location: Maharashtra State, India
Distribution: Red Hat Enterprise Linux Server release 6.0 (Santiago)
Posts: 18

Rep: Reputation: Disabled
Quote:
Originally Posted by Carl1968 View Post
Yes, but the question is why is the window blank?
Quote:
Originally Posted by Carl1968 View Post
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.
 
Old 10-03-2012, 04:51 PM   #9
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,963

Rep: Reputation: 272Reputation: 272Reputation: 272
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.

Last edited by colorpurple21859; 10-04-2012 at 02:50 PM.
 
Old 10-03-2012, 05:02 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Quote:
Originally Posted by colorpurple21859 View Post
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.
 
Old 10-03-2012, 10:56 PM   #11
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,963

Rep: Reputation: 272Reputation: 272Reputation: 272
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.

Last edited by colorpurple21859; 10-03-2012 at 11:31 PM.
 
Old 10-04-2012, 06:20 AM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
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 ..
 
Old 10-04-2012, 09:01 AM   #13
gopinathnatarajan
LQ Newbie
 
Registered: Sep 2012
Location: Bangalore
Distribution: Red Hat, CentOs
Posts: 16
Blog Entries: 1

Rep: Reputation: Disabled
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.
 
Old 10-04-2012, 10:17 AM   #14
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to edit the grub grub config file on Fedora 17? Not_Dead Linux - Software 1 08-30-2012 05:38 PM
[SOLVED] Edit grub.conf from grub shell noony123 Linux - Newbie 2 03-07-2011 07:42 AM
[SOLVED] How come I can't edit /boot/grub/grub.conf or /boot/grub/menu.lst in Fedora 14? trien27 Fedora 4 01-22-2011 05:02 PM
[SOLVED] no grub/defaults/grub to edit on triole-boot system EDDY1 Linux - Software 21 10-31-2010 04:10 PM
how to edit grub.conf from grub shell during booting pashaikh Linux - Security 1 06-27-2006 06:01 AM


All times are GMT -5. The time now is 08:52 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration