Re: DVD ISO and mount_udf: FSD does not lie within the partition!

2014-02-19 Thread Peter Hessler
On 2014 Feb 18 (Tue) at 02:57:50 -0500 (-0500), Philippe Meunier wrote:
:# cat /mnt/README.TXT  
:This disc contains a UDF file system and requires an operating system
:that supports the ISO-13346 UDF file system specification.

OpenBSD does not support disks that have both UDF and MS-DOS
filesystems.


-- 
The older I grow the more I distrust the familiar doctrine that age
brings wisdom.
-- H. L. Mencken



DVD ISO and mount_udf: FSD does not lie within the partition!

2014-02-18 Thread Philippe Meunier
Hello,

I have problems mounting Windows 7 DVD ISO images on OpenBSD 5.4
stable.  For example, you can download X17-59463.iso from
http://www.mydigitallife.info/official-windows-7-sp1-iso-from-digital-river/

# ls -l X17-59463.iso  
-rw---  1 meunier  users  2564476928 Feb 16 01:24 X17-59463.iso

Then:

# vnconfig vnd0 X17-59463.iso  
# disklabel vnd0
# /dev/rvnd0c:
type: vnd
disk: GSP1RMCULFRER_EN
label: _DVD
duid: 
flags:
bytes/sector: 512
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 50087
total sectors: 5008744
boundstart: 0
boundend: 5008744
drivedata: 0 

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:  50087440 ISO9660   
  c:  50087440 ISO9660   
# mount_cd9660 /dev/vnd0a /mnt 
# ls -la /mnt
total 4
dr-xr-xr-x   1 root  wheel  112 Apr 12  2011 .
drwxr-xr-x  14 root  wheel  512 Dec 31 18:44 ..
-r-xr-xr-x   1 root  wheel  135 Apr 12  2011 README.TXT
# cat /mnt/README.TXT  
This disc contains a UDF file system and requires an operating system
that supports the ISO-13346 UDF file system specification.
# umount /mnt
# mount_udf /dev/vnd0a /mnt
FSD does not lie within the partition!
mount_udf: mount: Invalid argument
#

So... how do I access the UDF file system on such a DVD ISO image?

For reference, here's what I get using Linux (booting Ubuntu from a
USB stick on the same computer):

me@pc:~$ sudo mount -t ufs -o ufstype=44bsd,ro /dev/sda8 /mnt
me@pc:~$ sudo mount -o loop /mnt/meunier/X17-59463.iso /mnt2
me@pc:~$ mount | egrep iso
/mnt/meunier/X17-59463.iso on /mnt2 type udf (ro)
me@pc:~$ ls /mnt2
autorun.inf  boot  bootmgr  efi  setup.exe  sources  support  upgrade
me@pc:~$

Is there any way to get the same thing on OpenBSD, or am I out of
luck?

Thanks,

Philippe



Re: DVD ISO and mount_udf: FSD does not lie within the partition!

2014-02-18 Thread Dmitrij D. Czarkoff
Philippe Meunier said:
 # mount_udf /dev/vnd0a /mnt   
  
 FSD does not lie within the partition!
 mount_udf: mount: Invalid argument
 #

AFAIR mount_udf doesn't support the newer versions of UDF. One of such
versions is used in Windows installation disks.
 
 So... how do I access the UDF file system on such a DVD ISO image?

You may use p7zip package (archivers/p7zip in ports):

  $ 7z l windows_7_x64_hp.iso 
  
  7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
  p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)
  
  Listing archive: windows_7_x64_hp.iso
  
  --
  Path = windows_7_x64_hp.iso
  Type = Udf
  Comment = GRMCHPXFRER_RU_DVD
  Cluster Size = 2048
  Created = 2009-07-14 19:57:19
  
 Date  TimeAttr Size   Compressed  Name
  --- -    
  2009-07-14 19:57:19 .  122 2048  autorun.inf
  2009-07-14 19:57:19 Dboot
  2009-07-14 19:57:19 .   262144   262144  boot/bcd
  2009-07-14 19:57:19 .  3170304  3170304  boot/boot.sdi
  2009-07-14 19:57:19 . 1024 2048  boot/bootfix.bin
  2009-07-14 19:57:19 .   112640   112640  boot/bootsect.exe
  2009-07-14 19:57:19 . 4096 4096  boot/etfsboot.com
  2009-07-14 19:57:19 Dboot/fonts
[...]
  2009-07-14 19:57:19 Dupgrade
  2009-07-14 19:57:19 Dupgrade/netfx
  2009-07-14 19:57:19 .  5922304  5922816  upgrade/netfx/netfx.msi
  2009-07-14 19:57:19 . 19210240 19210240  upgrade/netfx/netfx.msp
  2009-07-14 19:57:19 . 16901553 16902144  upgrade/netfx/netfx1.cab
  2009-07-14 19:57:19 .7372873728  
upgrade/netfx/netfxupdate.exe
  --- -    
  3167275251   3168047104  874 files, 199 folders

-- 
Dmitrij D. Czarkoff



Re: DVD ISO and mount_udf: FSD does not lie within the partition!

2014-02-18 Thread Kenneth Westerback
On 18 February 2014 02:57, Philippe Meunier meun...@ccs.neu.edu wrote:
 Hello,

 I have problems mounting Windows 7 DVD ISO images on OpenBSD 5.4
 stable.  For example, you can download X17-59463.iso from
 http://www.mydigitallife.info/official-windows-7-sp1-iso-from-digital-river/

 # ls -l X17-59463.iso
 -rw---  1 meunier  users  2564476928 Feb 16 01:24 X17-59463.iso

 Then:

 # vnconfig vnd0 X17-59463.iso
 # disklabel vnd0
 # /dev/rvnd0c:
 type: vnd
 disk: GSP1RMCULFRER_EN
 label: _DVD
 duid: 
 flags:
 bytes/sector: 512

I'm pretty sure that DVD's don't come with a disk sector size of 512
bytes. So trying to access it with 512 byte sectors could be one
problem. You can play with the vnconfig '-t' option and add an
appropriate entry to /etc/disktab that specifies the more likely
sector size of 2048 bytes. Or you can burn the .iso to a physical
device.

If you burn it to a physical device, what does disklabel show?

 Ken

 sectors/track: 100
 tracks/cylinder: 1
 sectors/cylinder: 100
 cylinders: 50087
 total sectors: 5008744
 boundstart: 0
 boundend: 5008744
 drivedata: 0

 16 partitions:
 #size   offset  fstype [fsize bsize  cpg]
   a:  50087440 ISO9660
   c:  50087440 ISO9660
 # mount_cd9660 /dev/vnd0a /mnt
 # ls -la /mnt
 total 4
 dr-xr-xr-x   1 root  wheel  112 Apr 12  2011 .
 drwxr-xr-x  14 root  wheel  512 Dec 31 18:44 ..
 -r-xr-xr-x   1 root  wheel  135 Apr 12  2011 README.TXT
 # cat /mnt/README.TXT
 This disc contains a UDF file system and requires an operating system
 that supports the ISO-13346 UDF file system specification.
 # umount /mnt
 # mount_udf /dev/vnd0a /mnt
 FSD does not lie within the partition!
 mount_udf: mount: Invalid argument
 #

 So... how do I access the UDF file system on such a DVD ISO image?

 For reference, here's what I get using Linux (booting Ubuntu from a
 USB stick on the same computer):

 me@pc:~$ sudo mount -t ufs -o ufstype=44bsd,ro /dev/sda8 /mnt
 me@pc:~$ sudo mount -o loop /mnt/meunier/X17-59463.iso /mnt2
 me@pc:~$ mount | egrep iso
 /mnt/meunier/X17-59463.iso on /mnt2 type udf (ro)
 me@pc:~$ ls /mnt2
 autorun.inf  boot  bootmgr  efi  setup.exe  sources  support  upgrade
 me@pc:~$

 Is there any way to get the same thing on OpenBSD, or am I out of
 luck?

 Thanks,

 Philippe



Re: DVD ISO and mount_udf: FSD does not lie within the partition!

2014-02-18 Thread Philippe Meunier
Kenneth Westerback wrote:
I'm pretty sure that DVD's don't come with a disk sector size of 512
bytes. So trying to access it with 512 byte sectors could be one
problem. You can play with the vnconfig '-t' option and add an
appropriate entry to /etc/disktab that specifies the more likely
sector size of 2048 bytes.

Alas:

# egrep mydvd /etc/disktab 
mydvd|My DVD:se#2048:ns#100:nt#1
# vnconfig -t mydvd vnd0 X17-59463.iso  
# disklabel vnd0
# /dev/rvnd0c:
type: vnd
disk: GSP1RMCULFRER_EN
label: _DVD
duid: 
flags:
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 12521
total sectors: 1252186
boundstart: 0
boundend: 1252186
drivedata: 0 

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:  12521860 ISO9660   
  c:  12521860 ISO9660   
# mount_cd9660 /dev/vnd0a /mnt  
# ls -la /mnt
total 4
dr-xr-xr-x   1 root  wheel  112 Apr 12  2011 .
drwxr-xr-x  14 root  wheel  512 Dec 31 18:44 ..
-r-xr-xr-x   1 root  wheel  135 Apr 12  2011 README.TXT
# umount /mnt   
# mount_udf /dev/vnd0a /mnt 
FSD does not lie within the partition!
mount_udf: mount: Invalid argument
# 

Or you can burn the .iso to a physical device.
If you burn it to a physical device, what does disklabel show?

Unfortunately the two computers I have easy access to can't write
DVDs, which is why I was playing with all that stuff in the first
place.  One computer is my OpenBSD laptop that can only read DVDs, not
write them, and the other one is an old Windows XP PC that belongs to
my employer and is limited to CDs.  I was trying to upgrade the
CD-only PC from Windows XP to Windows 7, but Windows 7 is only
available as a physical DVD or a DVD ISO, so I was trying to use my
OpenBSD laptop to create a bootable Windows 7 installation USB flash
drive from the DVD...

Anyway, Dmitrij D. Czarkoff's suggestion of using 7-Zip seems to work
with the example X17-59463.iso file I downloaded from the internet:

$ 7z l X17-59463.iso

7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=C,Utf16=off,HugeFiles=on,1 CPU)

Listing archive: X17-59463.iso

--
Path = X17-59463.iso
Type = Udf
Comment = GSP1RMCULFRER_EN_DVD
Cluster Size = 2048
Created = 2011-04-12 12:47:03 

   Date  TimeAttr Size   Compressed  Name
--- -    
2011-04-12 12:47:03 .   43 2048  autorun.inf
2011-04-12 12:47:03 Dboot
2011-04-12 12:47:03 .   262144   262144  boot/bcd
[...]
2011-04-12 12:47:03 .7372873728  
upgrade/netfx/netfxupdate.exe
--- -    
2582383753   2583164928  877 files, 200 folders
$

I have another ISO (taken straight from a physical Windows 7 DVD using
dd(1) on my OpenBSD laptop) for which that does not seem to work
though:

$ 7z l cdn1.iso

7-Zip 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
p7zip Version 9.20 (locale=C,Utf16=off,HugeFiles=on,1 CPU)

Listing archive: cdn1.iso

--
Path = cdn1.iso
Type = Iso
Comment =
Volume: GSP1RMCENVOL_EN_DVD
VolumeSet: GSP1RMCENVOL_EN_DVD
Publisher: MICROSOFT CORPORATION
Preparer: MICROSOFT CORPORATION, ONE MICROSOFT WAY, REDMOND WA 98052, (425) 
882-8080
Application: CDIMAGE 2.54 (01/01/2005 TM)
Created = 2011-04-12 11:09:45

   Date  TimeAttr Size   Compressed  Name
--- -    
2011-04-12 04:09:45 .  135  135  README.TXT
. 4096 4096  
[BOOT]/Bootable_NoEmulation.img
--- -    
  4231 4231  2 files, 0 folders
$

When I use mount_udf, this cdn1.iso ISO has the exact same FSD does
not lie within the partition! problem as the example X17-59463.iso
file that I got from the web, but in this case of cdn1.iso it looks
like even when using 7z I can only get the files that I could already
get when using mount_cd9660.  Which is... strange.

Anyway, for the archives, here are some other things that I tried:

- using dd(1) on my OpenBSD laptop to copy the 2.5GB cdn1.iso directly
  to a 4GB USB flash drive.  When I tested it, my laptop computer
  would not boot from that USB flash drive though, even though it
  could boot from the physical Windows 7 DVD from which cdn1.iso was
  copied in the first place using the same dd(1).  Don't ask me why
  this didn't work, I have no clue...

- booting Ubuntu on my laptop using a USB flash drive, then cp(1) (not
  dd) the content of the UDF file system of the physical Windows 7 DVD