LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-23-2004, 10:18 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,688

Rep: Reputation: 55
How to config CDRom to read udf files


Hi folks,

FreeBSD 5.2

My CDRom could not read udf files burned with DirectCD on Windows. I made following tests;

cat /etc/fstab
Code:
# Device        Mountpoint                      FStype          Options
...
/dev/acd0       /usr/home/user/cdrom         cd9660,udf      ro,noauto
....
$ mount_udf /dev/acd0 /usr/home/user/cdrom
mount_udf: /dev/acd0: Invalid argument
$ mount -t udf /dev/acd0 /usr/home/user/cdrom
udf: /dev/acd0: Invalid argument

cat /etc/fstab
Code:
# Device        Mountpoint                      FStype          Options
...
/dev/acd0       /usr/home/user/cdrom         cd9660      ro,noauto
....
$ mount -t udf /dev/acd0 /usr/home/user/cdrom
udf: /dev/acd0: Operation not permitted
$ mount_udf /dev/acd0 /usr/home/user/cdrom
mount_udf: /dev/acd0: Operation not permitted
$ mount /dev/acd0 /usr/home/user/cdrom
ls /usr/home/user/cdrom
autorun.inf udfrchk.exe udfrinst.zl

cat /etc/fstab
Code:
# Device        Mountpoint                      FStype          Options
...
/dev/acd0       /cdrom                          udf             ro,noauto
/dev/acd0       /usr/home/satimis/cdrom         udf             ro,noauto
....
# mount -t udf /dev/acd0 /cdrom
udf: /dev/acd0: Invalid argument
# mount_udf /dev/acd0 /cdrom
mount_udf: /dev/acd0: Invalid argument
# mount /dev/acd0 /cdrom
mount: /dev/acd0: Input/output error

$ mount_udf /dev/acd0 /usr/home/user/cdrom
mount_udf: /dev/acd0: Invalid argument
$ mount -t udf /dev/acd0 /usr/home/user/cdrom
udf: /dev/acd0: Invalid argument
$ mount /dev/acd0 /usr/home/user/cdrom
mount: /dev/acd0: Permission denied

All failed.

$ kldstat -v | grep udf
10 1 0xc43e7000 6000 udf.ko
333 udf

$ ls /boot/kernel/ | grep udf
udf.ko
udf_iconv.ko

the module seems there.

Kindly advise how to fix it.

TIA

B.R.
satimis
 
Old 04-24-2004, 12:36 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Ignore the fstab for a while and just do a mount -t udf /dev/acd0 /usr/home/user/cdrom (as root) or you can substitue whatever you want for the mount point. Make sure that the directory /usr/home/user/cdrom exists if you're going to use the above line.

Last edited by adz; 04-24-2004 at 12:38 AM.
 
Old 04-24-2004, 07:01 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,688

Original Poster
Rep: Reputation: 55
Quote:
Originally posted by adz
Ignore the fstab for a while and just do a mount -t udf /dev/acd0 /usr/home/user/cdrom (as root) or you can substitue whatever you want for the mount point. Make sure that the directory /usr/home/user/cdrom exists if you're going to use the above line.
Hi

Tks for your advice.

Sorry still failed

# mount -t udf /dev/acd0 /usr/home/user/cdrom
udf: /dev/acd0: Invalid argument
# mount_udf /dev/acd0 /usr/home/user/cdrom
mount_udf: /dev/acd0: Invalid argument

Remark:
/etc/fstab
Code:
....
/dev/acd0       /usr/home/user/cdrom         cd9660          ro,noauto      00
.....
B.R.
satimis
 
Old 04-24-2004, 07:25 AM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Just a quick note. Your remark about the fstab is unnecessary. That file is ignored when you specify options on the command line. If you just type mount <mount point> then it looks up fstab. If you specify both device and mount point (and any options) then fstab gets thrown out the window.

I'll have to boot into FreeBSD again. I seem to recall that it's mount app is somewhat more limited than linux's.
 
Old 04-24-2004, 06:51 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try this, and post errors

mount /dev/acd0 /mnt/cdrom
 
Old 04-26-2004, 06:09 AM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,688

Original Poster
Rep: Reputation: 55
Quote:
Originally posted by DavidPhillips
try this, and post errors

mount /dev/acd0 /mnt/cdrom
Moderator,

Tried as advised.

$ mount /dev/acd0 /mnt/cdrom
mount: /mnt/cdrom: No such file or directory
$ su
Password:
# mount /dev/acd0 /mnt/cdrom
mount: /mnt/cdrom: No such file or directory

# exit
exit
$ su -
Password:
# mount /dev/acd0 /mnt/cdrom
mount: /mnt/cdrom: No such file or directory
# mount /dev/acd0 /cdrom
mount: /dev/acd0: Input/output error

B.R.
satimis
 
