LinuxQuestions.org
Register a domain and help support LQ
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 07-07-2011, 01:50 PM   #31
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24

Quote:
Originally Posted by ag2231 View Post
Hi Knightron, I tried what you suggested and it still gave me a display of the word GRUB (repeated until everything frooze). I then thought to try and repair the GRUB install as I have using the following commands again;
1) Command 1: chroot /mnt/sysimage
2) Command 2: grub-install /dev/sdc2


but this time I got a different message (I have attached a jpg iamge of a picture I took of the message).
What is the output of
Code:
fdisk -l
? This will show us some important output like your disk partitioning and what drives are assigned to where, along with which partition is marked as boot ...
 
0 members found this post helpful.
Old 07-07-2011, 02:15 PM   #32
ag2231
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Sandwormusmc, Can you see the attached image of the screen shot?
 
Old 07-07-2011, 02:19 PM   #33
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
Quote:
Originally Posted by ag2231 View Post
Hi Knightron, I tried what you suggested and it still gave me a display of the word GRUB (repeated until everything frooze). I then thought to try and repair the GRUB install as I have using the following commands again;
1) Command 1: chroot /mnt/sysimage
2) Command 2: grub-install /dev/sdc2


but this time I get a different message (I have attached a jpg iamge of a picture I took of the message).
are you aware you were originally running: grub-install /dev/sda3.
this type of moving target inconsistancy makes it much harder to diagnose the problem from thousands of miles away.

Last edited by schneidz; 07-07-2011 at 02:20 PM.
 
0 members found this post helpful.
Old 07-07-2011, 02:33 PM   #34
ag2231
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Output information

Quote:
Originally Posted by sandwormusmc View Post
What is the output of
Code:
fdisk -l
? This will show us some important output like your disk partitioning and what drives are assigned to where, along with which partition is marked as boot ...
Please see 3 attached images, titled by the command used to generate the information, ex; fdisk -l.jpg. The second jpg has the ouput info for the commands, df -h and mount.
Attached Thumbnails
Click image for larger version

Name:	fdisk -l.jpeg
Views:	12
Size:	57.6 KB
ID:	7513   Click image for larger version

Name:	df -h_Mount.jpg
Views:	10
Size:	183.1 KB
ID:	7514  
 
Old 07-07-2011, 02:36 PM   #35
ag2231
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
are you aware you were originally running: grub-install /dev/sda3.
this type of moving target inconsistancy makes it much harder to diagnose the problem from thousands of miles away.
I realized I was copying and pasting the example instructions that were quoted on from the link I referenced. I corrected it after I realized it might cause some confusion.
 
Old 07-07-2011, 02:53 PM   #36
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
a shot in the dark:
maybe change the second command in the grub prompt (the one that starts with 'setup') should end with (hd2,0) ?

edit: and maybe the original command should be: grub-install /dev/sdc1 ?

fyi: according to your fdisk output /dev/sdc2 points to your swap.

Last edited by schneidz; 07-07-2011 at 03:02 PM.
 
1 members found this post helpful.
Old 07-07-2011, 04:14 PM   #37
ag2231
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
A little bit closer

Quote:
Originally Posted by schneidz View Post
a shot in the dark:
maybe change the second command in the grub prompt (the one that starts with 'setup') should end with (hd2,0) ?

edit: and maybe the original command should be: grub-install /dev/sdc1 ?

fyi: according to your fdisk output /dev/sdc2 points to your swap.
I have gotten a bit farther, but I still can not boot. Please see attached images; I have one last image I will upload in another post.
Attached Thumbnails
Click image for larger version

Name:	rEFItStartScreen.jpeg
Views:	9
Size:	28.2 KB
ID:	7515   Click image for larger version

Name:	StartScreen2.jpeg
Views:	8
Size:	26.5 KB
ID:	7516   Click image for larger version

Name:	StartScreen3.jpeg
Views:	11
Size:	31.2 KB
ID:	7517  
 
Old 07-07-2011, 04:17 PM   #38
ag2231
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
A little bit closer_continued

Please find the last image attached here. Also not that in this image it look as though it sees the Linux install but actually just takes me back to the same location as indicated in StartScreen3 of my last post.
Attached Thumbnails
Click image for larger version

Name:	StartScreen4.jpeg
Views:	12
Size:	37.4 KB
ID:	7518  
 
Old 07-07-2011, 04:35 PM   #39
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24
Quote:
Originally Posted by ag2231 View Post
Please find the last image attached here. Also not that in this image it look as though it sees the Linux install but actually just takes me back to the same location as indicated in StartScreen3 of my last post.
After Googling the "grub filesystem type unknown partition type 0xee" error, looks like it's a known bug with GPT filesystems and GRUB. If you have an option to create the file label as "msdos" instead of GPT, do that, or just run the commands below after booting into a Linux rescue CD.

From the command line, you can run the following to relabel the drive, but you'll have to reinstall after doing so:

Code:
# parted /dev/sdc
parted> print
### should show your partition table
parted> mklabel msdos
BE CAREFUL, THIS WILL DESTROY DATA IF YOU DON'T SPECIFY THE CORRECT DRIVE :)
Bug info: https://bbs.archlinux.org/viewtopic.php?id=84485

