DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th June 2010
dylanz dylanz is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default Mounting CDROM issue

I'm having a hard time mounting my cdrom drive. Here are some details:

Code:
> dmesg

cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVDRW GS23N, SB07> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 6
Code:
> disklabel cd0

type: ATAPI
disk: ATAPI CD-ROM
label: fictitious
flags:
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 25189
total sectors: 2518848
rpm: 300
interleave: 1
boundstart: 0
boundend: 2518848
drivedata: 0

16 partitions:
#            size     offset     fstype
   c:   2518848         0       unused
#
Code:
> mkdir /cdrom
> mount_cd9660 /dev/cd0a /cdrom
mount_cd9660: /dev/cd0a on /cdrom:  Device not configured
I've tried a bunch of combinations in /etc/fstab as well, but no luck thus far. This is on a base install of 4.7. I'd post the full dmesg, but I'm internet-less where the machine is.

Any suggestions welcome!
Reply With Quote
  #2   (View Single Post)  
Old 5th June 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by dylanz View Post
Code:
> mkdir /cdrom
> mount_cd9660 /dev/cd0a /cdrom
mount_cd9660: /dev/cd0a on /cdrom:  Device not configured
Do you have a disc in the drive?
Code:
> disklabel cd0

type: ATAPI
disk: ATAPI CD-ROM
label: fictitious
flags:
bytes/sector: 2048
sectors/track: 100
tracks/cylinder: 1
sectors/cylinder: 100
cylinders: 25189
total sectors: 2518848
rpm: 300
interleave: 1
boundstart: 0
boundend: 2518848
drivedata: 0

16 partitions:
#            size     offset     fstype
   c:   2518848         0       unused
#
My guess is that you are trying to mount a blank disc. This won't work as you can see in the disklabel(8) output, there is no partitions defined outside of "c".
Reply With Quote
  #3   (View Single Post)  
Old 5th June 2010
dylanz dylanz is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default

Interesting. Yes, there is a disk in the drive. This is actually on a new MacBookPro (Core i7, 17"), and the disk that's in the drive is the OSX Installation Disk 1. Have to hand this machine off to a colleague, and am a bit stuck at the moment as I can't even re-install OSX for them
Reply With Quote
  #4   (View Single Post)  
Old 5th June 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

It's possible that the filesystem is not ISO9660, I'm not sure what OS X uses on their installation CD's.

Can you try mount -t udf /dev/cd0c /cdrom, make sure /cdrom exists, UDF is common on DVD disks, and might work.

BTW, what could possibly be on the OS X disk that you need to access from OpenBSD? to reinstall OS X you would just boot from the DVD.
Reply With Quote
  #5   (View Single Post)  
Old 5th June 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
It's possible that the filesystem is not ISO9660...
Although I don't know definitively either, I have the suspicion BSDfan666 is correct.

Being slightly different from the standard is a deterrent from copying which would cut into sales. Commercial companies don't like sales figures to go down. This puts upper management into finger-pointing mode which has proven over time to be detrimental to the continued employment of those lower on the org chart.

Microsoft does the same thing.

As for mounting random CD's to see what was on them, trying a commercial install disc was perhaps the worst choice.
Reply With Quote
  #6   (View Single Post)  
Old 5th June 2010
dylanz dylanz is offline
Port Guard
 
Join Date: May 2008
Posts: 13
Thanked 0 Times in 0 Posts
Default

Code:
> mount_udf /dev/cd0c /cdrom
mount_udf: mount: Invalid argument

> mount_udf /dev/cd0a /cdrom
mount_udf: mount: Device not configured
Also, booting via the DVD isn't working either. There are a few ways to go about it, and they are all failing.

1. Holding down "Option" on boot.
This brings me to a screen which shows me a "Install DVD", which when I click, the CD drive starts churning and then dies down to a low hum. The screen just sits there with a big Apple logo on it :/

2. Holding down "Option + Command + Shift + Delete".
This starts spinning up the CD drive, then ends up going right back into OpenBSD.

3. Holding down the "C" key.
This also starts spinning up the CD drive, then ends up going right back into OpenBSD as well.

After searching around through all my disks, I found another install DVD, this one being the "Snow Leopard" install disk.

Code:
> disklabel cd0
.....
16 partitions:
#            size     offset     fstype
   a:   3794608         0      ISO9660
   c:   3794608         0       ISO9660     # /cdrom
#

> mount_cd9660 /dev/cd0c /cdrom
>
Success!

Code:
> ls /cdrom
Boot Camp  DVDCDSharing  Read Me.rtf  autorun.inf  setup.exe
:|

So it seems like it is indeed ISO9660, but ocicat is probably right when he brings up the fact that these are commercial install disks which probably come with commercial caveats of some sort.

Well... close but no cigar... albeit, educational! I need to do two things:

1. Find a way to get OSX back on this machine using a different method.
2. Find a laptop that comes packed with open hardware and drivers.

Any suggestions welcome again. Thanks to the both of you for your help thus far.
Reply With Quote
  #7   (View Single Post)  
Old 5th June 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,075
Thanked 198 Times in 156 Posts
Default

Don't want to derail the thread, but UDF is a "real standard" and not an "Apple standard".
UDF is an improvement over ISO9660 in many ways.

Most, if not all, DVD discs are actually UDF formatted with a ISO9660 compatibility layer.
UDF is the new ISO9660.

(I'm not saying ocicat doesn't have a point in general, but this is the wrong example )
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting an FS with no MBR/disklabel Carpetsmoker FreeBSD General 2 10th December 2009 01:22 PM
USB icon after mounting andycapp FreeBSD General 0 23rd October 2008 10:40 PM
mounting issues??? mt85m FreeBSD General 19 17th July 2008 07:58 PM
Mounting sniper007 FreeBSD General 7 2nd July 2008 06:50 AM
mounting UFS hirohitosan Other BSD and UNIX/UNIX-like 2 27th June 2008 02:40 PM


All times are GMT. The time now is 12:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick