LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-21-2006, 05:13 PM   #1
Nullmech
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Rep: Reputation: 0
GRUB setup problems


I think this would belong here, since GRUB is software, but if it doesn't, please move this...

I'm trying to install GRUB on a SATA hard drive. I've already partitioned the drive, formatted it to ext3, and installed Debian 3.1r0a/kernel-2.6.17.8 on it. Now I'm trying to install GRUB on it so I can boot from it. I've set /dev/sda1 (the / partition) bootable. I've edited my /boot/grub/device.map and /boot/grub/menu.lst to boot from /dev/sda. I've set hd0 to /dev/sda. When I try to configure the MBR, this happens:
Quote:
#grub
grub>root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
grub>setup(hd1)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 16 sectors are embedded
succeeded
Segmentation fault
If I restart the computer and boot from the new drive, I get a black screen with the blinking _ at the top, then it moves down two or three lines and stays there. What should I do now?
 
Old 08-21-2006, 05:35 PM   #2
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Rep: Reputation: 33
Just a guess, but your filesystem type (ext3) doesn't tally with what grub has found (ext2fs). That could be the cause of the segmentation fault.
Also you you say have the device set as /dev/sda1 which is a scsi drive device. I would have thought your SATA was IDE and should be /dev/hda1. This is what grub is looking for!
 
Old 08-21-2006, 06:07 PM   #3
Nullmech
LQ Newbie
 
Registered: Aug 2006
Posts: 4

Original Poster
Rep: Reputation: 0
hda1 is already an IDE hard drive... Debian 3.1 doesn't come with support for SATA drives, so I had to rebuild a kernel for them. Now I'm moving my Debian install from a 10GB to the 250GB hard drive. The kernel detects the SATA drive and sets it as sda, for some reason. "cfdisk /dev/sda" says that my partitions are ext3 (except for the swap partition), and I set them up as ext3 using commands like "mke2fs -j /dev/sda1", so I'm not sure why GRUB is seeing them as ext2. Is there any way I can tell GRUB to assume they are ext3 filesystems?
 
  


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
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
Setup GRUB RiSK *BSD 1 02-26-2005 04:49 PM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
grub setup linuxnube Linux - General 3 12-19-2003 03:26 PM
grub setup flump Linux - Software 1 08-05-2003 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:37 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
Open Source Consulting | Domain Registration