On Tue, Jun 25, 2013 at 3:11 PM, <[email protected]> wrote:
> Hi!
>> >
>> > What was the error message, same as previous?
>> >
>>
>> Here we go.
>>
>> ...
>> mount: wrong fs type, bad option, bad superblock on /dev/loop1,
>> missing codepage or helper program, or other error
>> In some cases useful info is found in syslog - try
>> dmesg | tail or so
>>
>> FATAL: can't mount block device /dev/loop1.
>> mke2fs 1.42 (29-Nov-2011)
>> mkfs.ext4: 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.
>>
>> 102400+0 records in
>> 102400+0 records out
>> 102400000 bytes (102 MB) copied, 0.542412 s, 189 MB/s
>> ...
>>
>> # dmesg | tail
>> ...
>> [ 1179.820940] EXT4-fs (loop1): VFS: Can't find ext4 filesystem
>
> Hmm, it seems like something went wrong with the loop device setup (as
> if no device was attached but the error was silently ignored).
>
> (And I wonder why the messages seems to be in reverse order, the
> messages from dd should have been first, then mkfs and then mount).
>
> Could you try again without the &> /dev/null redirection and report
> if there is error in the losetup step?
>
> Also what is output of the 'losetup -a' added right before the mkfs
> command?
>
> diff --git a/runltp b/runltp
> index a8bf404..1e9e637 100755
> --- a/runltp
> +++ b/runltp
> @@ -996,12 +996,13 @@ create_block()
> return 1
> else
> ##attach the created file to loop dev.
> - losetup $LOOP_DEV ${TMP}/test.img &>/dev/null
> + losetup $LOOP_DEV ${TMP}/test.img
> if [ $? -ne 0 ]; then
> echo "losetup failed to create block device"
> return 1
> else
> - mkfs.ext4 $LOOP_DEV &>/dev/null
> + losetup -a
> + mkfs.ext4 $LOOP_DEV &>/dev/null
> [ $? -ne 0 ] && (echo "creating a ext4 block device failed"
> && return 1)
> #set the values in alltests which require block device.
> DEVICE=$LOOP_DEV
/dev/loop0: [0802]:17982 (/host/ubuntu/disks/root.disk)
/dev/loop1: [0700]:918286 (/tmp/ltp-sWpzuMk6w7/test.img)
mke2fs 1.42 (29-Nov-2011)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
24 inodes, 176 blocks
8 blocks (4.55%) reserved for the super user
First data block=1
1 block group
8192 blocks per group, 8192 fragments per group
24 inodes per group
Allocating group tables: done
Writing inode tables: done
Filesystem too small for a journal
Writing superblocks and filesystem accounting information: mount:
/dev/loop1 already mounted or /tmp/ltp-sWpzuMk6w7/mnt_pnt.4DSKuC busy
FATAL: can't mount block device /dev/loop1.
10240+0 records in
10240+0 records out
10240000 bytes (10 MB) copied, 0.0723412 s, 142 MB/s
done
# LC_ALL=C ls -l /tmp/ltp-* /tmp/ltp-*/mnt_pnt.* /tmp/ltp-*/*.img
ls: cannot access /tmp/ltp-*: No such file or directory
ls: cannot access /tmp/ltp-*/mnt_pnt.*: No such file or directory
ls: cannot access /tmp/ltp-*/*.img: No such file or directory
# egrep -nr -i 'xxx|mnt_pnt' runltp
506: export TMPTEMPLATE="${TMPBASE}/ltp-XXXXXXXXXX"
706: mnt_pnt=`mktemp -d "${TMP}/mnt_pnt.XXXXXX"`
708: mount -t $DEVICE_FS_TYPE $DEVICE $mnt_pnt
710: mount $DEVICE $mnt_pnt
728: rm -rf $mnt_pnt
984:mkdir -p "${TMP}/mnt_pnt.XXXXXX"
Are those directories created before usage?
- Sedat -
> --
> Cyril Hrubis
> [email protected]
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list