LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-27-2003, 11:03 AM   #1
michaelf101
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
Question cp -R /mnt/cdrom/* not coping the current CD


I'm staging/coping a large install of about 30 CDs.

At first I was just doing a "cp -R /mnt/cdrom/* /stage/diskX

but even after swapping out the cd to the next cd, the copy would copy the CD that was in the drive.

Looks like it's being buffered and doesn't even know the CD got switched. How can I force it to see the switch? And still use the "cp" command. Any other ksh command is OK too.

It's a Redhat Advance Server 2.1 version.
Thx Mike
 
Old 07-27-2003, 11:18 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Have you tried piping it over with tar?

As root,

mount /mnt/cdrom
cd /mnt/cdrom
tar cf - . | (cd /stage/diskX && tar xBf -)
cd
eject
 
Old 07-27-2003, 11:21 AM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,387

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
The first CD is not being umounted before the second CD is copied.
Use the umount command before removing each CD.

If you are using the modern inconvenience called automount then you will have to let each CD sit idle long enough for automount to umount the CD before you remove it.
 
Old 07-27-2003, 11:21 AM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Unmount the cd and then mount the new one?
 
  


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
permission for /mnt/cdrom bruse Mandriva 4 03-25-2005 11:17 AM
/etc/fstab - /mnt/cdrom d1l2w3 Linux - Hardware 10 01-08-2005 08:33 PM
i changed /mnt/cdrom to /mnt/CD-RW - now i've got a problem?!?! spyghost Linux - Software 7 09-30-2003 02:06 PM
/mnt/cdrom & /mnt/scd0 locks up machine RIgimp75 Mandriva 7 09-01-2003 09:32 PM
CD problems: /mnt/cdrom and /dev/cdrom okok Linux - Newbie 5 04-09-2003 10:11 AM

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

All times are GMT -5. The time now is 04:15 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