- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unable to mount a CDROM correctly
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
03-10-2002 01:56 AM
03-10-2002 01:56 AM
I am able to see all the files but not open them when using a PC.
When I mount the CD on my HPUX B132 workstation using pfs_mount I can see all the files but the filenames all have ;1 afterthem indicating I believe the drive is not correctly mounted.
In my pfs_fstab file I have tried hsfs iso9660 and hsfs all with the same result.
Are there any commands to interogate the CD format?
cheers guys.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2002 02:02 AM
03-10-2002 02:02 AM
Re: unable to mount a CDROM correctly
modify line 5 with your device and mount point. Have fun.
#!/usr/bin/perl -w
use strict;
my ($cmd, $dev, $mnt) = ("mount", "/dev/cd0", "/cdrom");
sub usage ()
{
print STDERR "Usage: $0 [
" mount CD-ROM on $mnt for ISO-9660 with RockRidge extens
ions\n";
exit;
} # usage
@ARGV == 1 and $ARGV[0] eq "-?" || $ARGV[0] =~ m/^-+help$/ and usage;
sub stop (@)
{
print STDERR @_;
exit 1;
} # stop
@ARGV and $mnt = shift;
$< == 0 or stop "You have to be root to be able to mount\n";
$mnt =~ m:^/: or stop "Mountpoint should be an absolute pathname\n";
-d $mnt or stop "Mountpoint $mnt is not available\n";
if ($^O eq "hpux") {
my $fst = "/etc/pfs_fstab";
$cmd = "pfs_mount";
unless (-s $fst) {
-b $dev or stop "Cannot mount $mnt on $dev, device does not exist\n";
open my $fs, "> /etc/pfs_fstab" or stop "Cannot create $fst: $!";
print $fs "$dev $mnt pfs-rrip xlat=unix 0 0\n";
close $fs;
}
unless (grep m/\bpfsd$/, `ps -e`) {
print STDERR "Starting PFS\n";
system "nohup /usr/sbin/pfs_mountd &";
system "nohup /usr/sbin/pfsd &";
sleep 1;
}
unless (grep m/\bpfsd$/, `ps -e`) {
print STDERR "PFS not running\n";
exit $!;
}
}
$0 =~ m/umount/ and $cmd =~ s/mount/umount/;
if (grep m/^pfs_u?mount:/, qx "$cmd $mnt") {
$cmd =~ s/^pfs_//;
system "$cmd $mnt";
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2002 02:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2002 06:39 AM
03-10-2002 06:39 AM
Re: unable to mount a CDROM correctly
well the mount option worked fine but I still have a problem I am unable to copy some of the files from the CD. when I usr the cp command
I receive this message cp: bad copy to /tmp/filename.jpg: read I/O error.
when I try to do the copy with the CD in a windows 2000 server it simply says the file is read only and no error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2002 07:05 AM
03-10-2002 07:05 AM
Re: unable to mount a CDROM correctly
this is very strage , mybe the write to the cd was not good .
i will advise you :
1. scan the disk for virus .
( i saw a few cases that there were virus on cd's for unix )
2. try to do a copy disk frew the cd-software that you have and mount it again .
read io error means that the cd is not good .
mybe you can copy all the files to a win-2000 folder and then burn it again .
hope that you can restore the files !!