LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-04-2003, 05:22 AM   #1
sant
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
Unhappy I'm having problems with new file system


I am having problems in the definition of a new file system. I have created the partition on the hard disk

Disco /dev/sda: 255 cabezales, 63 sectores, 4425 cilindros
Unidades = cilindros de 16065 * 512 bytes

Dispositivo Inicio Principio Fin Bloques Id Sistema
/dev/sda1 * 1 1912 15358108+ 83 Linux
/dev/sda2 1913 2000 706860 83 Linux

/dev/sda2 is the new partition. When I try to create the file system with the command mkfs giving the following mistake to this me

mkfs -t ext3 /dev/sda2 /prueba
mke2fs 1.27 (8-Mar-2002)
mkfs.ext3: bad blocks count - /prueba

This is the file /etc/fstab

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
LABEL=/oracle/u01 /oracle/u01 ext3 defaults 1 2
LABEL=/oracle/u02 /oracle/u02 ext3 defaults 1 2
LABEL=/oracle/u03 /oracle/u03 ext3 defaults 1 2
LABEL=/oracle/u04 /oracle/u04 ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
/dev/hda8 swap swap defaults 0 0
/dev/sda2 /prueba ext2 exec,dev,suid,rw 1 1

I don't understand why the others file system begin with LABEL= and the new partition begin with /dev/sda2.
I already have the directory /prueba created in / and do not understand that this happening.

Another question I like to know because I do not know, since I can add to a file system that already exists that has remained small one extension more


Excuse me for asking so much, I know unix in other S.O. (AIX,HP-UX) but not linux

Thank you for advanced
 
Old 11-04-2003, 05:42 AM   #2
darrenp
Member
 
Registered: Sep 2003
Location: Lancaster, UK
Distribution: Mandrake
Posts: 46

Rep: Reputation: 15
The command:

mkfs -t ext3 /dev/sda2 /prueba

Is trying to format TWO partitions, /dev/sda2 and /prueba. The error you get is from it trying to format /prueba.

just run

mkfs -t ext3 /dev/sda2

and change the entry in /etc/fstab to read ext3 instead of ext2 (ext3 can be mounted as ext2, but loses the jornaling benefits)
 
Old 11-04-2003, 07:01 AM   #3
sant
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0

good that's ok

/mkfs -t ext3 /dev/sda2

mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
88512 inodes, 176715 blocks
8835 blocks (5.00%) reserved for the super user
First data block=0
6 block groups
32768 blocks per group, 32768 fragments per group
14752 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

but now I like know first, how S.O. know the new file system is /prueba, because in the comand mkfs I don´t put the new file system, and second, I needed reboot the machine, normal is it?
Do you know the other question in my first message?

thank you
 
Old 11-04-2003, 07:20 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,762

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
/dev/sda2 is the device ID of a partition but you can also assign labels to partitions. When the /etc/fstab is read during boot the OS searches for partition assigned to that label and that is what it mounts. The advantage is that you do not need to know the exact location of the partition.

The command is e2label.
 
Old 11-04-2003, 07:24 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,762

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
The file system is not /prueba, your just mounting the filesystem to that directory. The OS knows becuase you have an entry in your /etc/fstab. A reboot is not required. Just mount the filesystem

mount /prueba
 
Old 11-04-2003, 10:33 AM   #6
sant
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
I think we have a problem because is neccesary reboot the machine.

When I put new partition with fdisk and the end put letter w and response me this error

Ya se ha modificado la tabla de particiones

Llamando a ioctl() para volver a leer la tabla de particiones.

WARNING: Re-reading the partition table failed with error 16: Dispositivo o recurso ocupado.
The kernel still uses the old table.
The new table will be used at the next reboot.
Se están sincronizando los discos

Sorry for me english
 
Old 11-04-2003, 11:49 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,762

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Maybe some confusion on my part.

Yes, your correct you should reboot after you change the partition table. You do not have to reboot after a format or just to mount a partition.

It shouldn't be a problem. I'm also guessing your running linux on the same drive you are trying to partition.
 
  


Reply



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
Problems with system-wide file permissions hexadevil Linux - Newbie 2 05-30-2004 07:54 AM
Mounting problems in local file system svyshna Linux - General 3 08-06-2003 10:58 AM
file system problems pachox Linux - General 6 06-09-2002 02:22 PM
file system problems u02gtt Slackware 2 04-21-2002 02:03 PM
Many problems with using my RH7.0/Gnome file system etc. wsimmons Linux - Newbie 2 02-04-2002 12:31 PM

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

All times are GMT -5. The time now is 01:34 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
Open Source Consulting | Domain Registration