LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 12:18 PM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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, 12:44 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
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, 12:52 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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, 03:18 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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, 05:09 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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, 12:51 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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 12:53 PM.
 
1 members found this post helpful.
Old 11-13-2011, 11:42 PM   #7
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

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

Thor
 
Old 11-14-2011, 02:37 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
i,m glad i helped
 
  


Reply

Tags
boot, lfs, usb drive



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:01 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