From there you'll have a new partition table that CentOS should be able to see, install to, and more importantly GRUB will be able to boot from.

Hope that helps.

Last edited by sandwormusmc; 07-07-2011 at 04:37 PM.
 
1 members found this post helpful.
Old 07-07-2011, 05:02 PM   #40
ag2231
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sandwormusmc View Post
After Googling the "grub filesystem type unknown partition type 0xee" error, looks like it's a known bug with GPT filesystems and GRUB. If you have an option to create the file label as "msdos" instead of GPT, do that, or just run the commands below after booting into a Linux rescue CD.

From the command line, you can run the following to relabel the drive, but you'll have to reinstall after doing so:

Code:
# parted /dev/sdc
parted> print
### should show your partition table
parted> mklabel msdos
BE CAREFUL, THIS WILL DESTROY DATA IF YOU DON'T SPECIFY THE CORRECT DRIVE :)
Bug info: https://bbs.archlinux.org/viewtopic.php?id=84485

From there you'll have a new partition table that CentOS should be able to see, install to, and more importantly GRUB will be able to boot from.

Hope that helps.

Can you provide a more basic Step-by-step explanation as to how I would do this?
 
Old 07-08-2011, 09:50 AM   #41
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24
Quote:
Originally Posted by ag2231 View Post
Can you provide a more basic Step-by-step explanation as to how I would do this?
Sure, first put the linux install CD in the drive, and select "Rescue installed system" if the option is available. If it's not, type "linux rescue".

From there, you'll be asked a few questions on whether you'd like to start your network interfaces (select no), then if you want to mount your existing linux install (you can answer no also, since you're working with the partition table and not the installation). From there you should be dropped to a shell session like you were before. At this point you can run the commands I posted above (parted, mklabel msdos, etc).

Once that is complete, rerun another fdisk -l /dev/sdc to verify the file system label was changed to msdos from GPT.

Then you can reboot and go about your usual install process (you'll have to put the pieces together here, as I've never used rEFIt). You'll install to the same partition as before, but it'll show up as completely empty.
 
1 members found this post helpful.
Old 07-08-2011, 12:19 PM   #42
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
^ also it mite be easier to use something like fedora-live-usb to get a graphical desktop like gnome (mite be better for a newbie to troubleshoot the system).

edit:
i just realized that i think s/he is trying to install and boot from sdc. sda and sdb are the gpt disks (if they were unplugged would gpt still be part of the equation ?).

i'm in territory that i never ventured before but hopefully this will be helpful to the original poster. i think the output of parted will tell us the partition table. to verify can you please run parted (it mite not be available in the minimal shell environment on your install cd so you mite need to run it from a more advanced live-usb).
if it still mentions gpt then i guess you will have to somehow change it to msdos using the suggestion above.

this is an example from my pc:
Code:
[liveuser@localhost ~]$ sudo parted  /dev/sdb print
Model: HP v100w (scsi)
Disk /dev/sdb: 8022MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  8022MB  8021MB  primary  ext2         boot
i just learned that filesystem type and partition table are two different things,

also, i hear lilo can boot gpt drives but i am not sure how to install it ?

Last edited by schneidz; 07-08-2011 at 01:14 PM.
 
0 members found this post helpful.
Old 07-08-2011, 04:45 PM   #43
ag2231
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Smile Thank You All

Hello All,

I want to thank all of you for your participation in this thread and all the helpful ideas you provided. I was able, after another fresh installation and using the directions I found on Jason Myres site (http://www.jasonmyres'.com/2011/03/i...-on-a-mac-pro/), to install and boot into CentOS 5.6; and more importantly I was able to reboot into the Linux partition after doing the updates. I am still able to switch between the Mac OSX volume and the CentOS volume using the "Option" key, but I have also installed rEFIt", and now have a boot manager that allows me to choose the OS to start with.


Again thank you.

Last edited by ag2231; 07-08-2011 at 04:47 PM. Reason: Formating and Grammer
 
Old 07-08-2011, 07:55 PM   #44
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: OpenSUSE
Posts: 1,390
Blog Entries: 7

Rep: Reputation: 164Reputation: 164
thank god!
 
Old 07-08-2011, 08:14 PM   #45
ag2231
LQ Newbie
 
Registered: Jun 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by Knightron View Post
thank god!
LOL
 
  


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
Linux on Mac Book Pro .dllmigraine Linux - Newbie 2 09-19-2007 03:50 PM
Linux, OSX and Mac Book Pro. eldaria Linux - Laptop and Netbook 4 06-12-2007 09:51 PM
Linux on Intel Mac Book Pro cmplet-noobie Linux - Desktop 0 05-22-2007 11:03 AM
Need help with Linux Pro 9.2 installation on Mac OS X JGE Linux - Software 1 04-18-2005 08:14 AM
Need help with Linux Pro 9.2 installation on Mac OS X JGE Linux - Newbie 1 04-17-2005 04:46 PM


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