LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-13-2004, 04:22 PM   #1
sharay
LQ Newbie
 
Registered: Mar 2004
Location: Minnesota
Posts: 2

Rep: Reputation: 0
Problem Formatting 2nd drive


Hello, I have a web server with 2 drives running RHEL

I ran fdisk and then mke2fs -v /dev/hdc1 and it is returning;

[root@server01 root]# mke2fs -v /dev/hdc1
mke2fs 1.32 (09-Nov-2002)
mke2fs: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.

This is what sfdisk -l is returning

[root@server01 root]# sfdisk -l

Disk /dev/hdc: 9726 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hdc1 0 - 0 0 0 Empty
/dev/hdc2 0 - 0 0 0 Empty
/dev/hdc3 0 - 0 0 0 Empty
/dev/hdc4 0 - 0 0 0 Empty

Disk /dev/hda: 9726 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 12 13- 104391 83 Linux
/dev/hda2 13 267 255 2048287+ 82 Linux swap
/dev/hda3 268 9725 9458 75971385 83 Linux
/dev/hda4 0 - 0 0 0 Empty
Warning: start=63 - this looks like a partition rather than
the entire disk. Using fdisk on it is probably meaningless.
[Use the --force option if you really want this]
[root@server01 root]#

How do I correct this? I only want the second drive as extra storage.
 
Old 03-13-2004, 04:59 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
To me it seems abit odd that fdisk jumped over hdb and went to hdc. I wonder if you have the drives jumpered correctly and are they being properly detected in the bios?
 
Old 03-13-2004, 06:28 PM   #3
sharay
LQ Newbie
 
Registered: Mar 2004
Location: Minnesota
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by homey
To me it seems abit odd that fdisk jumped over hdb and went to hdc. I wonder if you have the drives jumpered correctly and are they being properly detected in the bios?

I have a dedicated server so I can not check it out. Everyone else that has a second drive also shows hdc. Any recommendations on how to format?

Thanks
 
Old 03-13-2004, 07:28 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
I ran fdisk .....
This is what sfdisk -l is returning....
You seem to be mixing up the commands. Unless you have a reason to use sfdisk, I would stick with fdisk.

You won't be able to format any empty partitions.....
/dev/hdc1 0 - 0 0 0 Empty
/dev/hdc2 0 - 0 0 0 Empty
/dev/hdc3 0 - 0 0 0 Empty
/dev/hdc4 0 - 0 0 0 Empty


So, using fdisk, the command would look like this....
/sbin/fdisk /dev/hdc
 
Old 03-14-2004, 04:34 AM   #5
stirling
Member
 
Registered: Feb 2004
Distribution: LFS, Ubuntu
Posts: 52

Rep: Reputation: 16
"it seems abit odd that..."

it's not odd at all if there's a secondary master hard drive.

but, yeah, what homey said. there's no partitions to format.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 04:01 PM
Really old computer 2nd hard drive problem metallicafan_316 Linux - General 7 10-30-2005 07:48 PM
formatting my 2nd hard drive emokid Linux - Newbie 6 06-26-2005 07:45 AM
Problem formatting and using Maxtor 5000LE external hard drive jwilde Linux - Hardware 1 08-11-2003 05:58 PM
i need help formatting a drive scorpion777 Linux - Newbie 3 08-06-2003 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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