LinuxQuestions.org
Review your favorite Linux distribution.
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 06-25-2004, 08:33 PM   #1
Darrell22
Member
 
Registered: Nov 2003
Posts: 83

Rep: Reputation: 15
How to Format ext3 in Redhat???


I've using Redhat Advanced Server. 2.4.20-18.10.1

I created a new partition with fdisk: /dev/hdb15

P

Disk /dev/hdb: 255 heads, 63 sectors, 19929 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 1959 15735636 c Win95 FAT32 (LBA)
/dev/hdb2 1960 16709 118479375 5 Extended
/dev/hdb5 * 1960 1972 104391 83 Linux
/dev/hdb6 1973 2625 5245191 83 Linux
/dev/hdb7 2626 2886 2096451 82 Linux swap
/dev/hdb8 2887 3539 5245191 83 Linux
/dev/hdb9 3540 4192 5245191 83 Linux
/dev/hdb10 4193 4845 5245191 83 Linux
/dev/hdb11 4846 5498 5245191 83 Linux
/dev/hdb12 5499 6151 5245191 83 Linux
/dev/hdb13 6152 6804 5245191 83 Linux
/dev/hdb14 6805 8110 10490413+ 83 Linux

/dev/hdb15 8111 9416 10490413+ 83 Linux


But, how do I format it???

All the other partitions were formatted as ext3 when I
installed. How do I format them as ext3?
Or, even, as ext2? The exact syntax please.



mkfs -c -v -t ext3 /dev/hdb15

mke2fs 1.26 (3-Feb-2002)
mkfs.ext2: bad blocks count - /dev/hdb15


mkfs
Usage: mkfs [-V] [-t fstype] [fs-options] device [size]

mkfs -V -t ext3 /dev/hdb15


mkfs version 2.11f (Feb 26 2002)
mkfs.ext3 /dev/hdb15
mkfs.ext3: No such file or directory


mkfs -V -ext3 /dev/hdb15

mkfs version 2.11f (Feb 26 2002)
mkfs.ext2 -V -ext3 /dev/hdb15
mke2fs 1.26 (3-Feb-2002)
Using EXT2FS Library version 1.26


mkdir /junk

mount /dev/hdb15 /junk -rw -t ext3

mount: wrong fs type, bad option, bad superblock on /dev/hdb15,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)



find / -type f -name mkfs*
/usr/share/man/man8/mkfs.8.gz
/usr/share/man/man8/mkfs.bfs.8.gz
/usr/share/man/man8/mkfs.minix.8.gz
/usr/share/man/fr/man8/mkfs.minix.8.gz
/usr/share/man/fr/man8/mkfs.8.gz
/sbin/mkfs.msdos
/sbin/mkfs.vfat
/sbin/mkfs.ext2
/sbin/mkfs
/sbin/mkfs.bfs
/sbin/mkfs.minix
/sbin/mkfs.ocfs


find / -type f -name mke*

/usr/share/man/man8/mke2fs.8.gz
/sbin/mke2fs

/sbin/mkfs.ext2


cat /etc/filesystems

ext3
ext2
nodev proc
nodev devpts
iso9660
vfat
hfs


cat /etc/mtab

/dev/hdb6 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hdb5 /boot ext3 rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hdb8 /home ext3 rw 0 0
/dev/hdb9 /opt ext3 rw 0 0
/dev/hdb13 /oracle ext3 rw 0 0
/dev/hdb14 /oradata ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/hdb12 /tmp ext3 rw 0 0
/dev/hdb10 /usr ext3 rw 0 0
/dev/hdb11 /var ext3 rw 0 0
/dev/hdb1 /backup vfat rw 0 0
 
Old 06-26-2004, 03:00 AM   #2
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
I'm still a noob, but I think I see your problem. mkfs uses one of several programs depending on which file system you want to make. These are usually named "mkfs.fstype". You seem to be missing mkfs.ext3 and are therefore unable to create an ext3 file system. It seems that you did actually create an ext2 file system, but tried to mount it as ext3 (which gave you an error).

Your post was a little hard to read. It might be easier if there was some way to tell what you were typing, and what the terminal was responding with.
 
Old 06-26-2004, 07:18 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
for ext2 fs..

mke2fs /dev/hda15


for ext3 fs..

mke2fs -j /dev/hda15


for converting an existing ext2 fs to ext3..

tune2fs -j /dev/hda15


more options..

man mke2fs

man tune2fs

Last edited by DavidPhillips; 06-26-2004 at 07:24 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
Format ext3 partition to FAT32? Moses420ca Linux - Newbie 14 09-16-2005 12:31 PM
initrd to ext3 format alaios Debian 1 01-19-2005 07:57 AM
Format NTFS to EXT3 Optimistic Linux - Software 12 06-10-2004 12:48 PM
Format ext3 ONLY on unallocated space X-Crawler Linux - General 3 03-16-2004 11:27 AM
Format ext3 file system? mikeshn Linux - General 5 11-03-2002 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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