- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Is the filesystem a CD-Rom?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 02:14 AM
10-19-2004 02:14 AM
Is the filesystem a CD-Rom?
I would like to know if a mounted filesystem is a CD-ROM or not, for HP-UX, Sun Solaris and AIX.
'diskinfo' seems to be fine for HP-UX but it takes time and do not exists on Solaris.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 02:26 AM
10-19-2004 02:26 AM
Re: Is the filesystem a CD-Rom?
diskinfo shouldn't take time. But you can use ioscan to determine if a particular device file is a CD-ROM device, eg: -
% ioscan -fnk /dev/dsk/c1t2d0
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 5 16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5401TA
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
The -k option means it's quick as it doesn't actually rescan, just reads the kernel.
Another (crude) option is to use the "mount" command to see if the filesystem is mounted "ro" (read only). This isn't foolproof though as normal filesystems can also be read-only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 02:26 AM
10-19-2004 02:26 AM
Re: Is the filesystem a CD-Rom?
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 02:31 AM
10-19-2004 02:31 AM
Re: Is the filesystem a CD-Rom?
if you have volmgt volume management running on your solaris box, cdrom's are auto mounted
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 02:39 AM
10-19-2004 02:39 AM
Re: Is the filesystem a CD-Rom?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 02:56 AM
10-19-2004 02:56 AM
Re: Is the filesystem a CD-Rom?
While there is a small chance that other filesystems may be 100% full, a CD is always full.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2004 03:21 AM
10-19-2004 03:21 AM
Re: Is the filesystem a CD-Rom?
# for fs in `bdf | awk '{ if ($1!="Filesystem") print $1 }'`
> do
> /usr/sbin/fstyp $fs
> done
It will give every file system informations, with that you can get cdrom whether mounted / or not.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 03:25 AM
10-20-2004 03:25 AM
Re: Is the filesystem a CD-Rom?
Sorry for not assigning enough points to Shiju and Muthukumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 08:43 PM
10-20-2004 08:43 PM
Re: Is the filesystem a CD-Rom?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2004 09:06 PM
10-20-2004 09:06 PM
Re: Is the filesystem a CD-Rom?
On AIX, you can use mount, the command will list all mounted filesystems and their type in the vfs column, CDs are cdrfs type :
# mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs2 Sep 22 17:46 rw,log=/dev/hd8
/dev/hd2 /usr jfs2 Sep 22 17:46 rw,log=/dev/hd8
/dev/hd9var /var jfs2 Sep 22 17:46 rw,log=/dev/hd8
/dev/hd3 /tmp jfs2 Sep 22 17:46 rw,log=/dev/hd8
/dev/hd1 /home jfs2 Sep 22 17:48 rw,log=/dev/hd8
/proc /proc procfs Sep 22 17:48 rw
/dev/hd10opt /opt jfs2 Sep 22 17:48 rw,log=/dev/hd8
/dev/cd0 /cdrom cdrfs Oct 21 11:07 ro