LinuxQuestions.org
Review your favorite Linux distribution.
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 02-22-2011, 06:39 AM   #1
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Rep: Reputation: 6
cfdisk and fdisk wont find my hdd


Hello,

I'm tryint to install LFS but I'm stuck on the first part.

my hdd should be ...../sda but it wont open. Ive tried ..../hda but that opens my cd drive for some reason.

cfdisk also only finds my cd drive and treats it as a hdd.

Not really sure what to do.

any advice?

my hdd is WD Vellociraptor 80gb sata1
 
Old 02-22-2011, 07:11 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Please post the output of
Code:
fdisk -l
issued as root.
 
Old 02-22-2011, 07:15 AM   #3
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,
Quote:
Originally Posted by Adol View Post
I'm tryint to install LFS but I'm stuck on the first part.
Is my assumption correct that you are trying to build LFS 6.7 stable and are stuck in chapter 2.2 (or possibly 2.3)?

Quote:
my hdd should be ...../sda but it wont open. Ive tried ..../hda but that opens my cd drive for some reason.
cfdisk also only finds my cd drive and treats it as a hdd.
Are you using the LFS liveCD or is there already an OS on the HD and are you running from that one?

Quote:
Not really sure what to do.
What is the output of the following commands (as root user):
Code:
fdisk -l
and
Code:
dmesg | grep "[sh]da"
Hope this helps.
 
Old 02-22-2011, 09:09 AM   #4
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by druuna View Post
Hi,
Is my assumption correct that you are trying to build LFS 6.7 stable and are stuck in chapter 2.2 (or possibly 2.3)?

Are you using the LFS liveCD or is there already an OS on the HD and are you running from that one?

What is the output of the following commands (as root user):
Code:
fdisk -l
and
Code:
dmesg | grep "[sh]da"
Hope this helps.
Hello,

Yes I am using 6.7 stable and am stuck in chapter 2.2.

When I run "fdisk -l" I get nothing on the screen.

Also, I was able to pass this point and even mount my filesystems with a Gentoo cd but I'm worried it won't follow the steps that are used in the LFS documentation.
 
Old 02-22-2011, 09:19 AM   #5
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
Ok

I think I found the answer to my question. LFS doesnt support my harware because its a little outdated(live cd).

So here is my next question about it then.

I want to use my Gentoo cd to boot up the base system but I want to use the LFS sources instead of hunting them down and downloading everything.

How do I unmount, eject and mount another cd while I'm using the Gentoo shell?
 
Old 02-22-2011, 09:36 AM   #6
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,
Quote:
Originally Posted by Adol View Post
How do I unmount, eject and mount another cd while I'm using the Gentoo shell?
You cannot. Live CD's need to stay mounted (there are one or two that don't but I don't think you can use those to build LFS).

Quote:
LFS doesnt support my harware because its a little outdated
How did you reach this conclusion? I've got a real new machine (about 2 months old, with all the new technologies) and the LFS liveCD (version: x86_64-6.3-r2145) works like a charm. Don't get me wrong, you could be right, but I kinda doubt it, especially when it comes to "normal" hard-drives

How about the other questions I asked?

- Output of dmesg | grep "[hs]da"
- Is there already an OS running on that machine?

Hope this helps.
 
Old 02-22-2011, 05:54 PM   #7
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by druuna View Post
Hi,
You cannot. Live CD's need to stay mounted (there are one or two that don't but I don't think you can use those to build LFS).

How did you reach this conclusion? I've got a real new machine (about 2 months old, with all the new technologies) and the LFS liveCD (version: x86_64-6.3-r2145) works like a charm. Don't get me wrong, you could be right, but I kinda doubt it, especially when it comes to "normal" hard-drives

How about the other questions I asked?

- Output of dmesg | grep "[hs]da"
- Is there already an OS running on that machine?

Hope this helps.
I was running OpenSuse on it but wiped it for a step by step LFS install.

I was looking through the documentation and found a note saying that LFS may not detect newer hardware such as hdds and since detection is no problem with Gentoo I came to the conclution that it wasnt supported. Also, my sata cdrom wasnt able to finish booting the live cd, saying it couldnt detect install media. I needed to swith it out with an IDE cd rom drive(not sata) drive which finished booting.

I'll try to get that output later today. Better to go through every step and make sure.

Last edited by Adol; 02-22-2011 at 11:54 PM.
 
Old 02-23-2011, 12:53 AM   #8
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
Unfortunatly I don't know how to save the screen and transfer the contents to my other computer to past my dmesg message here.

Some things I found that may or may not be important to the problem(that I found in the dmesg):

ATA1: Sata link down (SStatus 0 SControl 300) ------ 1-4 are the same.

Using SB 600_PATA: Not 100% native mode.

My SB is 750. Could that be causing the problem?
 
Old 02-23-2011, 01:30 AM   #9
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,

