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