LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-11-2007, 03:12 PM   #1
southsibling
Member
 
Registered: Jun 2003
Location: Harford County, Maryland
Distribution: Mandrake 10.1
Posts: 162

Rep: Reputation: 30
burning data to cd-rw


Seems too simple to need an explanation, but I just can't seem to get it. I want to copy my .vimrc file from my Home/Me directory onto a cd-rw to transport to another computer. Both are loaded with my Mandrakelinux 10.1 OS. (I can't do it on 'X', using Kb3, because that system doesn't recognize the 'hidden' files.)

On the command line, I've typed:

'cp .vimrc /mnt/cdrom

I get back:

cp: cannot create regular file `/mnt/cdrom/.vimrc': Read-only file system

What is it that I don't get?
 
Old 08-11-2007, 03:20 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"cp: cannot create regular file `/mnt/cdrom/.vimrc': Read-only file system"

You cannot write to a mounted cdrom file system. If you want to write to CD you have to write the entire file system to an unmounted CD. Use mkisofs to create the file system and use cdrecord to write the file system to CD-RW.

------------------
Steve Stites
 
Old 08-11-2007, 04:10 PM   #3
southsibling
Member
 
Registered: Jun 2003
Location: Harford County, Maryland
Distribution: Mandrake 10.1
Posts: 162

Original Poster
Rep: Reputation: 30
a burning cd issue...

Quote:
Originally Posted by jailbait
"cp: cannot create regular file `/mnt/cdrom/.vimrc': Read-only file system"

You cannot write to a mounted cdrom file system. If you want to write to CD you have to write the entire file system to an unmounted CD. Use mkisofs to create the file system and use cdrecord to write the file system to CD-RW.

------------------
Steve Stites
This is what I tried, and what I got for it:

[Sat Aug 11::lowell:~]:$ mkisofs VIMRCVIM.VRC|cdrecord dev=/mnt/cdrom
cdrecord: No tracks specified. Need at least one.
Usage: cdrecord [options] track1...trackn

Use cdrecord -help
to get a list of valid options.

Use cdrecord blank=help
to get a list of valid blanking options.

Use cdrecord dev=b,t,l driveropts=help -checkdrive
to get a list of drive specific options.

Use cdrecord dev=help
to get a list of possible SCSI transport specifiers.

Specifically, I made a copy of my .vimrc file that I called 'VIMRCVIM.VRC to agree with the 8x3 rule (all caps) and then invoked that filename with mkisofs and piped it thru 'cdrecord'

How far off the mark am I so far?
 
Old 08-11-2007, 05:04 PM   #4
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
I used to have a script for burning files into a CD without having to mess with mkisofs and such.

Code:
#!/bin/sh

export CDR_DEVICE=/dev/hdc
export CDR_SPEED=52
export CDR_FIFOSIZE=51m

if [ $# -eq 0 ]
then
  echo -e "Use: `basename $0` [-s] <path to burn>\n"
  exit 1
fi

if [ "$1" = "-o" ]; then
  OVER="-overburn -dao"
  shift
fi

if [ "$1" = "-d" ]; then
  DUMMY="-dummy"
  shift
fi

[ "$1" != "-" ] && SIZE=`mkisofs -f -J -q -print-size "$@"`

echo Burning with device $CDR_DEVICE a ${CDR_SPEED}X

if [ "$SIZE" ] ; then
  mkisofs -quiet -f -J "$@" | cdrecord dev=/dev/hdc -tao speed=52 driveropts=burnfree -v $DUMMY $OVER tsize="$SIZE"s -
else
  cdrecord dev=/dev/hdc -tao speed=52 driveropts=burnfree -v -
fi

exit 0
Please change all the devices according to your specs.

Script done by Javi Polo (I'm merely pasting it here)

With this script, you just type "burn <file(s) to burn>" and you're ready to go (assuming you named burn that little script)

Last edited by Hammett; 08-11-2007 at 05:06 PM.
 
Old 08-11-2007, 05:15 PM   #5
Hitboxx
Senior Member
 
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 68
Unhide the file by removing the '.' before the file, burn in K3b and then rename again at the destination computer.
 
Old 08-11-2007, 07:09 PM   #6
southsibling
Member
 
Registered: Jun 2003
Location: Harford County, Maryland
Distribution: Mandrake 10.1
Posts: 162

Original Poster
Rep: Reputation: 30
ahem...oh, ok

Quote:
Originally Posted by shrikant.odugoudar
Unhide the file by removing the '.' before the file, burn in K3b and then rename again at the destination computer.
Perhaps you sensed-at this end-a big "Duh!" when you offered your solution?! Perfection...is really the application of elegant simplicity, isn't it?*

You get the prize for this one!

Thanks to all for the help. I did manage, at least, to successfully create a '.iso' file; haven't been able to burn it to CD yet, but I'm gonna keep plugging away at that one. Lotta new stuff learned here.

*(Oh, yea. I spent probably, ohhh, 30 seconds putting the whole thing together, including loading it onto the other computer and 'sourcing' it.)
 
  


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
burning data cds? radiodee1 Debian 13 11-12-2006 05:02 PM
burning data in rescue mode aquaboot Ubuntu 1 09-24-2006 11:59 AM
Need a good data cd burning software Viper168 Linux - Software 1 10-27-2003 04:10 PM
cdrdao burning data illtbagu Linux - Newbie 0 03-11-2003 11:13 PM
Burning a data CD? Crashed_Again Linux - Newbie 7 02-15-2003 08:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:27 PM.

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