Old 04-26-2004, 06:57 AM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
I can see that there is no /mnt/cdrom directory but is there a /cdrom? Just a quick note, mount will not create a mount point. That directory has to exist already.
 
Old 04-26-2004, 07:56 AM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,688

Original Poster
Rep: Reputation: 55
Quote:
Originally posted by adz
I can see that there is no /mnt/cdrom directory but is there a /cdrom? Just a quick note, mount will not create a mount point. That directory has to exist already.
Hi adz,

Tks for your response.

That is FreeBSD 5.2 way. The directory /cdrom was created by OS automatically at installation. It works for other CDs reading files burnt on them except udf files burnt with DirectCD on Windows.

B.R.
satimis
 
Old 04-27-2004, 02:26 PM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
can you mount normal cdroms?
 
Old 04-27-2004, 07:23 PM   #10
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Or other udf CDs - NOT created by DirectCD?
 
Old 04-27-2004, 08:35 PM   #11
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,688

Original Poster
Rep: Reputation: 55
Hi Moderator and adz,

I can mount and read normal CDs not created with DirectCD. Besides I have no udf files other than those created with the latter.

B.R.
satimis
 
Old 04-28-2004, 07:07 AM   #12
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Well all I can think of is that there's no kernel support for it... Unusual, though.
 
Old 04-28-2004, 09:00 AM   #13
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,688

Original Poster
Rep: Reputation: 55
Problem solve

Quote:
Originally posted by adz
Well all I can think of is that there's no kernel support for it... Unusual, though.
Hi adz and DavidPhillips

Problem solved. CDRom can't mount/read udf files but CDWriter can. udf module already loaded.

# kldstat -v | grep udf
Code:
10    1 0xc437e000 6000     udf.ko
                333 udf
# ls /boot/kernel/ | grep udf
udf.ko
udf_iconv.ko

# mount -t udf /dev/acd1 /cdrom1
No complaint

# ls /cdrom1
OK. udf files displayed

I did not recognize having problem wiith CDRom. I have another mobile HD on this PC running Gentoo 1.4. CDRom can mount and read udf files created with DirectCD on Windows. It looks to me a little bid funny.

Anyway thanks again for your advice.

B.R.
satimis
 
Old 06-24-2004, 12:37 PM   #14
Cikotic
Member
 
Registered: Jun 2004
Location: Vancouver
Distribution: Slackware Linux 10, Fedora Core 2
Posts: 37

Rep: Reputation: 15
CD won't mount!!!

Hi all,
I just joined this forum because of this one thread that I'm replying to. I have a problem with my cdrom in FreeBSD 5.1 that is so much like satimis' problem that starting a new thread would be a waste. A couple of days ago, I decided to see if a particular package was available on my FreeBSD CDs so that I don't have to download them. I put the CD in but sysinstall couldn't read it. I tried mounting it myself using
Code:
#mount /dev/acd0 /mnt/cdrom
and
Code:
#mount /dev/acd0 /cdrom
. Each time the output was
Code:
mount: /dev/acd0: Input/output error
.

I look in the mount man pages and tried all sorts of variations:
mount_msdosfs, mount_cd9660, etc. all of which had the exact same i/o error.
Just when I had given up hope and was about post a message on this forum, I gave mount_cd9660 another shot and it worked. I didn't know how or why and, then, I didn't care. I was just happy that it did work. Today, I tried mounting the same CD with the same command (I didn't even retype the command: I just got the old one from sh's history) and it didn't work. Take a wild guess what the message was:
Code:
mount_cd9660: /dev/acd0: Input/output error
#
I'm confused. I don't understand this whole mount thing in UNIX. With RH Linux, mount almost always works with no problem.
When I typed in the error message in google, I found that there are many many people who have had the exact same problem with different versions of FreeBSD, but I never found a good solution.

I appreciate some help,
Thanx for your time,
Cikotic
 
Old 06-24-2004, 10:02 PM   #15
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,688

Original Poster
Rep: Reputation: 55
Re: CD won't mount!!!

HI Cikotic,

I am now answering your posting not from a BSD box

I found the trick. I mounted the CDRW on a CDwriter. It worked for me without problem.

I have not continued to find out the cause of problem on mounting CDRW on CDRom

Have you had a CDWriter on you PC. Please try it.

B.R.
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How does linux read config files? Thaidog Linux - Newbie 13 05-31-2004 12:14 PM
Standard way to read config files? nmoog Programming 4 01-19-2004 11:17 AM
can't read files from /mnt/cdrom, doesn't look like its supermount problem... sirpelidor Linux - Software 1 11-21-2003 03:13 PM
cdrom does not read all files aeruzcar Linux - Software 5 09-25-2003 10:21 AM
How do you read a UDF formated CDROM? calimer Linux - Newbie 4 12-29-2002 11:37 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration