LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-11-2002, 06:45 AM   #1
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
Having troubles with partition...caused by wine?


The partition that I've been using for my c drive for wine is always being corrupt. The c drive is its own 10 gig HDD, which i formatted with mke2fs and installed HL etc on there, but after a while itll be corrupt and ill have to fix it with fsck but then that just gives HL heaps of errors because of loss of files, etc.

I've been thinking maybe this is caused because HL doesn't like the ext2 filesystem? So I've been trying to remove this entire partition then re-creating it with a Fat32 FS, or even just formatting it. I can't seem to do it under linux for some reason (I'll delete the partition with fdisk, then recreate it and everything is still on the drive!! WTF?!) and i still can't seem to get the mkdosfs command to work. So I've booted into XP and when i try to format the partition it fails right at the end....and when i try with Partition Magic 7 i get the error number of 4 and description: Bad argument/parameter...

ARGH! no matter what i do i can't seem to format this drive!!! any idea's....and maybe idea's as to what is really causing this?

And no, the corruption isn't due to a possibly screwed hdd as this is the second one ive tried...same thing has happened to both (apart from this formatting problem..)
 
Old 12-12-2002, 12:57 AM   #2
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
Bump...

anybody? moses, you were good at partitioning...where are ya??
 
Old 12-12-2002, 09:28 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well I don't know about partition magic. But after recreating the partition with fdisk all you have done is modified the partition table. You haven't modified the partition itself yet. So if you would try to mount it then the mount command will try to detect the filesystem by reading some of it. It then will probably detect all the old filesystem and still show all the same files present.

What exactly is going wrong when you run the mkdosfs command. Which error messages do you get? Have you tried running it with -v for additional information?

Reading through the fdisk man pages it mentions something about having to clear the first 512 bytes for the dos6.x format command to work. I don't know if partition magic also needs something similar done. But I'd definetly try to format it with mkdosfs first.
 
Old 12-12-2002, 03:32 PM   #4
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
is there some way to erase the MBR and the first 512bytes of the HDD?

also:
root@gardiner_desk:/# mkdosfs /dev/hdc -v
mkdosfs 2.8 (28 Feb 2001)
mkdosfs: Will not try to make filesystem on '/dev/hdc'

thats all it gives me...
 
Old 12-13-2002, 03:46 AM   #5
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well the man page of fdisk explains pretty well how to blank the first 512 bytes. Something like:
dd if=/dev/zero of=/dev/hdc1 bs=512 count=1

/dev/hdc references the complete physical disk. From your story I understand you've created a partition on that drive. So you would have to tell it to create a filesystem on /dev/hdc1.
You mentioned it's a 10 gig disk so I assume you'd want to format it as fat32 or you won't really get past 2 gigs. According to the man page of mkdosfs it defaults to either 12 or 16 bit, which ever one fits better. So you should force it to 32.

mkdosfs -vF 32 /dev/hdc1

Since you where having problems with corrupt blocks it might be wise to add the -c option to the mkdosfs command so it check for bad blocks.
 
Old 12-16-2002, 02:10 AM   #6
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
thats heaps, worked like a dream

http://www.linuxquestions.org/questi...threadid=38481

any idea's for that one Mik? heh
 
  


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
wine troubles kevin_hill54 Linux - Newbie 7 05-01-2005 12:40 PM
Troubles with Wine iZvi Linux - General 16 06-06-2004 03:14 AM
Wine troubles Oakstaff Linux - Software 17 11-18-2003 04:56 AM
Wine Troubles Kristic Linux - Newbie 8 09-13-2003 04:05 PM
Data loss on a FAT partition. What caused it? correro Linux - General 3 03-10-2003 08:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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