LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-29-2006, 06:33 AM   #16
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112

Quote:
But Grub doesn´t count swap partition
The test of the pudding is in the eating so why not invoke a Grub shell, do a geometry command and paste the information here?
Code:
grub
geometry (hd0)
geometry (hd1)
Let Grub speak for itself!
 
Old 01-29-2006, 06:41 AM   #17
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Damn... Seems tthat you were right.... as I thought
Code:
grub> geometry (hd0)
drive 0x80: C/H/S = 65535/16/63, The number of sectors = 80293248, /dev/hdc
   Partition num: 0,  Filesystem type unknown, partition type 0x82
   Partition num: 1,  Filesystem type is reiserfs, partition type 0x83
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83

grub> geometry (hd1)
drive 0x81: C/H/S = 48641/255/63, The number of sectors = 781422768, /dev/sda
   Partition num: 0,  Filesystem type unknown, partition type 0x7
   Partition num: 4,  Filesystem type unknown, partition type 0x7
   Partition num: 5,  Filesystem type unknown, partition type 0x7
   Partition num: 6,  Filesystem type unknown, partition type 0x7
   Partition num: 7,  Filesystem type unknown, partition type 0x7
   Partition num: 8,  Filesystem type unknown, partition type 0x7
grub>
How should I continue?
In grub shell I can access ubuntus menu.lst by typing configfile (hd0,2)/boot/grub/menu.lst but what then?

Should I boot the machine and choose Ubuntu from bootloader and when it goes to Grub shell type:
root (hd0,2)
setup (hd0)

or what? I confused.

Last edited by Zmyrgel; 01-29-2006 at 06:48 AM.
 
Old 01-29-2006, 07:05 AM   #18
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
In a Grub shell
Code:
(hd0,2)/boot/grub/menu.lst
will boot up Ubuntu if its menu.lst is good

The commands
Code:
root (hd0,2)
setup (hd0)
instruct Grub to obtain the bootable files from the root partition of (hd0,2) and install it into the whole disk of (hd0) or the MBR. Since (hd0,2) has unbuntu that means you instruct to put Ubnuntu's Grub in MBR.

If you use "root (hd0,1)" in the above it will be Suse's Grub being installed into the MBR.

Got it ?
 
Old 01-29-2006, 07:07 AM   #19
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
I thought it would do something like that after reading through GRUB Manual but because I was't sure I didn't try it as I don't want to mess things more. I'll go and try that.
 
Old 01-29-2006, 07:38 AM   #20
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 37
Okay, It did work and now I'm using ubuntu exept it lost my root password. I even booted the system in restore mode and changed the password in there and then booted back to default ubuntu and still it complains my root password is wrong.

Edit. It seems my personal userpassword is the root password. Interresting.

Last edited by Zmyrgel; 01-29-2006 at 07:41 AM.
 
Old 01-29-2006, 07:49 AM   #21
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If you have Live CD, boot it up, make temporary directory in /mnt, mount the ubuntu partition, "chroot" to it and you can alter Ubuntu's root password by the "passwd" command.
 
  


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
guidance needed please with java runtime ceborame Ubuntu 2 08-18-2005 01:49 PM
Guidance needed - submitting a new driver to Open Source blodwyn Linux - Networking 1 03-21-2005 06:18 PM
Guidance Needed! LinuxRam Linux - Certification 5 09-07-2004 10:06 PM
Guidance needed: running an application on startup. nyumedic2000 Linux - General 1 07-15-2004 04:01 PM
Linux Guidance KevinGuy Linux - General 5 01-31-2004 12:02 AM


All times are GMT -5. The time now is 04:40 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