LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-24-2008, 02:17 PM   #1
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Rep: Reputation: 34
Can't format a second hdd


I installed a SATA drive this morning, a 500gig Seagate Barracuda. I am using Mandriva 2008 and it recognized it right away. I went to format it as an ext3 partition, and it went throught the process and then at the end popped up a box saying "ext3 formatting of sda1 failed". Why would it fail at the end? Is there a problem with the mount point? I have tried it several times, but to no avail.
 
Old 09-24-2008, 02:37 PM   #2
loperz7
Member
 
Registered: Sep 2008
Posts: 53

Rep: Reputation: 15
Does it give you an option to see more information?
if it does, post it here.

Debian

Last edited by loperz7; 10-10-2008 at 05:18 AM.
 
Old 09-24-2008, 02:42 PM   #3
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
Nope. No option to see anything else. When I try to do it again it will run through the whole process in about twenty seconds and that box pops up saying the ext3 formatting of sda1 failed with one button that says ok. I'm not a linux expert, but I'd say thats quite odd.
 
Old 09-24-2008, 02:43 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,499

Rep: Reputation: 193Reputation: 193
Open a console, and run:

$ su
<enter root password>
# fdisk -l /dev/sda

That will print out the partition structure of sda. If errors are reported, post those here. If no errors are reported and sda1 is reported as the sole partition on the drive run:

# mkfs.ext3 /dev/sda1

That should format sda1 as ext3. If it doesn't complete successfully, post the error message here.
 
Old 09-24-2008, 03:34 PM   #5
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
Okay...no output from the fdisk command...so I ran mkfs here it is...

[root@localhost cory]# fdisk -l /dev/sda
[root@localhost cory]# mkfs.ext3 /dev/sda1
mke2fs 1.40.8 (13-Mar-2008)
Warning: 256-byte inodes not usable on older systems
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
30531584 inodes, 122096000 blocks
6104800 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
3727 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000

Warning: could not read block 0: Attempt to read block from filesystem resulted in short read
Writing inode tables: done
ext2fs_mkdir: Attempt to read block from filesystem resulted in short read while creating root dir
 
Old 09-24-2008, 04:33 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,616
Blog Entries: 26

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
Hi,

You did partition the '/dev/sda' disk?

Looks like you didn't since you got no output from the 'fdisk -l /dev/sda'.
 
Old 09-25-2008, 05:10 AM   #7
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
Yeah I did. Thats weird that it doesn't show anything. I've decided to zero-fill this brand new drive and try it again from the beginning.
 
Old 09-25-2008, 05:17 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,616
Blog Entries: 26

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
Hi,

What happens when you do 'fdisk /dev/sda'? Once into the application press 'p'.
 
Old 09-25-2008, 08:58 AM   #9
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
Ok...I zero filled this drive to totally start over. Now I went into diskdrake and decided that maybe if I broke it into two pieces it would maybe work. So I created a partition of about half the size and sent it on its way with an ext3 format. So its about 240 gig that it has to format. How long should this take? Its been running about two hours now and on its little graph it looks to be about a sixth of the way through. Whats the deal with this thing?
 
Old 09-25-2008, 01:02 PM   #10
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,499

Rep: Reputation: 193Reputation: 193
I'm not that familiar with diskdrake, but I would assume that the application is configured to automatically check for bad blocks when doing a format. A bad block check takes time and is probably unnecessary since your zero fill already checked for that. To check for bad blocks, it has to read and write data to every block which can take some time.
 
Old 09-25-2008, 01:25 PM   #11
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
Ahhh good call on that. I actually ran badblocks last night, and it took quite a while. I couldn't tell you how long because I went to sleep. I found that a little disturbing because I can't figure out what a short read is and I was kind of hoping it would have been caused by a bad block on the drive. I am thinking it has something to do with the file system not being exactly on the partition because of the geometry of the partition on the drive. Maybe the math doesn't work out exactly right? If it is an issue with that then I think cutting it into two smaller partitions should do the trick.
 
Old 09-25-2008, 05:52 PM   #12
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,616
Blog Entries: 26

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
Hi,

If you are doing a bad block check on that big of a hdd partition then expect a long period before finish.
 
Old 09-26-2008, 12:34 PM   #13
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
Well I have it working, but I have no idea what the problem was. Thanks for the responses
 
Old 09-27-2008, 08:38 AM   #14
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,499

Rep: Reputation: 193Reputation: 193
Quote:
I have no idea what the problem was.
My best guess would be that you had some bad blocks on that drive that were corrected by your zero fill and bad block check. Applications that "repair" bad blocks do so by simply marking them bad so that the hard drive circuitry no longer attempts to write data to that block. Having bad block problems on a new drive is not a good sign. You might want to download Seagate's diagnostic utility iso from their website and run a thorough test on that drive if you haven't done so already. If any problems are reported, contact Seagate support for a warranty replacement.
 
  


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
Format a HDD georgiozoze Linux - Newbie 3 12-21-2006 03:05 AM
format hdd jorasmi Slackware 4 03-09-2005 04:25 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM
cannot format hdd quickk Linux - Hardware 6 07-20-2003 03:33 PM
Format HDD bytebrowser Linux - Hardware 1 07-02-2003 06:33 AM


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