LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2010, 10:45 PM   #1
SeraphLance
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
Grub - How to find a list of devices?


I used to have everything working great, but after about a year of collecting dust, I refitted my computer with a plethora of new parts, pretty much everything but the HDDs and the case.

The problem now is that my linux HDD no longer corresponds to /dev/sda1. Instead, I get what appears to be some sort of emergency console called "busybox", and I don't really know where to go from there. On top of that, what little linux-fu I once had is rusty beyond belief. I don't see anything resembling fstab in what partition I'm working in. Is there any similar command for me to use to find what devices I have? Hunting and pecking /dev/sd_1 doesn't seem to be working so great.
 
Old 05-13-2010, 11:09 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,252

Rep: Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685
So when you put it all back together you may have placed your drives in reverse order?
Firstly check that you have your primary drive connected as the master (this should then be /dev/sda).
 
Old 05-13-2010, 11:12 PM   #3
SeraphLance
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Both of my drives are connected as masters, but my new motherboard (a DP55WB) has six SATA slots, and I've no idea how that works out. I didn't put it "back together", the motherboard is new.

I should probably add that I don't have a functional CDROM drive, so a boot CD is also out.
 
Old 05-13-2010, 11:22 PM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,252

Rep: Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685
So are you at the grub prompt? If so, try typing - root (hd0,0)
This will check and if it finds filesystem it recognizes it will display information. If it does not, could be the drives are somehow swapped so you can then try
root (hd1,0)

The mapping of drives is:

/dev/[sh]daN = hd0,N-1
/dev/[sh]dbN = hd1,N-1
and so on.
 
Old 05-13-2010, 11:34 PM   #5
SeraphLance
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by grail View Post
So are you at the grub prompt? If so, try typing - root (hd0,0)
This will check and if it finds filesystem it recognizes it will display information. If it does not, could be the drives are somehow swapped so you can then try
root (hd1,0)

The mapping of drives is:

/dev/[sh]daN = hd0,N-1
/dev/[sh]dbN = hd1,N-1
and so on.
I know it's not hd1, because that's where my windows option is, and that HDD still (almost) boots. That, and I tested it to make sure. No dice.

My Grub configuration for my linux distro (Debian, if it matters) is:

root (hd0,0)
kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.18-6-686
savedefault


after a long loading series, it ends with:
Check root= bootarg cat /proc/cmdline
or missing modules, devices: cat /proc/modules ls /dev
ALERT! /dev/sda1 does not exist. Dropping to a shell!


then it gives me the BusyBox prompt with "initramfs".

edit: Oh, I see what you mean by the prompt. It says "Filesystem type is ext2fs, partition type 0x83", and that's all.

Last edited by SeraphLance; 05-13-2010 at 11:43 PM.
 
Old 05-14-2010, 12:24 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
If you are in busybox, you've got past grub. Looking at that I'd say your kernel doesn't have support for your disk controller chip. You'll need a newer kernel or initramfs that supports it.
 
Old 05-14-2010, 02:20 AM   #7
SeraphLance
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
If you are in busybox, you've got past grub. Looking at that I'd say your kernel doesn't have support for your disk controller chip. You'll need a newer kernel or initramfs that supports it.
I see...

So with neither a bootable OS nor a CD-ROM drive, I assume that I'm stuck between a rock and a hard place?
 
Old 05-14-2010, 03:33 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
USB ?.
Last time similar occurred to me, I happened to have a (i.e. only one) IDE interface as well so at least I could get a CD boot happening.
 
  


Reply


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
Devices list generation? giri_blr Linux - Kernel 1 07-04-2008 08:10 AM
help to find the PCI devices list on Sarge gaiotto Debian 8 06-28-2006 01:29 PM
list devices SgtMuffles Linux - Newbie 4 06-22-2005 06:21 PM
devices list Pedroski Linux - Hardware 0 12-07-2003 04:28 AM
How to list devices installed J_Szucs Linux - Newbie 4 05-29-2002 08:45 AM


All times are GMT -5. The time now is 09:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration