LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-14-2011, 09:27 PM   #1
Trauma
LQ Newbie
 
Registered: Nov 2006
Location: Brisbane
Distribution: Fedora 15
Posts: 19

Rep: Reputation: 0
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.
 
Old 06-14-2011, 09:59 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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?
 
Old 06-16-2011, 02:00 AM   #3
Trauma
LQ Newbie
 
Registered: Nov 2006
Location: Brisbane
Distribution: Fedora 15
Posts: 19

Original Poster
Rep: Reputation: 0
Smile Solved

Quote:
Originally Posted by andrewthomas View Post
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.
 
Old 06-16-2011, 08:23 AM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
You're welcome.

Glad to be of help.
 
  


Reply

Tags
boot, grub, ssd



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
make your own bootable DVD hoover93 Linux - Software 1 09-27-2007 12:34 AM
How to make HD bootable? malangbaba Puppy 2 08-30-2007 01:38 PM
How to make HD bootable? malangbaba Linux - Newbie 5 08-30-2007 06:30 AM
live cd's make bootable aboereau Linux - Software 2 02-21-2006 12:52 PM
Make a partition bootable J_Szucs *BSD 1 05-07-2003 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:25 AM.

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