LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-23-2011, 11:21 PM   #16
localgameworld
LQ Newbie
 
Registered: Mar 2011
Posts: 19

Original Poster
Rep: Reputation: 0

There are three directories that exist on the USB stick.

The main directory is called boot

Two sub-directories are:
custom & grub

Here is the contents inside the grub directory
[RHEL6.0 - 64bit] grub # ls -l *
-rw-r--r--. 1 root root 30 Sep 23 15:08 device.map
-rw-r--r--. 1 root root 0 Sep 23 15:08 device.map.backup
-rw-r--r--. 1 root root 13204 Sep 23 15:08 e2fs_stage1_5
-rw-r--r--. 1 root root 12516 Sep 23 15:08 fat_stage1_5
-rw-r--r--. 1 root root 11748 Sep 23 15:08 ffs_stage1_5
lrwxrwxrwx. 1 root root 8 Sep 23 15:08 grub.conf -> menu.lst
-rw-r--r--. 1 root root 11756 Sep 23 15:08 iso9660_stage1_5
-rw-r--r--. 1 root root 13220 Sep 23 15:08 jfs_stage1_5
-rw-r--r--. 1 root root 235 Sep 23 15:08 menu.lst
-rw-r--r--. 1 root root 11940 Sep 23 15:08 minix_stage1_5
-rw-r--r--. 1 root root 14300 Sep 23 15:08 reiserfs_stage1_5
-rw-r--r--. 1 root root 1341 Sep 23 15:08 splash.xpm.gz
-rw-r--r--. 1 root root 512 Sep 23 15:08 stage1
-rw-r--r--. 1 root root 113044 Sep 23 15:08 stage2
-rw-r--r--. 1 root root 12008 Sep 23 15:08 ufs2_stage1_5
-rw-r--r--. 1 root root 11364 Sep 23 15:08 vstafs_stage1_5
-rw-r--r--. 1 root root 13932 Sep 23 15:08 xfs_stage1_5


Contents of grub.conf:

[RHEL6.0 - 64bit] grub # cat grub.conf
default 0
timeout 60

title Custom Recovery
kernel /boot/custom/vmlinuz load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=92160 ramdisk_blocksize=1024 root=/dev/ram0
initrd /boot/custom/custom.img
 
Old 09-24-2011, 04:20 PM   #17
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
where is:

Quote:
root (hd0,0)
in the menu.lst on the stick? Next, explore with fdisk (and the stick plugged in, mounted is not an issue) with

fdisk -1

This should display every disk on the system (including the stick) - check if the boor partition (or only partition) is at all bootable...

As soon a the system on the stick boots, the stick becomes the root drive, hence...

We'll get there...
 
Old 09-25-2011, 07:00 PM   #18
localgameworld
LQ Newbie
 
Registered: Mar 2011
Posts: 19

Original Poster
Rep: Reputation: 0
Here is the output of fdisk -l while the server is booted and the USB stick is plugged in a mounted.


# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b0156

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 19458 155777024 8e Linux LVM

Disk /dev/dm-0: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/sdb: 80.0 GB, 80022167552 bytes
255 heads, 63 sectors/track, 9728 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xaabda1e2

Device Boot Start End Blocks Id System
/dev/sdb1 1 2 16064+ 6 FAT16
/dev/sdb2 * 3 5 24097+ 83 Linux
/dev/sdb3 6 9728 78099997+ 83 Linux

Disk /dev/dm-2: 103.7 GB, 103712555008 bytes
255 heads, 63 sectors/track, 12608 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table



The /dev/sdb is my USB device.

Last edited by localgameworld; 09-25-2011 at 07:01 PM.
 
Old 09-26-2011, 02:16 AM   #19
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
Quote:
Device Boot Start End Blocks Id System
/dev/sdb1 1 2 16064+ 6 FAT16
/dev/sdb2 * 3 5 24097+ 83 Linux
/dev/sdb3 6 9728 78099997+ 83 Linux
Hmmm, a bit "messy" if I may say...

Nonetheless, it seems (from what I can see here) that ./dev/sdb2 is bootable...this should be set in the grub on the stick. By the way, I'm somewhat allergic to the fat16 entry...this is not the best setting you could have...but, if there is data on the disk, you're stuck with that...

An example of a better setup would be (as a suggestion)

Quote:
/dev/sdb1 * s e nnn 83 Linux
/dev/sdb2 s e nnn 82 Linux/swap
/dev/sdb3 s e nnn 83 Linux
Where s is start, e is end and nnn is the amount of blocks. Keep all the system types on Linux, if possible. Unless the stick is to be accessible by a (very-very) old win95 PC...

The grub needs IMHO to find ./dev/sdb2 as boot partition...this needs to ne an entry in the grub on the stick. And, of course, grub needs to be in the partition with the MBR...but, you know this. On the down side...I suspect the MBR to be in the fat16 partition, in that case...the boat is sunk...you may have to repartition the stick...

Grtz!

Thor

Last edited by ButterflyMelissa; 09-26-2011 at 03:05 AM.
 
Old 11-21-2011, 12:08 AM   #20
localgameworld
LQ Newbie
 
Registered: Mar 2011
Posts: 19

Original Poster
Rep: Reputation: 0
Found the issue. It was with my init file location. Once I placed init inside / on my cdinit image, everything booted up.

Thanks so much for your help.
 
  


Reply



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
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1) anjanesh Ubuntu 9 01-27-2011 12:00 PM
Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block (1,0) Zenx Linux - Kernel 12 08-04-2010 05:33 AM
kernel panic - not syncing : VFS: unable to mount root FS on unknown-block kaplis Linux - Software 1 09-19-2006 01:44 AM
Kernel Panic!!! -Not Syncing VFS:Unable to mount root FS on unknown - block (0,0) scarabs Linux - Software 4 04-16-2006 04:16 PM
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,2) Volgin Linux - Software 1 12-11-2005 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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