LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-27-2008, 01:43 PM   #1
justintime24
LQ Newbie
 
Registered: Mar 2008
Posts: 10

Rep: Reputation: 0
Unhappy fdisk command is trying to format my cdrom drive!


ok here is my problem. i have used partition magic to make 3 partitions. one for winxp one for linux swap and one for linux itself. i am trying to install linux to the empty partition and when i boot the installation cd and run "fdisk /dev/hda" it tries to format the optical disk drive. i know this because the ouput shows the capacifty at around 680 mb and when i remove the cd and run the command it says cannot open /dev/hda. so i think i need to use the mount command to mount my hard drive to hda or hda1, but im not sure how to do it. can anyone help me out and let me know what i need to do? from what ive researched hda should be the first ide hard disk. i am using a laptop, an hp compaq 8510p with intel core2 duo processor.
 
Old 03-27-2008, 02:03 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
welcome to LQ;

That computer has a SATA hard drive---it will probably be sda1.

To run fdisk you do not need to mount the drive or partition. If you are changing something, you don't WANT it mounted.
 
Old 03-27-2008, 02:06 PM   #3
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
Plus, you probably also want a separate partition for the /boot directory. At least this is a strong convention.
--- rod.
 
Old 03-27-2008, 02:12 PM   #4
justintime24
LQ Newbie
 
Registered: Mar 2008
Posts: 10

Original Poster
Rep: Reputation: 0
ok i will try this - THANK YOU VERY MUCH!!!
 
Old 03-27-2008, 02:27 PM   #5
justintime24
LQ Newbie
 
Registered: Mar 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by theNbomr View Post
Plus, you probably also want a separate partition for the /boot directory. At least this is a strong convention.
--- rod.
ok well i ran the exact same command replacing hda with sda and it did not work
output was "unable to open /dev/sda1"
i also tried sda without the "1" and it did the same thing...
my dev folder contains sga files but not sda

and im not sure what the /boot directory is for but its on the cd in the root i think... ??

anyone have any other suggestions?
 
Old 03-27-2008, 02:30 PM   #6
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
Which version of Linux are you trying to install?
 
Old 03-27-2008, 02:33 PM   #7
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
anyone have any other suggestions?
Code:
fdisk -l
(as root) will tell you what your linux distro is seeing as what, and where.
 
Old 03-27-2008, 02:35 PM   #8
justintime24
LQ Newbie
 
Registered: Mar 2008
Posts: 10

Original Poster
Rep: Reputation: 0
im really not sure - i will try to find out. its for a military application - give me a few minutes i can try to find out if it really matters
 
Old 03-27-2008, 02:38 PM   #9
justintime24
LQ Newbie
 
Registered: Mar 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tredegar View Post
Code:
fdisk -l
(as root) will tell you what your linux distro is seeing as what, and where.
ok i tried it but it produced no output... fdisk -l ... that is a lower case L right?

my prompt is showing root@(none):/#

so i have this on my screen after running it

root@(none):/# fdisk -l
root@(none):/#

edit:

ok i tried fdisk -1 <--- the number one
and i got some output....

fdisk.bin: invalid option -- 1

usage : fdisk [-b SSZ] [-u] DISK change partition table
fdisk -l [-b SSZ] [-u] DISK list partition table(s)
fdisk -s PARTITION give partition size(s) in blocks

and theres a bit more after that...

Last edited by justintime24; 03-27-2008 at 02:45 PM.
 
Old 03-27-2008, 02:50 PM   #10
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
You were right the first time. The command is fdisk -l where l = small letter L.

Curious, are you trying a version of Fedora? In version 9 when I tried to run it I got nothing at first as the PATH was not in my path. Anyway, you could try:
Code:
/sbin/fdisk -l
 
Old 03-27-2008, 02:54 PM   #11
justintime24
LQ Newbie
 
Registered: Mar 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jkirchner View Post
You were right the first time. The command is fdisk -l where l = small letter L.

Curious, are you trying a version of Fedora? In version 9 when I tried to run it I got nothing at first as the PATH was not in my path. Anyway, you could try:
Code:
/sbin/fdisk -l
this returns no output same as running fdisk -l
if i throw in /dev/hda after that commant it tells me
disk /dev/hda: 685 MB, 685944832 bytes
255 heads 63 sectors/track 83 cylinders

this leads me to believe /dev/hda is my cdrom drive... i just need to know what device is my hard drive. this is driving me nuts!! thanks for the help everyone but my problem is still not solved....
 
Old 03-27-2008, 02:58 PM   #12
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by justintime24 View Post
this returns no output same as running fdisk -l
if i throw in /dev/hda after that commant it tells me
disk /dev/hda: 685 MB, 685944832 bytes
255 heads 63 sectors/track 83 cylinders

this leads me to believe /dev/hda is my cdrom drive... i just need to know what device is my hard drive. this is driving me nuts!! thanks for the help everyone but my problem is still not solved....
It should be /dev/sda since it is a SATA drive. Have you tried sda? I saw where you had sda1. Try just sda without a number.

EDIT: I did try a distro once that would not recognize my sata drives at all. That is one reason I was curious which distribution you were trying to work with.

Last edited by jkirchner; 03-27-2008 at 02:59 PM. Reason: Additional content.....
 
Old 03-27-2008, 03:10 PM   #13
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
What BIOS do you have?What chipset do you have?How many hard drives do you have?What distro are you trying to install?Do you have anything elese installed(even if you think that you erased it)?How many cd/dvd drives do you have?What does your BIOS setup look like?
 
Old 03-27-2008, 03:21 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
A quick google showed that distribution matters as well as the chipset information. Fedora 8 and Ubuntu 7.10_64 installed and appeared to work well.
 
Old 03-27-2008, 04:50 PM   #15
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
@justintime24

This thread is rapidly going nowhere because:

To quote jkirchner
Quote:
Which version of Linux are you trying to install?
We need to know the answer. You have not bothered to reply. Please do so if you wish further help.

To quote justintime24

Quote:
my prompt is showing root@(none):/#
The (none) means you have not named your PC. This is quite important for linux installations. No name = many things may be broken.

If fdisk -l (Yes, it's a lower case "Ell", we have already established that) does not work, then things are seriously broken, and you need to start again, from the very beginning.

I suspect you have not installed your linux distro properly.

Linux isn't "windows", you cannot just click [OK], [OK], "I agree to everything, even though I have not read it, and do not understand it anyway", [OK], [Yes] and expect it to work.

Welcome to a new, and ultimately, better world. But linux expects you to answer the questions posed, you can't just press <Return> and expect everything to work.

When you install any recent version of linux you should be asked some (fairly simple) questions.

If you do not know how to answer the questions asked of you at install time, don't just press <Return>, but ask (here) if you cannot be bothered to work out (or search for) what your reply should be. Better still, ask (here) after you have consulted the internet's various search engines.

Please don't have a "hissy fit" now, because I am trying to help you help yourself. We'll go one-step-at-a-time. We are here to help you if you can help yourself by providing us with some pertinant information as to your exact situation
 
  


Reply

Tags
fdisk, mount



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
Format partition as ext3, fdisk says FAT? ChesterHemmer Linux - General 7 07-09-2006 12:13 PM
can't format my hard drive with fdisk davidabauer Linux - Hardware 4 05-21-2006 10:18 PM
fdisk/format without floppy support 0S1R1S Linux - General 4 12-06-2005 05:40 PM
cdrom: drive not ready for command ZenBee Linux - Hardware 5 10-28-2002 12:28 PM
format and fdisk with RH 6.2 jonfa Linux - Software 1 06-04-2001 02:59 PM

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

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