LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-05-2009, 11:03 AM   #1
Under Fire
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Rep: Reputation: 15
Question hda1 does not exist


Hi,

I thinks its a common problem since I came across multiple forums regarding this problem. (wasnt able to solve it)

Anyway here is the case:

I wanted to try linux, so I downloaded the new Debian distro and installed it on my laptop. No problem here.
The problem starts when linux tells me the installation is complete and I have to reboot. So I reboot, come across the Grub loader and press "return" to start the OS.

Now the problem appears.
ALERT! /dev/hda1 does not exist
and drops to shell.

In my dev dir I cannot ls on hd* (it doesnt find anything) but I can find sd*

Now I tried editing the GRUB loader to load sd instead of hd, but editing the GRUB doesnt seem to save the changes (besides, I wasnt sure if that was going to work).

I read something about editing my /boot/grub/menu.lst, but the /boot dir doesnt exist, and typing vi /boot/grub/menu.lst opens an empty file. So in short I do have a working computer but not a working Debian installation since it cant seem to find my HD.

Is there any solution (besided dropping linux instantly and returning to windows).
 
Old 02-05-2009, 11:42 AM   #2
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
are you installing debain etch or lenny?you say when you edit grub and replace hda with sda it boots?

Last edited by stratotak; 02-05-2009 at 12:05 PM.
 
Old 02-05-2009, 12:09 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
first try to mount sda

Code:
mkdir mount
mount /dev/sda1 /mount
cd /mount 
ls
and go from there
 
Old 02-05-2009, 02:32 PM   #4
Under Fire
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by stratotak View Post
are you installing debain etch or lenny?you say when you edit grub and replace hda with sda it boots?
Sorry, forgot to mention, but i'm using etch. And no, when I edit grub and replace hda with sda, grub does not save the changes. And it still wont boot.

Quote:
Originally Posted by repo View Post
first try to mount sda

Code:
mkdir mount
mount /dev/sda1 /mount
cd /mount 
ls
and go from there
This doesnt work somehow. I can make the mount dir, but when I try to mount the device it says:
Mounting /dev/sda1 on /mount failed: No such file or directory.

Tried sda2 and sda5 as well without any luck.
 
Old 02-05-2009, 02:49 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
Now I tried editing the GRUB loader to load sd instead of hd, but editing the GRUB doesnt seem to save the changes
How are you trying to edit, during boot?

Quote:
I read something about editing my /boot/grub/menu.lst, but the /boot dir doesnt exist, and typing vi /boot/grub/menu.lst opens an empty file.
If you don't have a /boot directory, I don't imagine you will have a menu.lst file?

What else do you have on the computer? Any other OS's or just the new Debian install?
 
Old 02-05-2009, 02:57 PM   #6
Under Fire
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by yancek View Post
How are you trying to edit, during boot?
Yes, during boot


Quote:
Originally Posted by yancek View Post
If you don't have a /boot directory, I don't imagine you will have a menu.lst file?

What else do you have on the computer? Any other OS's or just the new Debian install?
Only the new Debian install. Well. I had windows xp running on it, but I made debian (deliberately) overwrite it during installation.
 
Old 02-05-2009, 03:00 PM   #7
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
at grub..when you enter "e"..and edit to sda..then boot..will it load the kernel and start to boot..??but then error out about cant find hda1..if grub has your drive listed as sda then fstab will probably have partitions as sda to..if you cant use nano or vi to edit menu.lst or /etc/fstab..you can download a live cd like puppy..its a small download..boot into puppy and mount the drive from puppy then edit your menu.lst and fstab..or download lenny and install lenny..etch is old..and lenny will be stable soon anyway.lenny might recognize your hard drive better
 
Old 02-05-2009, 03:14 PM   #8
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
try fdisk -l to see if we can get a listing of what the drives are really labeled. Is the drive a sata or pata drive?
 
Old 02-05-2009, 03:41 PM   #9
Under Fire
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jstephens84 View Post
try fdisk -l to see if we can get a listing of what the drives are really labeled. Is the drive a sata or pata drive?
Its a PATA drive.

When in grub, pressing "e", edit and then boot there is no change in how linux boot. The same error, same messages, same text.

I thought I downloaded the latest release with etch, but sees like lenny is even newer. My laptop is about 3 years old now. I dont know for sure but I would think my drive is recognizable enough?

But I will try and install Lenny. Since linux wont boot anyway, things can hardly get worse :P.
 
Old 02-05-2009, 04:02 PM   #10
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by repo View Post
first try to mount sda

Code:
mkdir mount
mount /dev/sda1 /mount
cd /mount 
ls
and go from there
This code will only work if $PWD is /.
Try changing the recipe to
Code:
mkdir /mount
mount /dev/sda1 /mount
cd /mount 
ls
(note: mkdir /mount)
You will probably need to be root to do this. Try it using /dev/sda1 and /dev/hda1.
As jstephens84 says, try fdisk -l, as root. Also,
Code:
grep hda /var/log/messages
grep sda /var/log/messages
This should give some insight about correct device naming.
--- rod.
 
Old 02-05-2009, 04:23 PM   #11
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by Under Fire View Post
Its a PATA drive.

When in grub, pressing "e", edit and then boot there is no change in how linux boot. The same error, same messages, same text.

I thought I downloaded the latest release with etch, but sees like lenny is even newer. My laptop is about 3 years old now. I dont know for sure but I would think my drive is recognizable enough?

But I will try and install Lenny. Since linux wont boot anyway, things can hardly get worse :P.
I would hold off on trying to just install the next version. Lets get this fixed as it will teach you about troubleshooting boot errors in the future. Just installing another version is more of a patch not a fix.
 
Old 02-05-2009, 05:42 PM   #12
Under Fire
LQ Newbie
 
Registered: Nov 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jstephens84 View Post
I would hold off on trying to just install the next version. Lets get this fixed as it will teach you about troubleshooting boot errors in the future. Just installing another version is more of a patch not a fix.
You are absolutely right about that. However, I have read your command after I allready started the installation of Lenny. And now I must happily say that it does work now. So I hope you understand my joy about this. Still, I think I have enough to learn from this point on .

Tx all for help and commands
 
Old 02-06-2009, 11:11 AM   #13
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by Under Fire View Post
You are absolutely right about that. However, I have read your command after I allready started the installation of Lenny. And now I must happily say that it does work now. So I hope you understand my joy about this. Still, I think I have enough to learn from this point on .

Tx all for help and commands
Well atleast you got up and going that is a good thing. Do you know what your disk are labeled as now. Just out of curiosity.
 
  


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
ALERT! /dev/hda1 does not exist. - Message after secondary drive failure. klinger2004 Debian 0 11-01-2008 03:20 AM
How do you change partition order from say hda2 to hda1, where hda1 does not exist r00tb33r Linux - Software 6 04-09-2007 11:33 PM
mount problem /dev/hda1 does not exist galrub SUSE / openSUSE 12 03-28-2007 05:33 PM
Copying hda3(~5GB) to hda1(~10GB) nearly fills hda1 APB_4 Linux - Software 3 03-01-2006 06:12 PM
/dev/hda1 does not exist G011um Linux - General 2 04-16-2002 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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