Quote:
Originally Posted by Adol
I was running OpenSuse on it but wiped it for a step by step LFS install.
That is too bad, you could have used openSuse (with some changes) to install LFS.......

You could re-install a minimal openSuse (or another distro) and use that as base for building LFS. Just make sure that you leave a partition free for LFS and that the chosen distro meets the lfs host requirements

Quote:
Originally Posted by Adol
Unfortunatly I don't know how to save the screen and transfer the contents to my other computer to past my dmesg message here.
Did you get any information when running the dmesg | grep "[hs]da" command? I don't see any output in your reply that contains either sda or hda entries (the grep part is important).

Quote:
Originally Posted by Adol
ATA1: Sata link down (SStatus 0 SControl 300) ------ 1-4 are the same.
Using SB 600_PATA: Not 100% native mode.
Searching for the Sata link down message gives a lot of (new and old) hits. Solutions range from devices that are not connected, (wrong) BIOS settings to adding boot options when starting the liveCD.

The LFS LiveCD Documentation also mentions using alternate drives when starting (near the bottom of the page). The all_generic_ide options might be worth a try. To use it boot the LFS liveCD and wait for the boot: prompt, then type linux all_generic_ide and press enter.

Hope this helps.
 
Old 02-23-2011, 04:16 AM   #10
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by druuna View Post
Hi,

That is too bad, you could have used openSuse (with some changes) to install LFS.......

You could re-install a minimal openSuse (or another distro) and use that as base for building LFS. Just make sure that you leave a partition free for LFS and that the chosen distro meets the lfs host requirements

Did you get any information when running the dmesg | grep "[hs]da" command? I don't see any output in your reply that contains either sda or hda entries (the grep part is important).

Searching for the Sata link down message gives a lot of (new and old) hits. Solutions range from devices that are not connected, (wrong) BIOS settings to adding boot options when starting the liveCD.

The LFS LiveCD Documentation also mentions using alternate drives when starting (near the bottom of the page). The all_generic_ide options might be worth a try. To use it boot the LFS liveCD and wait for the boot: prompt, then type linux all_generic_ide and press enter.

Hope this helps.
Ok I copied down my dmesg | grep "[hs]da It looks like this:

ide0:BM-DMA at 0xfa00-0xfa07, BIOS settings: hdaMA, hdbio
hda:MatshitaDVD-ram LF-D521, ATAPI CD/DVD-ROM drive,
2048KB cach<4>hda:host side 80-write cable detection failed, limiting max speed to UDMA33
hda_codec:Unknown model for ALC882, trying auto-probe from BIOS...


Ok, let me know if I'm wrong.From this I can see that its not detecting any of my sata drives. I have 2 dvd drives installed and 1 HDD and its only detecting my IDE connector DVD drive not my HDD and DVD connected to my sata ports.

I tried the command "linux all_generic_ide" with no luck. Whats my next option? Is it the kernel thats not finding my drives? If so could load another kernel with the LFS cd?

Sorry, Emotiocons are showing up in my message.

Last edited by Adol; 02-23-2011 at 04:18 AM.
 
Old 02-23-2011, 11:42 AM   #11
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,

It seems that you are only trying (parts) of what I suggest and don't do anything yourself:

Quote:
Originally Posted by Adol
I tried the command "linux all_generic_ide" with no luck.
Did you check the documentation I posted a link for in post #9? And can I assume you did check (and change?) your BIOS? Have you tried the PATA option?

Quote:
Originally Posted by Adol
Whats my next option?
Did you consider what I already wrote in post #9
Quote:
Originally Posted by druuna
You could re-install a minimal openSuse (or another distro) and use that as base for building LFS. Just make sure that you leave a partition free for LFS and that the chosen distro meets the lfs host requirements
Did you follow up on this hint I posted in post#9:
Quote:
Originally Posted by druuna
Searching for the Sata link down message gives a lot of (new and old) hits. Solutions range from devices that are not connected, (wrong) BIOS settings to adding boot options when starting the liveCD.
Seems to me you have a lot of things you can still try
 
Old 05-31-2011, 05:50 PM   #12
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 271

Original Poster
Rep: Reputation: 6
I understand much more about linux now than when I first made this post.

The LFS boot cd doesnt load the correct module to support my sata chipset at startup. So I can't see my drives or use them without starting on another kernel or another distrobution.

I may try again going off of my Gentoo install to build a LSF system in the future.
 
  


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
cfdisk/fdisk on a mac smb426 Slackware 1 11-29-2010 10:16 PM
sda hdd isn't working but fdisk fstab and cfdisk look good to me. expat Linux - General 2 10-22-2006 09:00 AM
CFdisk does not see new HD but Fdisk does? BajaNick Linux - Software 6 08-28-2004 10:31 AM
fdisk returns "unable to find /dev/hda" cfdisk crashes. cirofren Linux - Newbie 2 11-06-2003 12:03 AM
fdisk and cfdisk problems LokiPartera Linux - Newbie 6 10-30-2002 04:13 PM

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

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