LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   grub fails to install (https://www.linuxquestions.org/questions/slackware-14/grub-fails-to-install-4175462429/)

grimx 05-17-2013 09:59 PM

grub fails to install
 
When I run grubconfig I get this error:
Code:

                                                   
completions of a device/filename.
│ grub> root (hd0,3)                                                        │

│ Error 22: No such partition                                                │
│ grub> setup (hd0)                                                          │

│ Error 12: Invalid device requested                                        │
│ grub> quit                                                                │

│ Sorry, but the attempt to install GRUB has returned an error, so GRUB      │
│ has not been correctly installed.  You'll have to use a bootdisk to        │
│ start your machine instead.  It may be possible to get GRUB working by    │
│ editing the /boot/grub/menu.lst file and reinstalling GRUB manually.

Now I know I have these partitions, which are not showing up:
Slackware /dev/sda1
swap /dev/sda2
Debian /dev/sda3

grimx 05-17-2013 10:19 PM

Here are my partitions on disk(running parted list)

Model: ATA WDC WD3200AAJS-6 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 112GB 112GB ext4
2 112GB 114GB 2517MB linux-swap(v1)
3 114GB 214GB 100GB ext4 boot
4 214GB 320GB 106GB ext4 boot

volkerdi 05-17-2013 10:49 PM

Quote:

Originally Posted by grimx (Post 4953476)
Partition Table: gpt

I don't think vanilla GRUB1 supports GPT. LILO does, though.

grimx 05-18-2013 12:09 AM

well I tried installing Lilo using slackpkg install lilo and I get this
Code:



                                          ┌──────────────────────────────────────┐
                                          │                                      │ 
                                          │ Installing the Linux Loader...      │ 
                                          │                                      │ 
                                          └──────────────────────────────────────┘ 


                        ┌───────────────────────────────────────────────────────────────────────────┐
                        │ Fatal: No images have been defined.                                      │ 
                        │                                                                          │ 
                        │ Sorry, but the attempt to install LILO has returned an error, so LILO has │ 
                        │ not been correctly installed.  You'll have to use a bootdisk to start    │ 
                        │ your machine instead.  It should still be possible to get LILO working by │ 
                        │ editing the /etc/lilo.conf and reinstalling LILO manually.  See the LILO  │ 
                        │ man page and documentation in //usr/doc/lilo-23.2 for more help.  The    │ 
                        │ error message may be seen above.                                          │ 
                        ├───────────────────────────────────────────────────────────────────────────┤ 
                        │                                <  OK  >                                  │ 
                        └───────────────────────────────────────────────────────────────────────────┘


volkerdi 05-18-2013 12:58 AM

Quote:

Originally Posted by grimx (Post 4953518)
well I tried installing Lilo using slackpkg install lilo and I get this

Try running liloconfig now.


All times are GMT -5. The time now is 03:14 PM.