LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-31-2005, 02:01 PM   #1
linuxbh
LQ Newbie
 
Registered: Aug 2004
Distribution: FC1,redhat9.-0,mandrake9.0
Posts: 10

Rep: Reputation: 0
cant format partition using mke2fs


hello firends

i wanted to device dump my lfs system into new harddisk .
the partition was FAT32 and i ran command as follows:

mke2fs /dev/hdc1

where hdc is new hdd

the command executed successfully but than in

fdisk -l

that partition was showed as fat32 only.....


i dont understand why this happened....


i tried to continue with the same....
i ran command as...

dd if=/dev/hda7 of=/dev/hdc1

this command showed whole directory proper as in my base system (/dev/hda7)
so i thought it would work....i made necessary changes in menu.lst

but while booting i got
GEom error

please help me out for this

thnak you in advance
 
Old 03-31-2005, 04:47 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
"dd if=/dev/hda7 of=/dev/hdc1

this command showed whole directory proper as in my base system (/dev/hda7)
so i thought it would work....i made necessary changes in menu.lst

but while booting i got
GEom error"

Whenever you use dd to copy between hard disks with different geometries you leave yourself open to geometry errors. The best solution is to create /dev/hdc1 again and this time leave dd out of the picture.

"mke2fs /dev/hdc1

where hdc is new hdd

the command executed successfully but than in

fdisk -l

that partition was showed as fat32 only.....


i dont understand why this happened...."

mke2fs does nothing to the partition table. If the partition table said fat32 before you ran mke2fs it will say fat32 after you ran mke2fs. Linux doesn't care what the partition table thinks the file system is so the erroneous file system type in the partition table is irrelevant.


----------------------------
Steve Stites
 
Old 04-04-2005, 11:08 AM   #3
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
I have two things to say:

1) You will probably want ext3 over ext2, when you use mke2fs /dev/hdc1 you create an ext2 partition. instead use mke2fs -j /dev/hdc1 (you can also pass -L PartitionName to give the partition a name also)

2) As answered in the other post, the system will still be labeled fat32, vfat, or whatever. To fix this and make it look the way you want it to type this: [i]fdisk /dev/hdc1[i]
Once there you can press m for help. It will show you a list of commands. From there, you can use the t command to change it to ext3 and you may need to use the w command to write your changes. I don't use this enough to remember the specifics, so hopefully this helps point you in the correct direction.

Last edited by Yerp; 04-04-2005 at 01:14 PM.
 
  


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
How do I format a partition? rafaelandy Slackware - Installation 13 10-17-2005 01:26 PM
should i format X partition after creat Y partition No2002 Linux - General 3 07-16-2005 10:13 AM
How do I format a partition snatale1 Linux - Newbie 2 10-08-2003 11:02 PM
Does mke2fs format in FAT32 format? blueleft Linux - General 2 08-09-2003 08:03 AM
partition w/o format Netrack Linux - General 4 01-14-2003 07:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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