LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-18-2009, 12:04 PM   #1
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Rep: Reputation: 15
Exclamation How to i change to root?


I need to be "Root" so i can change boot files, anyone know how i can do that?

Last edited by eric666; 06-19-2009 at 10:35 PM. Reason: new problem
 
Old 06-18-2009, 12:31 PM   #2
nuwen52
Member
 
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
1) The file you are looking for is /boot/grub/menu.lst or /boot/grub/grub.conf, depending on the distro and/or version of grub. You can change the menu to look however you want it to. To run a certain OS normally, you want the "default" option. If the OS you want to run normally is the fifth in the list, then the default option for you would be 4. I don't know about hitting f8 or something to get the menu, but if you add the hiddenmenu option before the list of entries, that will cause no menu to come up unless you hit a key.

2) Probably "parted" can do this. Try searching this forum for that or gparted.

3) I have not had these problems with firefox. Do you maybe not have permissions to change the files in your .mozilla directory (where firefox stores local settings)?

Last edited by nuwen52; 06-18-2009 at 12:46 PM.
 
Old 06-18-2009, 12:54 PM   #3
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nuwen52 View Post
1) The file you are looking for is /boot/grub/menu.lst or /boot/grub/grub.conf, depending on the distro and/or version of grub. You can change the menu to look however you want it to. To run a certain OS normally, you want the "default" option. If the OS you want to run normally is the fifth in the list, then the default option for you would be 4. I don't know about hitting f8 or something to get the menu, but if you add the hiddenmenu option before the list of entries, that will cause no menu to come up unless you hit a key.

2) Probably "parted" can do this. Try searching this forum for that or gparted.

3) I have not had these problems with firefox. Do you maybe not have permissions to change the files in your .mozilla directory (where firefox stores local settings)?
I have found /boot/grub/menu.1st, now what do i do? Sorry i am a complete noob =P. I am suppose to change text right? how do i change so just windows xp and unbuntu?
 
Old 06-18-2009, 01:48 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
how do i change so just windows xp and unbuntu?
put a # before every line you don't want to display

example
if you don't want
Debian GNU/Linux, kernel memtest86


Quote:
title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd1,0)
kernel /vmlinuz-2.6.26-2-686 root=/dev/sdb5 ro
initrd /initrd.img-2.6.26-2-686

title Debian GNU/Linux, kernel memtest86
root (hd1,0)
kernel /memtest86.bin
It should look like

Quote:
title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd1,0)
kernel /vmlinuz-2.6.26-2-686 root=/dev/sdb5 ro
initrd /initrd.img-2.6.26-2-686

#title Debian GNU/Linux, kernel memtest86
#root (hd1,0)
#kernel /memtest86.bin
Make sure to backup the original file first
Code:
cp /boot/grub/menu.lst /boot/grub/menu.lst.backup

Last edited by repo; 06-18-2009 at 01:50 PM.
 
Old 06-18-2009, 04:16 PM   #5
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
http://download.cnet.com/Easeus-Part...-10863346.html

i used this to try resizing my partition. It worked for my XP, but somehow i couldnt get my linux to resize.
this is what the programs says
Disk 1
---------------------
C: NTFS 139gb system primary
*: other 9.56gb none logical
*: other 486.31mb none logical

for both *: there is 0 unused bytes


i moved the C: so nows it 70 GB and have around 70 Allocated GB ( i think it means empty)
but when i click the *: 9.56GB, i cant resize it (i think thats the linux one)

also, i make a backup just by copying it, and renameing it /boot/grub/menu.lst.backup

Thanks!
 
Old 06-18-2009, 04:22 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
I would suggest to use a linux live cd with qparted.
http://gparted.sourceforge.net/livecd.php
Best is to chkdsk the windows partition before resizing.
 
Old 06-18-2009, 04:42 PM   #7
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
sorrry, what does chkdsk? check disk? whats that mean?
 
Old 06-18-2009, 04:43 PM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
sorrry, what does chkdsk? check disk? whats that mean?
Sorry, should be defrag
 
Old 06-18-2009, 05:14 PM   #9
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
so i just burn the iso as image onto disc, and boot from disc?
 
Old 06-18-2009, 05:30 PM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
yes
 
Old 06-18-2009, 06:24 PM   #11
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
#1
Quote:
Originally Posted by repo View Post
yes
when i booted, a LOT of lines passed the monitor, kinda like matrix,
but then it said i needed graphic environment or something like.
what am i suppose to do after i boot from disc? because what it did was like command prompt, or python programming, and i don't know how to do it yet.
i thought it would be something like this
http://pcwin.com/media/images/screen...on_manager.gif


#2 Also, when i try to change the boot, it says

"Could not save the file /boot/grub/menu.1st

You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again."

Last edited by eric666; 06-18-2009 at 06:53 PM. Reason: Added Part2
 
Old 06-19-2009, 03:06 AM   #12
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Did you downloaded this file?
http://sourceforge.net/project/downl...ve-0.4.5-2.iso
burn the iso to cd, boot from cd, and follow the messages on screen.
It should start gparted.

Quote:
"Could not save the file /boot/grub/menu.1st
You must be root to make the changes
 
Old 06-19-2009, 07:22 PM   #13
eric666
LQ Newbie
 
Registered: Jun 2009
Posts: 21

Original Poster
Rep: Reputation: 15
How do i change to root?

Edit: Added, the partition and firefox problem is fixed, just reboot problem

Last edited by eric666; 06-19-2009 at 10:26 PM. Reason: added more
 
Old 06-20-2009, 03:34 AM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
How do i change to root?
Depends of the distribution.
use su or sudo
 
Old 06-20-2009, 09:28 AM   #15
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,549
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,
Quote:
Originally Posted by eric666 View Post
I need to be "Root" so i can change boot files, anyone know how i can do that?
Please don't edit the OP to reflect a new problem. I'm jumping out since this does not truly represent the subject title.
 
  


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
Firefox dynamic content problems, and how to uninstall Firefox in Ubuntu rose_bud4201 Linux - Software 1 11-05-2007 11:38 PM
Partiton westcor Linux - General 5 12-01-2005 03:01 AM
mounting problems on 80gb partiton spaghettiGoose Linux - Hardware 4 03-03-2005 02:03 AM
Help with enlarging my partiton hongman Linux - Newbie 10 02-28-2005 06:03 PM
Problems with Linux Installation along with WinXp:Partiton the Hard disk invinciblemk Linux - Newbie 2 01-23-2004 11:44 PM


All times are GMT -5. The time now is 12:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration