LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to make SSD bootable? (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-make-ssd-bootable-886391/)

Trauma 06-14-2011 09:27 PM

How to make SSD bootable?
 
Hi all. I have a post over at SSD Review Forums trying to set my Crucial M4 SSD as bootable so as I can boot straight into Fedora 15 without having to chainload from a Fedora 14 Grub installation.

For some reason, and I am trying to find out why, I cannot boot directly into my SSD from the bios of my DFI-NF4-SLI mobo (yes its an old one but that shouldn't matter because SSD's are supposed to act independently of the mobo.)

Here is a fdisk -l print out. My SSD is sdc and grub is installed in sda1 which is listed by fdisk as bootable.

Quote:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00010d0b

Device Boot Start End Blocks Id System
/dev/sda1 63 234773909 117386923+ 83 Linux
/dev/sda2 234773910 1953520064 859373077+ 83 Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5d4ad108

Device Boot Start End Blocks Id System
/dev/sdb1 * 63 163846934 81923436 7 HPFS/NTFS/exFAT
/dev/sdb2 163848192 225288191 30720000 83 Linux
/dev/sdb3 225288192 231432191 3072000 82 Linux swap / Solaris
/dev/sdb4 231432192 976773119 372670464 83 Linux

Disk /dev/sdc: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001d2c3

Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 31746047 15872000 83 Linux
/dev/sdc2 31746048 115714047 41984000 83 Linux
/dev/sdc3 115714048 125044735 4665344 82 Linux swap / Solaris
I'm not sure if /dev/sdc1 which is marked as bootable according to fdisk is actually bootable. It is aligned properly according to Stevea's thread about setting up SSD's but it is a bit confusing to me to be honest.

Here is my Grub.conf from my SSD with a working Fedora 15 installation (which I am using to write this right now). So my install works, I just can't boot directly into it directly from the Bios of my mobo. Title previous links back to the Fedora 14 Grub menu.

Quote:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd2,0)
# kernel /boot/vmlinuz-version ro root=/dev/sdc1
# initrd /boot/initrd-[generic-]version.img
#boot=/dev/sdc1
default=0
timeout=3
splashimage=(hd2,0)/boot/grub/splash.xpm.gz
#hiddenmenu
title Fedora (2.6.38.7-30.fc15.x86_64)
root (hd2,0)
kernel /boot/vmlinuz-2.6.38.7-30.fc15.x86_64 ro root=UUID=4916080d-e8bb-4dee-906f-32801b8d81f9 elevator=noop rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb radeon.modeset=0
initrd /boot/initramfs-2.6.38.7-30.fc15.x86_64.img
title Fedora (2.6.38.6-26.rc1.fc15.x86_64)
root (hd2,0)
kernel /boot/vmlinuz-2.6.38.6-26.rc1.fc15.x86_64 ro root=UUID=4916080d-e8bb-4dee-906f-32801b8d81f9 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /boot/initramfs-2.6.38.6-26.rc1.fc15.x86_64.img
title previous
rootnoverify (hd1,0)
chainloader +1
Because Fedora only uses Grub Legacy and not Grub2, I am stuck using MBR as the 'partiton table' ??? and not GPT which most other Linux distro's have moved to. I read that over at ArchLinux Forums. So, I checked that with gdisk, output ...

Quote:

[root@localhost ~]# gdisk /dev/sdc

GPT fdisk (gdisk) version 0.7.1

Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
From this I assume I have a valid partition table capable of booting my SSD. ??? Am I wrong?

When I select to boot from my Crucial M4 in bios, I get Nada... nothing. The bios load stops. But, if I select my Fedora 14 disk which is sdb, with a bootable MBR then I can chainload through to my SDD and the second grub install and can subsequently select to boot into Fedora 15.

Clear as mud?? Please someone help... I'm going batty.

andrewthomas 06-14-2011 09:59 PM

I can't figure out what you are trying to accomplish.

Do you want no grub displayed and to boot directly into F15 using the latest kernel?

If you would like to have your SSD the first disk in your boot priority in BIOS, marking the partition bootable is not necessary, but installing a bootloader into the MBR of your SSD is.

Have you done this?

You state that you have grub installed in the MBR of sda, controlled by F14, but do you have grub installed to the MBR of sdc?

Trauma 06-16-2011 02:00 AM

Solved
 
Quote:

Originally Posted by andrewthomas (Post 4385932)
I can't figure out what you are trying to accomplish.

...

You state that you have grub installed in the MBR of sda, controlled by F14, but do you have grub installed to the MBR of sdc?

I am simply trying to boot a SSD directly rather than chainloading off of a previous installation.

The problem is now solved.

Fedora 15 has an option when setting the bootloader (grub) to specify a hard drive layout independent of how the motherboard bios presents hard drives. It's actually fairly straight forward, but not until settings have been changed.

You can specify which root partition to install Grub to, AS WELL AS a specific MBR - REGARDLESS of the boot order of the hard drives as presented by the mobo. This is so that if you decide to move your drives around to a different boot order, your system is still bootable. I didn't know this when installing Fedora 15. It has changed from what I was familiar with in my previous install.

After your tip about the MBR I went back to try and reinstall Grub, but screwed it up in the process; couldn't be bothered rescuing it, and reinstalled instead which is when I took a closer look at the new Fedora booting options.

Thankyou for your help. You were the first person to offer advice even though I actually have this post in Fedora Forums. Much appreciated.

andrewthomas 06-16-2011 08:23 AM

You're welcome.

Glad to be of help.


All times are GMT -5. The time now is 01:36 AM.