Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, here I am yet again. I think that I installed everything yet forgot to mkfs -j <location>. Is there a way to easily tell if that is so? What do I need to do if so (or if not)?
What happens if I run it on a disk with data on it.
I do have a couple of drives in which the information doesn't really matter so I ran mkfs on them. Why would it respond as such:
bmike1@bmike1:/mnt$ umount /dev/sda6
umount: /dev/sda6 is not mounted (according to mtab)
bmike1@bmike1:/mnt$ su
Password:
root@bmike1:/mnt# mkfs -t ext2 -j /mnt/sda6
mke2fs 1.34-WIP (21-May-2003)
/mnt/sda6 is not a block special device.
Proceed anyway? (y,n) y
mkfs.ext2: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
root@bmike1:/mnt# umount sda5
root@bmike1:/mnt# mkfs -t ext2 -j /mnt/sda5
mke2fs 1.34-WIP (21-May-2003)
/mnt/sda5 is not a block special device.
Proceed anyway? (y,n) y
mkfs.ext2: Device size reported to be zero. Invalid partition specified, or
partition table wasn't reread after running fdisk, due to
a modified partition being busy and in use. You may need to reboot
to re-read your partition table.
root@bmike1:/mnt#
Ahhhhh! It gets even stranger. There are partitions which I didn't create but that are there. Such as:
bmike1@bmike1:/mnt$ ls hda1 (msdos)
My Documents _ bootlog.txt _io.sys _ _ _quickenw _ _ _suhdlog.dat
Program Files _command.com _msdos.--- _ recycled _ _ _system.1st
autoexec.bat _ config.sys _ msdos.sys _ scandisk.log _temp
bootlog.prv _ _detlog.txt _ netlog.txt _setuplog.txt _windows
bmike1@bmike1:/mnt$ ls hda5 (linux)(WHERE ARE ALL THE FILES?)
bmike1@bmike1:/mnt$ ls hda6<(didn't create this)(cat /proc/partitions shows that)
bmike1@bmike1:/mnt$ ls hda7<(didn't create this)
bmike1@bmike1:/mnt$ ls hda8<(didn't create this)
bmike1@bmike1:/mnt$ ls sda5
downloads _drakx-images _lost+found
bmike1@bmike1:/mnt$ ls sda5/dr*
sda5/drakx-images:
<listing of files>
bmike1@bmike1:/mnt$ ls sda5/do*<there WAS a file in here
bmike1@bmike1:/mnt$ ls sda6<(didn't create this)
If you will notice the directory listing from ls and cat /proc/partitions differ.
IT IS mkfs /dev/<drive> NOT /mnt/<drive> as shown:
root@bmike1:/mnt# mkfs -t ext2 -j /dev/sda6
mke2fs 1.34-WIP (21-May-2003)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
25896 inodes, 103408 blocks
5170 blocks (5.00%) reserved for the super user
First data block=1
13 block groups
8192 blocks per group, 8192 fragments per group
1992 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root@bmike1:/mnt# mkfs -t ext2 -j /dev/sda5
mke2fs 1.34-WIP (21-May-2003)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
128016 inodes, 511984 blocks
25599 blocks (5.00%) reserved for the super user
First data block=1
63 block groups
8192 blocks per group, 8192 fragments per group
2032 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.