OpenWrt Forum Archive

Topic: Format a USB partition

The content of this topic has been archived on 1 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

Below is a single USB partition on my new USB flash disk:

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 65 MB, 65536000 bytes
5 heads, 32 sectors/track, 800 cylinders
Units = cylinders of 160 * 512 = 81920 bytes

                                 Device Boot      Start         End      Blocks   Id  System
/dev/scsi/host0/bus0/target0/lun0/part1               1         800       63984   83  Linux

Command (m for help): q


Using mke2fs -j /dev/scsi/host0/bus0/target0/lun0/part1 to format it, it failed as follows:

root@OpenWrt:/proc# mke2fs -j /dev/scsi/host0/bus0/target0/lun0/part1
mke2fs 1.38 (30-Jun-2005)
ext2fs_check_if_mount: No such file or directory while determining whether /dev/scsi/host0/bus0/target0/lun0/part1 is mounted.
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
16000 inodes, 63984 blocks
3199 blocks (5.00%) reserved for the super user
First data block=1
8 block groups
8192 blocks per group, 8192 fragments per group
2000 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345

Writing inode tables: done
Creating journal (4096 blocks): mke2fs: No such file or directory
        while trying to create journal

Please let me know how to fix the problem.

Many Thanks,
David

I have seen some postings encountered no such an issue/problem. I read the HowTo guide and did it at least 3 times. All failed. I must have missed something. Any help/advice will be greatly appreciated.

Many Thanks.
David

I had same problem just a while ago.  The solution was to first make a ext2 filesystem without journaling.  To do this just type

mkfs.ext2 /dev/scsi/host0/bus0/target0/lun0/part1

without the -j option. Thereafter you may make the journaling filesystem with the command you listed.

ln -s /proc/mounts /etc/mtab

Life is so wonderful when there is someone around to help. Guys, thank you so much for help. You are the man.

The discussion might have continued from here.