LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-06-2010, 06:55 PM   #1
LaQuirreLL
LQ Newbie
 
Registered: Oct 2009
Posts: 11

Rep: Reputation: 0
can I do mkfs after transferring data to HD


openSuse 11.2 KDE 4 desktop
User = newbie

I was having some trouble with a Hard drive that I store my photo's and other personal data on.
Fisrtly, it was messing my OS up, so that it would not boot to the desktop, but only to the command line where it would report that this drive was somehow corrupted and needed to be repaired.
Secondly, the OS was reporting that certain files were 380,000.2 TB in size. this drive is only 200 GB.
I didn't want to do the repair until I found a way to back up my data. I found another hard drive to do backup to but I had to take some data off of it. Which I did.

In the spirit of trying learn command line I decided to partition and format the hard drive using fdisk. I found some easy to use directions and proceeded to partition the drive. Unfortunately, I failed to realize the directions were only for the partitioning part [my fault for not reading further]. What I missed was that after using fdisk to partition, you must use mkfs to set filesystem type.[I thought I had done that in fdisk using the "l" , "t" commands within fdisk].

My questions are:
1] Can I do this mkfs command after I have put my data on the new hard drive or should I start fresh and redo partioning? [I have not deleted the other drive so my data is still there.]

2] What would be the cause of the incorrectly reported file sizes?

Thank You
 
Old 03-06-2010, 07:22 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,265

Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
Presuming you have your data safely tucked away somewhere else:
- the partition type in the partition table says what type (Linux) not what filesystem.
- after partitioning like that you have to mkfs to format a filesystem type (ext3, jfs, whatever - even NTFS). This will delete all data in this partition.
- logic errors in the metadata causes all sorts of weird errors - fsck is used to "fix" these; "man fsck" for info.
 
Old 03-06-2010, 11:27 PM   #3
LaQuirreLL
LQ Newbie
 
Registered: Oct 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Thank You syg00
I thought I might have to start over, but was still hoping I didn't have to. Oh well, quicker I am on it, quicker it will be done.
 
  


Reply

Tags
data, fdisk, hdd, mkfs, partition


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
transferring data to new drive mtdew3q Linux - General 3 02-21-2009 11:23 PM
Transferring data to a new computer carol sheridan Linux - Newbie 8 02-18-2009 02:59 PM
configuration to max data transferring Rednameless Linux - Networking 1 04-28-2006 08:00 PM
Transferring data from Linux to Windows satyatechie Linux - Newbie 1 07-13-2005 08:24 AM
Help needed to recover data from ext3 file system where mkfs was issued accidentally kapilsampath Linux - General 4 04-26-2005 07:52 AM


All times are GMT -5. The time now is 04:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration