1855799 Members
2518 Online
104103 Solutions
New Discussion

Re: Mount DVD-ROM

 
SOLVED
Go to solution
pc123_1
Frequent Advisor

Mount DVD-ROM

Hello.
I've connected DVD-ROM to SCSI port, and tried to mount it using

mount -F cdfs /dev/dsk/c2t1d0
/mnt/dvdrom

However I get Device Busy error. What have I done incorrectly? I've determined dvd params by

ioscan -fun -C disk.

15 REPLIES 15
Ian Dennison_1
Honored Contributor

Re: Mount DVD-ROM

Last time I got the message 'Device Busy' I had put the CD in the wrong drive on the wrong server.

Worth a check? Perhaps trace the cables from the Server?

Share and Enjoy! Ian
Building a dumber user
PIYUSH D. PATEL
Honored Contributor

Re: Mount DVD-ROM

Hi,

try to do fuser -u to see if someone has done a cd to that directory.

Or else check the CD media.

Piyush
PIYUSH D. PATEL
Honored Contributor

Re: Mount DVD-ROM

Hi,

fuser -c /dev/dsk/c2t1d0

First check that another process (automounter?) is not using the drive?

Are you in the actual directory /mnt/dvdrom

Execute this command from root /

Piyush

MANOJ SRIVASTAVA
Honored Contributor

Re: Mount DVD-ROM

Hi PC123

If the device is fine and the mnt point is not busy then you should not have any problems. Check whether there is a CD in the drive sometimes if you have inserted it the drive throws it out ( dust etc ) reinsert it and then try mounting it on some other direcotry like /test.


Manoj Srivastava



pc123_1
Frequent Advisor

Re: Mount DVD-ROM

fuser showed no users.
i'm in the root.
there's no disc in the dvd.

still gives /dev/dsk/c2t1d0 busy
Pete Randall
Outstanding Contributor

Re: Mount DVD-ROM

You need to have a disk in the drive in order to mount it.

Pete

Pete
PIYUSH D. PATEL
Honored Contributor

Re: Mount DVD-ROM

Hi,

You need to have a CD media inside the DVD drive to mount it.

Piyush
pc123_1
Frequent Advisor

Re: Mount DVD-ROM

Sorry...
The error message confused me. Busy made me think something was wrond with cd.
Thank you very much for help.

Could you explain me how to use automounter?
Pete Randall
Outstanding Contributor

Re: Mount DVD-ROM

Automounter (or the newer autofs) is used to automatically mount NFS file systems between servers. You need to set up /etc/auto_master and then configure /etc/rc.config.d/nfsconf to enable it.

Do a man on automount and/or check out the HP manual "Installing and Administering NFS Services".

Good luck,
Pete

Pete
S.K. Chan
Honored Contributor

Re: Mount DVD-ROM

If you don't mind I would suggest you read this doc (Installing and Administering NFS). Under the section "Configuring and Administering NFS" it talks about Automounter in detail.
http://docs.hp.com/hpux/onlinedocs/B1031-90000/B1031-90000.html
PIYUSH D. PATEL
Honored Contributor

Re: Mount DVD-ROM

Hi,

You need to setup the NFS services in your server first. Then you need to enable the automounter services. Then you have to export this cdrom filesystem from the server. Put the entry in /etc/exports file. Then use exportfs -a command. Setup the /etc/rc.config.d/netconf

I think that you should go thro the online manuals for setting up the Automounter and NFS services first if not running on your systems.

Automounter will always mount the cd or any filesytem whenever it is necessary. /etc/auto_master

Piyush
pc123_1
Frequent Advisor

Re: Mount DVD-ROM

Thanks a lot for this links.
But before I get to these depths, I have to do manually.
I cannot unmount the dvd-rom, it gives the error:

sh: unmount: not found.

Is there a new command for unmounting?
Tim D Fulford
Honored Contributor
Solution

Re: Mount DVD-ROM

Automounter is an NFS thing & nothing to do with DVD.....

whirl wind reply

/etc/auto_master defines which filesystems are auto mounted & which files controll them, say /share with auto_share and /home with auto_home, so

# cat /etc/auto_master
/net -hosts -nosuid,soft
/share /etc/auto_share
/home /etc/auto_home

1st line required

2nd line /share/ mounts are dealt with by the entries in /etc/auto_share

3rd line /home/ mounts are dealt with by the entries in /etc/auto_home

# cat /etc/auto_home
informix :/opt/&
joe :/home/joe
* :/export/home/&

1st line informix will mount on this machine at /home/informix, from which exported it from /opt/informix (& defaults to fill in user)

2nd line joe will mount on this machine at /home/joe, from which exported it from /home/joe (could have used /home/&)

3rd line ALL users on who exist in /export/home/ will mount on this machine at /home. This shows the * functionality.

There is LOADS more to it but this is the basics of laying out an auto_xxxx file. You can edit the auto_home or auto_share file without requiring to restart any automounting processes. But if you edit the auto_master you will need to stop the automounter. (hence unmount the users/fs). It is therefore a good idea to plan how you wish to mount things to get the correct auto_master & then you can play with the auto_xxx files without too much concern.

Tim
-
Tim D Fulford
Honored Contributor

Re: Mount DVD-ROM

umount

Tim
-
pc123_1
Frequent Advisor

Re: Mount DVD-ROM

Thank you everyone for all answers.