DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st October 2009
ablecode ablecode is offline
New User
 
Join Date: Oct 2009
Posts: 4
Thanked 0 Times in 0 Posts
Question How do you read an IRIX cd using EFS

I am trying to read an IRIX cd that is in the EFS format using NetBSD 5.0.1

I added support for the EFS file system in the kernel and checked to see that pseudo-device vnd was in the conf file as well. I then built the kernel and installed it.

I issued the command
Quote:
mount -t efs /dev/cd0a /cdrom
and it returned
Quote:
Superblock read failed
I thought this might be because the cd uses 512 byte blocks so I used dd to make an image of the disk. I then tried
Quote:
vnconfig vnd0 /temp/test.iso
which does not return an error. Then I did
Quote:
mount -t efs /dev/vnd0a /mnt
and it returned
Quote:
efs: invalid superblock: sb_magic invalid
Is there something I am missing, or is it impossible to read an IRIX cd in EFS format using NetBSD? If so, I finally have to switch to Linux.
Reply With Quote
  #2   (View Single Post)  
Old 1st October 2009
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 371
Thanked 13 Times in 13 Posts
Default

Did you trying mounting it as cd9660?
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #3   (View Single Post)  
Old 1st October 2009
ablecode ablecode is offline
New User
 
Join Date: Oct 2009
Posts: 4
Thanked 0 Times in 0 Posts
Default

-t cd9660 was the first thing I tried. The I noticed the cd itself is stamped "Format: EFS"
Reply With Quote
  #4   (View Single Post)  
Old 1st October 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,434
Thanked 214 Times in 189 Posts
Default

Any errors during dd(1) replication? I've found readcd (part of sysutils/cdrtools) more useful and more usable for copying from optical discs to hard drive.
Reply With Quote
  #5   (View Single Post)  
Old 1st October 2009
ablecode ablecode is offline
New User
 
Join Date: Oct 2009
Posts: 4
Thanked 0 Times in 0 Posts
Default

dd did not report any errors, but I will give readcd a go as soon as I get back.
Reply With Quote
  #6   (View Single Post)  
Old 1st October 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,434
Thanked 214 Times in 189 Posts
Default

It -probably- will create an identical .iso, but ... just like chicken soup for a cold, it couldn't hurt.
Reply With Quote
  #7   (View Single Post)  
Old 1st October 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 534
Thanked 14 Times in 13 Posts
Default

Another possible idea is to try /dev/cd0d rather than /dev/cd0a. I can't check this right now, but I do have it in my /etc/fstab (for cd9660), so it might work.
Reply With Quote
  #8   (View Single Post)  
Old 1st October 2009
ablecode ablecode is offline
New User
 
Join Date: Oct 2009
Posts: 4
Thanked 0 Times in 0 Posts
Default

I made an image of the drive using readcd

I loaded into a pseudo-device with
Quote:
vnconfig vnd0 test2.raw
I then tried to mount the image using
Quote:
mount -t efs /dev/vnd0a /mnt
and now I get
Quote:
mount_efs: /dev/vnd0a on /mnt: Input/output error
I am starting to think it is not possible to read IRIX EFS formatted cds under NetBSD, and I will have to use Linux
Reply With Quote
  #9   (View Single Post)  
Old 26th May 2010
mindoverflow mindoverflow is offline
New User
 
Join Date: May 2010
Posts: 1
Thanked 0 Times in 0 Posts
Default

Try:

Code:
cat /boot/config-2.6.24-16-generic | grep CONFIG_EFS_FS
if it says:
Code:
CONFIG_EFS_FS=m
and

Code:
cat /boot/config-2.6.24-16-generic | grep CONFIG_SGI_PARTITION
says:
Code:
CONFIG_SGI_PARTITION=y
Then your system is able to mount efs disks. Use the following:

Code:
mount -t efs -o loop /dev/cdrom /cdrom
This works perfectly on Ubuntu. Change the /dev/cdrom to the appropriate according to your system.

Good luck, tschüss
Reply With Quote
Old 26th May 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,051
Thanked 198 Times in 156 Posts
Default

What ho and welcome!

Just FYI, you are replying to a thread from the 2nd October 2009

Also, your instructions are for Linux, not NetBSD. This is a very different operating system. Your instructions will not work for NetBSD.
__________________
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
fseek() and read() problem IdOp Programming 14 15th April 2009 04:13 AM
I've read the installation guide...but! wubrgamer FreeBSD General 5 20th September 2008 02:37 PM
when and by what is .profile read? kasse FreeBSD General 8 11th September 2008 08:46 AM
Mark forum read Darwimy Feedback and Suggestions 1 10th June 2008 09:23 PM
DVD file read error louie FreeBSD General 7 30th May 2008 03:50 PM


All times are GMT. The time now is 09:03 AM.


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