LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 11-12-2011, 01:18 PM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
Booting from usb drive


Hi I would like to link to this thread as an on going problem that I,m trying resolve. I have tried every combination with fstab & grub.cfg and installing grub. I can boot lfs if I put it as the only drive in laptop, But if i connect it as usb even as the only drive usb and set fstab grub.cfg as sda it will not load. I,m now thinking that I have missed something which lets it find usb drives. The laptop will boot from usb as there is another drive which boots. Need some help here plz
 
Old 11-12-2011, 01:44 PM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,220
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Hi,

What's the partitioning scheme like? Is the first partition bootable? Are the partitions set up right in fstab?

Some loose thoughts...

Thor
 
Old 11-12-2011, 01:52 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Original Poster
Rep: Reputation: 244Reputation: 244Reputation: 244
It will boot if it,s fitted in laptop, everything setup for sda works fine, if i fit it as the only drive but usb same setup it wont boot fdisk -l shows it as sda. I have selected make partition bootable with disk utility in Ubuntu but still no joy.
 
Old 11-13-2011, 04:18 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

You don't mention this, but have you already tried Larry Webb's advice from the other thread?

Using UUID's instead of /dev/sdxy makes things more flexible.

Hope this helps.
 
Old 11-13-2011, 06:09 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Original Poster
Rep: Reputation: 244Reputation: 244Reputation: 244
Hi drunna I did try all suggestions that I,m given. at the moment after going through I dont know how many web sites. Any way I have now tried booting from grub prompt, which dose find the vmlinux- file but get an error on "filesystem could not mount and kernel panic VFS fs on unkown block". This is the same errors I get when trying to boot it normally.
Bearing in mind it will boot when set on IDE of laptop.
I did recompile the kernel again checking for any sata drive stuff and usb stuff and ext4 fs stuff. So is this looking like a Grub problem or Kernel???
I have posted to lfs-support as well
 
Old 11-13-2011, 01:51 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Original Poster
Rep: Reputation: 244Reputation: 244Reputation: 244
Ok I seemed to have solved the problem I added rootdelay to grub.cfg. The reason behind it is so grub can wait for the usb to load

Last edited by spiky0011; 11-13-2011 at 01:53 PM.
 
1 members found this post helpful.
Old 11-14-2011, 12:42 AM   #7
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,220
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
Thanks spiky0011!!! I learned something here, you brightened up my day (and week)

Thor
 
Old 11-14-2011, 03:37 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Original Poster
Rep: Reputation: 244Reputation: 244Reputation: 244
i,m glad i helped
 
  


Reply

Tags
boot, lfs, usb drive


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
usb to ide adapter? booting off usb drive? FireRaven Linux - Hardware 3 09-29-2010 09:11 PM
Booting from a USB drive Bratmon Linux - General 4 12-25-2009 11:36 AM
booting from usb drive mcnalu Slackware 8 03-17-2008 03:35 AM
booting from a USB drive poblano Linux - General 1 08-12-2007 10:02 PM
Booting from USB Drive agallant Linux - General 1 02-15-2006 09:43 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration