Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - mounting an ISO image: (17 Items)
   
mounting an ISO image  
Hi All, 

I have an ISO image and I want to mount it.
fs-cd.so is present in /mnt/net/target/qnx6/armle/lib/dll. 

These are the commands I tried:

1. mount -vvv -tcd FUN.iso /mnt/cd

Parsed: mount from [FUN.iso] mount on [/mnt/cd] type [cd] 

exec: mount_cd FUN.iso /mnt/cd

Using internal mount (mount_cd not found)

Type    [cd] Flags 0x00000000 

Device  [FUN.iso] Directory [/mnt/cd] 

Options [NULL] 

mount: Can't mount /mnt/cd (type cd) 

mount: Possible reason: Invalid argument

 

2. mount -vvv -tiso9660 FUN.iso /mnt/cd

Parsed: mount from [FUN.iso] mount on [/mnt/cd] type [iso9660] 

exec: mount_iso9660 FUN.iso /mnt/cd

Using internal mount (mount_iso9660 not found)

Type    [iso9660] Flags 0x00000000 

Device  [FUN.iso] Directory [/mnt/cd] 

Options [NULL] 

mount: Can't mount /mnt/cd (type iso9660) 

mount: Possible reason: Invalid argument

 

3. mount -vvv -tcd loop FUN.iso /mnt/cd 

Parsed: mount from [loop] mount on [FUN.iso] type [cd] 

exec: mount_cd loop FUN.iso

Using internal mount (mount_cd not found)

Type    [cd] Flags 0x00000000 

Device  [loop] Directory [FUN.iso] 

Options [NULL] 

mount: Can't mount FUN.iso (type cd) 

mount: Possible reason: Invalid argument

 

I guess mount internally execs and calls mount_type (type we pass: cd, iso9660) but that, it is not able to find.
I tried to see symbols in fs-cd.so, and there is no such symbol present.

 

Please suggest me what I am missing

regards:
Ashutosh
Re: mounting an ISO image  
I think you are missing devb-loopback supposed to be shipped with QNX6.4.2.
For now you would have to place the iso locally on your "devb -host", eg in /tmp and not in /mnt.... , with mnt being a 
cifs mount.

Jeevan
Re: mounting an ISO image  
I did not get you. Could you please elaborate on your response.
Re: mounting an ISO image  
> I did not get you. Could you please elaborate on your response.

I mean:

# uname -a
QNX EADE7784 6.4.1 2009/05/20-17:35:31EDT x86pc x86

what is mounted:

# mount
/dev/hd0t179 on / type qnx6
(SomeFileServer)192.168.x.x:/qnx on /qnx type CIFS/SMB

Trying to mount the rtkit iso on the fileserver:
 
# mount -tcd /qnx/Jeevan/rtkit.iso /rtkit
mount: Can't mount /rtkit (type cd)
mount: Possible reason: No such device or address

it failed.

copied the iso to /tmp and try to mount:

# mount -tcd /tmp/rtkit.iso /rtkit

it worked:

# cd /rtkit/

# pwd

/rtkit

# ls
.                ..               .info.           boot             instflop.dat     repository       rtinstall
#

Hope this helps.
Jeevan
PS however, actually I am not sure anymore if you have the same prb.
RE: mounting an ISO image  
Hi,

Can you run with verbose enabled
i.e 
mount -vvvvvtcd /tmp/rtkit.iso /rtkit

and send me the log.

Best Regards
Santosh



-----Original Message-----
From: Jeevan Mathew [mailto:community-noreply@qnx.com] 
Sent: Monday, November 30, 2009 5:42 PM
To: general-community
Subject: Re: mounting an ISO image

> I did not get you. Could you please elaborate on your response.

I mean:

# uname -a
QNX EADE7784 6.4.1 2009/05/20-17:35:31EDT x86pc x86

what is mounted:

# mount
/dev/hd0t179 on / type qnx6
(SomeFileServer)192.168.x.x:/qnx on /qnx type CIFS/SMB

Trying to mount the rtkit iso on the fileserver:
 
# mount -tcd /qnx/Jeevan/rtkit.iso /rtkit
mount: Can't mount /rtkit (type cd)
mount: Possible reason: No such device or address

it failed.

copied the iso to /tmp and try to mount:

# mount -tcd /tmp/rtkit.iso /rtkit

it worked:

# cd /rtkit/

# pwd

/rtkit

# ls
.                ..               .info.           boot
instflop.dat     repository       rtinstall
#

Hope this helps.
Jeevan
PS however, actually I am not sure anymore if you have the same prb.




_______________________________________________

General
http://community.qnx.com/sf/go/post42823

Re: RE: mounting an ISO image  
Hi,

Can you run with verbose enabled
i.e
mount -vvvvvtcd /tmp/rtkit.iso /rtkit

and send me the log.

Best Regards
Santosh
Re: RE: mounting an ISO image  
Sure Santosh,

# mount -vvvvvvv -tcd /tmp/rtkit.iso /rtkit
Parsed: mount from [/tmp/rtkit.iso] mount on [/rtkit] type [cd]
exec: mount_cd /tmp/rtkit.iso /rtkit
Using internal mount (mount_cd not found)
Type    [cd] Flags 0x00000000
Device  [/tmp/rtkit.iso] Directory [/rtkit]
Options [NULL]

# mount
/dev/hd0t179 on / type qnx6
/tmp/rtkit.iso on /rtkit type cd (joliet)
....

-Jeevan
Re: RE: mounting an ISO image  
Thanks a lot for your help.
Can you try the attached test.iso image. Just to confirm that our iso image is proper.
Attachment: Text test.iso 386 KB
Re: RE: mounting an ISO image  
# mount -vvvvvvv -tcd test.iso /testISO
Parsed: mount from [test.iso] mount on [/testISO] type [cd]
exec: mount_cd test.iso /testISO
Using internal mount (mount_cd not found)
Type    [cd] Flags 0x00000000
Device  [test.iso] Directory [/testISO]
Options [NULL]
# ls /testISO/
.              .info.         tags
..             New Folder
#
Re: RE: mounting an ISO image  
Check if you have fs-cd.so on your platform.

http://www.qnx.com/developers/docs/6.3.2/neutrino/utilities/m/mount.html

Regards,
Sojan
Re: RE: mounting an ISO image  
Thanks Sojan.

we checked it. we have fs-cd.so in place.
Still it is not able to mount.

-Ashutosh Singhal
Re: RE: mounting an ISO image  
# cd Ashutosh/

# mount
/dev/hd0t179 on / type qnx6

# ls -l
total 780
drwxrwxr-x  2 root      root           1024 Dec 03 15:49 .
drwx------ 18 root      root           3072 Dec 03 15:49 ..
-rwxrwxrwx  1 root      root         395264 Nov 30 14:41 test.iso



# mount -vvv test.iso /root/Ashutosh/test
Parsed: mount from [test.iso] mount on [/root/Ashutosh/test] type [NULL]
Guessing type [qnx4], use -[t|T] if incorrect
exec: mount_qnx4 test.iso /root/Ashutosh/test
Using internal mount (mount_qnx4 not found)
Type    [qnx4] Flags 0x00000000
Device  [test.iso] Directory [/root/Ashutosh/test]
Options [NULL]
mount: Can't mount /root/Ashutosh/test (type qnx4)
mount: Possible reason: Corrupted file system detected


# mount
/dev/hd0t179 on / type qnx6

Success:
# mount -vvv -tcd test.iso /root/Ashutosh/test
Parsed: mount from [test.iso] mount on [/root/Ashutosh/test] type [cd]
exec: mount_cd test.iso /root/Ashutosh/test
Using internal mount (mount_cd not found)
Type    [cd] Flags 0x00000000
Device  [test.iso] Directory [/root/Ashutosh/test]
Options [NULL]

# mount
/dev/hd0t179 on / type qnx6
/root/Ashutosh/test.iso on /root/Ashutosh/test type cd (joliet)

Resource busy as mounted already:

# mount -vvv -tcd test.iso /root/Ashutosh/test
Parsed: mount from [test.iso] mount on [/root/Ashutosh/test] type [cd]
exec: mount_cd test.iso /root/Ashutosh/test
Using internal mount (mount_cd not found)
Type    [cd] Flags 0x00000000
Device  [test.iso] Directory [/root/Ashutosh/test]
Options [NULL]
mount: Can't mount /root/Ashutosh/test (type cd)
mount: Possible reason: Resource busy

# umount /root/Ashutosh/test

# mount
/dev/hd0t179 on / type qnx6

# mount -vvv -tblah test.iso /root/Ashutosh/test
Parsed: mount from [test.iso] mount on [/root/Ashutosh/test] type [blah]
exec: mount_blah test.iso /root/Ashutosh/test
Using internal mount (mount_blah not found)
Type    [blah] Flags 0x00000000
Device  [test.iso] Directory [/root/Ashutosh/test]
Options [NULL]
mount: Can't mount /root/Ashutosh/test (type blah)
mount: Possible reason: Can't access shared library

We do not have a fs-blah.so.

# mount
/dev/hd0t179 on / type qnx6

Totally wrong :-) :

# mount -vvv -tblah blah.iso /root/Ashutosh/test
Parsed: mount from [blah.iso] mount on [/root/Ashutosh/test] type [blah]
exec: mount_blah blah.iso /root/Ashutosh/test
Using internal mount (mount_blah not found)
Type    [blah] Flags 0x00000000
Device  [blah.iso] Directory [/root/Ashutosh/test]
Options [NULL]
mount: Can't mount /root/Ashutosh/test (type blah)
mount: Possible reason: Invalid argument
#

I do not have a blah.iso present here so:

# mount -vvv -tcd blah.iso /root/Ashutosh/test
Parsed: mount from [blah.iso] mount on [/root/Ashutosh/test] type [cd]
exec: mount_cd blah.iso /root/Ashutosh/test
Using internal mount (mount_cd not found)
Type    [cd] Flags 0x00000000
Device  [blah.iso] Directory [/root/Ashutosh/test]
Options [NULL]
mount: Can't mount /root/Ashutosh/test (type cd)
mount: Possible reason: Invalid argument
#

In your first post you have the invalid arg error above.
Jeeven

Re: RE: mounting an ISO image  
not that I want to make things complicated , so watch out this:

# devf-ram
# flashctl -p /dev/fs0p0 -e -f
# flashctl -p /dev/fs0p0 -n /root/Ashutosh/flash -m
# ls
.           ..          flash       test.iso

# ls -l flash/
total 0

# mount
/dev/hd0t179 on / type qnx6
/dev/fs0p0 on /root/Ashutosh/flash type flash

# mv test.iso flash/

# ls -l
total 9
drwxrwxr-x  2 root      root           1024 Dec 03 16:15 .
drwx------ 18 root      root           3072 Dec 03 15:49 ..
drwxrwxrwx  2 root      root             40 Dec 03 16:13 flash

# mount
/dev/hd0t179 on / type qnx6
/dev/fs0p0 on /root/Ashutosh/flash type flash

# cd flash

# pwd
/root/Ashutosh/flash

# ls -l
total 772
-rwxrwxrwx  1 root      root         395264 Nov 30 14:41 test.iso

# mount -vvv -tcd test.iso /root/Ashutosh/test
Parsed: mount from [test.iso] mount on [/root/Ashutosh/test] type [cd]
exec: mount_cd test.iso /root/Ashutosh/test
Using internal mount (mount_cd not found)
Type    [cd] Flags 0x00000000
Device  [test.iso] Directory [/root/Ashutosh/test]
Options [NULL]
mount: Can't mount /root/Ashutosh/test (type cd)
mount: Possible reason: Resource busy

Jeevan
PS:I ran out of ideas right now. :(

Re: RE: mounting an ISO image  
Could you please send across your pidin a output of your target to us.

~santosh
Re: RE: mounting an ISO image  
> Could you please send across your pidin a output of your target to us.
> 
> ~santosh

Attached.
-Jeevan
Attachment: Text pidin.txt 8.61 KB
Re: RE: mounting an ISO image  
I think because of devb-eide you are able to mount.
Slay the devb-eide process and try once.

In our case we dont have any ide devices and we are not running devb-eide devices.

I think only solution in our case is using loopback. But we dont we have devb-loopback. 

could you help me in getting devb-loopback exe for ARM target? 

Best Regards
Santosh
Re: RE: mounting an ISO image  
> I think because of devb-eide you are able to mount.
> Slay the devb-eide process and try once.
> 
> In our case we dont have any ide devices and we are not running devb-eide 
> devices.
> 
> I think only solution in our case is using loopback. But we dont we have devb-
> loopback. 
> 
> could you help me in getting devb-loopback exe for ARM target? 
> 
> Best Regards
> Santosh


Hmm I am not sure:
But previously I wrote:
----
I think you are missing devb-loopback supposed to be shipped with QNX6.4.2.
----

> could you help me in getting devb-loopback exe for ARM target? 

Yes, that should be easy:
Can you contact your >next<  support-rep via the 'new' support portal  ?

Best Regards,
Jeevan