LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-30-2020, 07:50 AM   #1
G65434-2
LQ Newbie
 
Registered: Jul 2020
Posts: 4

Rep: Reputation: Disabled
Question apt-cdrom add, multiple drives at once


I'm using VirtualBox and need to perform a complete offline installation of older Debian versions for research, I also need to install several older packages.
Currently testing with Debian 9.0.0 . I use the Dual-layer BlueRay versions (two iso files).

Using "apt-cdrom add" works nicely with one DVD drive.
VirtualBox allows me to attache multiple drives.
It would be nice, for convenience, to be able to mount all the installation BR/DVDs at the same time.

apt-cdrom seems to require switching DVDs.

Is there a way making apt-cdrom mount multiple drives at once?,
so I can install packages without switching DVDs?

I tried adding multiple drives but apt-cdrom only searches the first drive.

"apt-cdrom" does not give me an option to specify devices like /dev/sr0 or /dev/sr1 .


Any help is greatly appreciated.

Last edited by G65434-2; 07-30-2020 at 07:53 AM.
 
Old 07-30-2020, 12:28 PM   #2
debdragon
LQ Newbie
 
Registered: Jul 2020
Posts: 1

Rep: Reputation: Disabled
What host system are you using?

Do you have multiple cd/dvd drives? If not you may need to copy data from dvd so you can use one dvd and have data available from the other at the same time (in the copied directory)

It has been awhile since i used virtualbox - maybe someone can advise how to share host resources/directories with virtualbox

on linux host:

assuming /dev/sdX is whatever your system mount options mount the dvd as (i.e. sda sdc)
# sudo mkdir /mnt/dvd1
# sudo dd if=/dev/sdX of=/mnt/dvd1/dvd1.iso
Then attach /mnt/dvd1/dvd1.iso to virtual box similar to how you attached cd/dvd drive
or
# sudo mkdir /mnt/dvdmnt
# sudo mkdir /mnt/dvd1
# sudo mount /dev/sdX /mnt/dvdmnt
# sudo cp -R /mnt/dvdmnt /mnt/dvd1
# sudo umount /mnt/dvdmnt
remove cd/dvd and you should have all contents of dvd within /mnt/dvd1

Attach /mnt/dvd1 as a shared folder with virtualbox and when asked for disk1 point to /mnt/dvd1

Last edited by debdragon; 07-30-2020 at 12:35 PM. Reason: clarify two options
 
Old 08-19-2020, 06:11 AM   #3
G65434-2
LQ Newbie
 
Registered: Jul 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks, I will try that!
 
  


Reply



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
LXer: Popsicle - Create Multiple Bootable USB Drives At Once LXer Syndicated Linux News 0 01-08-2020 03:12 PM
Smartmontools - testing multiple drives at once & saving results to text file cilbuper Linux - Software 2 08-21-2018 01:49 AM
Add users to Multiple Computers at Once? DiskChris Linux - General 3 12-16-2012 09:39 AM
[SOLVED] Difference between add-apt-repository and apt-add-repository Kenny_Strawn Ubuntu 3 12-22-2010 07:50 PM
apt-proxy and cron-apt - download once for the whole LAN Abject Debian 1 06-20-2004 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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