|
|||
Mounting six CentOS iso images on OpenBSD
Mounting six CentOS iso images on OpenBSD
Table of contents
Mounting six CentOS iso images on OpenBSD 1 Introduction This year Father's day my daughter surprised me with an Akai ATT05U USB turntable. That way I could finally convert my collection of old vinyl records to a digital format. Because the OpenBSD Audacity port did not recognize the turntable I was forced to go the Linux way. I decided to try CentOS, which essentially is a repackaging of Red Hat Enterprise Linux. The complete CentOS install spans 6 CD's. To save time I decided to do a ftp install. The following tip from the CentOS installation manual even saved me from having to unpack the six iso images. Code:
You can save disk space by using the ISO images you have already copied to the server. To accomplish this, install Red Hat Enterprise Linux using ISO images without copying them into a single tree by loopback mounting them. For each ISO image: mkdir discX mount -o loop RHEL5-discX.iso discX Replace X with the corresponding disc number. Code:
# vnconfig svnd0 /tmp/diskimage # mount -t cd9660 /dev/svnd0c /mnt 1.1 Increasing the default nr of 4 vnd devices The simple sh script I wrote to automate the vnconfig and mount commands gave errors on the fifth and sixth iso images. The vnd(4) man page explains why: Code:
In order to compile in support for vnd devices, a line similar to the following must be present in the kernel configuration file: pseudo-device vnd 4 # vnode disk driver The count argument is how many vnds memory is allocated for at boot time. In this example, no more than 4 vnds may be configured. Code:
5.9 - Using config(8) to change your kernel The -e and -u options with config(8) can be extremely helpful and save wasted time compiling your kernel. The -e flag allows you to enter the UKC or User Kernel Config on a running system. These changes will then take place on your next reboot. Code:
root@hercules[~] config -fe /bsd OpenBSD 4.2 (GENERIC) #1179: Tue Aug 28 10:37:50 MDT 2007 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC Enter 'help' for information ukc> find vnd 286 vnd count 4 (pseudo device) ukc> change vnd 286 vnd count 4 (pseudo device) change [n] y count [4] ? 6 286 vnd changed 286 vnd count 6 (pseudo device) ukc> quit Saving modified kernel. root@hercules[~] Code:
root@hercules[~] config -e /bsd OpenBSD 4.2 (GENERIC) #1179: Tue Aug 28 10:37:50 MDT 2007 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC warning: no output file specified Enter 'help' for information ukc> find vnd 286 vnd count 6 (pseudo device) ukc> quit not forced root@hercules[~] 1.2 Creating vnd4 and vnd5 in '/dev' Code:
# cd /dev ; ./MAKEDEV vnd4 vnd5 # ls -l svnd[45]? brw-r----- 1 root operator 14, 2112 Nov 18 23:28 svnd4a brw-r----- 1 root operator 14, 2113 Nov 18 23:28 svnd4b brw-r----- 1 root operator 14, 2114 Nov 18 23:28 svnd4c brw-r----- 1 root operator 14, 2115 Nov 18 23:28 svnd4d brw-r----- 1 root operator 14, 2116 Nov 18 23:28 svnd4e brw-r----- 1 root operator 14, 2117 Nov 18 23:28 svnd4f brw-r----- 1 root operator 14, 2118 Nov 18 23:28 svnd4g brw-r----- 1 root operator 14, 2119 Nov 18 23:28 svnd4h brw-r----- 1 root operator 14, 2120 Nov 18 23:28 svnd4i brw-r----- 1 root operator 14, 2121 Nov 18 23:28 svnd4j brw-r----- 1 root operator 14, 2122 Nov 18 23:28 svnd4k brw-r----- 1 root operator 14, 2123 Nov 18 23:28 svnd4l brw-r----- 1 root operator 14, 2124 Nov 18 23:28 svnd4m brw-r----- 1 root operator 14, 2125 Nov 18 23:28 svnd4n brw-r----- 1 root operator 14, 2126 Nov 18 23:28 svnd4o brw-r----- 1 root operator 14, 2127 Nov 18 23:28 svnd4p brw-r----- 1 root operator 14, 2128 Nov 18 23:28 svnd5a brw-r----- 1 root operator 14, 2129 Nov 18 23:28 svnd5b brw-r----- 1 root operator 14, 2130 Nov 18 23:28 svnd5c brw-r----- 1 root operator 14, 2131 Nov 18 23:28 svnd5d brw-r----- 1 root operator 14, 2132 Nov 18 23:28 svnd5e brw-r----- 1 root operator 14, 2133 Nov 18 23:28 svnd5f brw-r----- 1 root operator 14, 2134 Nov 18 23:28 svnd5g brw-r----- 1 root operator 14, 2135 Nov 18 23:28 svnd5h brw-r----- 1 root operator 14, 2136 Nov 18 23:28 svnd5i brw-r----- 1 root operator 14, 2137 Nov 18 23:28 svnd5j brw-r----- 1 root operator 14, 2138 Nov 18 23:28 svnd5k brw-r----- 1 root operator 14, 2139 Nov 18 23:28 svnd5l brw-r----- 1 root operator 14, 2140 Nov 18 23:28 svnd5m brw-r----- 1 root operator 14, 2141 Nov 18 23:28 svnd5n brw-r----- 1 root operator 14, 2142 Nov 18 23:28 svnd5o brw-r----- 1 root operator 14, 2143 Nov 18 23:28 svnd5p 1.3 Enabling the 'ftpd' server Because I did not run 'inetd' I started the ftp server with: Code:
# /usr/libexec/ftpd -DUS # pgrep ftpd 3104 1.4 Writing the CentOS netinstall.iso to CD-RW Blanking the CD-RW and writing the iso: Code:
# cdio -f /dev/rcd0c blank # cdio -f /dev/rcd0c tao -d /home/j65nko/CentOS-5.4-i386-netinstall.iso Code:
# mount -t cd9660 /dev/cd0c /mnt ; ls -l /mnt -r--r--r-- 1 root wheel 220 Oct 2 14:25 TRANS.TBL drwxr-xr-x 2 root wheel 2048 Oct 2 14:25 isolinux # ls -l /mnt/isolinux/ total 17358 -r--r--r-- 1 root wheel 2659 Oct 2 14:25 TRANS.TBL -r--r--r-- 1 root wheel 2048 Oct 2 14:25 boot.cat -rw-r--r-- 2 root wheel 292 Oct 2 14:25 boot.msg -rw-r--r-- 2 root wheel 919 Oct 2 14:25 general.msg -rw-r--r-- 2 root wheel 6858123 Oct 2 14:24 initrd.img -r--r--r-- 2 root wheel 10648 Oct 2 14:24 isolinux.bin -r-xr-xr-x 2 root wheel 366 Oct 2 14:25 isolinux.cfg -r--r--r-- 2 root wheel 94600 Oct 2 14:25 memtest -rw-r--r-- 2 root wheel 817 Oct 2 14:25 options.msg -rw-r--r-- 2 root wheel 517 Oct 2 14:25 param.msg -rw-r--r-- 2 root wheel 490 Oct 2 14:25 rescue.msg -rw-r--r-- 2 root wheel 63803 Oct 2 14:25 splash.lss -rw-r--r-- 3 root wheel 1855924 Oct 2 14:24 vmlinuz 1.5 Mounting the CentOS iso images The following shell script takes care of creating the mount directories, associating the 'svnd' device with the iso images and mounting them. Code:
# DEBUG='echo' DEBUG='' for X in 1 2 3 4 5 6 ; do ${DEBUG} mkdir -p disc${X} ${DEBUG} vnconfig svnd$((${X}-1)) ./CentOS-5.4-i386-bin-${X}of6.iso ${DEBUG} mount -t cd9660 /dev/svnd$((${X}-1))c ./disc${X} done Code:
mkdir -p disc1 vnconfig svnd0 ./CentOS-5.4-i386-bin-1of6.iso mount -t cd9660 /dev/svnd0c ./disc1 mkdir -p disc2 vnconfig svnd1 ./CentOS-5.4-i386-bin-2of6.iso mount -t cd9660 /dev/svnd1c ./disc2 mkdir -p disc3 vnconfig svnd2 ./CentOS-5.4-i386-bin-3of6.iso mount -t cd9660 /dev/svnd2c ./disc3 mkdir -p disc4 vnconfig svnd3 ./CentOS-5.4-i386-bin-4of6.iso mount -t cd9660 /dev/svnd3c ./disc4 mkdir -p disc5 vnconfig svnd4 ./CentOS-5.4-i386-bin-5of6.iso mount -t cd9660 /dev/svnd4c ./disc5 mkdir -p disc6 vnconfig svnd5 ./CentOS-5.4-i386-bin-6of6.iso mount -t cd9660 /dev/svnd5c ./disc6 Code:
# sh centos-iso-mounting # mount /dev/wd0a on / type ffs (local, noatime, softdep) /dev/svnd0c on /home/j65nko/disc1 type cd9660 (local, read-only) /dev/svnd1c on /home/j65nko/disc2 type cd9660 (local, read-only) /dev/svnd2c on /home/j65nko/disc3 type cd9660 (local, read-only) /dev/svnd3c on /home/j65nko/disc4 type cd9660 (local, read-only) /dev/svnd4c on /home/j65nko/disc5 type cd9660 (local, read-only) /dev/svnd5c on /home/j65nko/disc6 type cd9660 (local, read-only) A ftp login on the local machine itself: Code:
$ ftp 127.0.0.1 Connected to 127.0.0.1. 220 hercules.utp.xnet FTP server ready. Name (127.0.0.1:j65nko): 331 Password required for j65nko. Password: 230- OpenBSD 4.2 (GENERIC) #1179: Tue Aug 28 10:37:50 MDT 2007 230- 230- Welcome to OpenBSD: The proactively secure Unix-like operating system. 230- 230- Please use the sendbug(1) utility to report bugs in the system. 230- Before reporting a bug, please try to reproduce it with the latest 230- version of the code. With bug reports, please try to ensure that 230- enough information to reproduce the problem is enclosed, and if a 230- known fix for it exists, include that as well. 230- 230 User j65nko logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls disc1 150 Opening ASCII mode data connection for '/bin/ls'. total 282 -rw-r--r-- 1 root wheel 102 Oct 2 14:36 .discinfo -rw-r--r-- 2 root wheel 413 Oct 2 14:30 .treeinfo drwxr-xr-x 2 root wheel 77824 Oct 2 14:36 CentOS -rw-r--r-- 7 root wheel 212 Jun 15 2008 EULA -rw-r--r-- 7 root wheel 18009 Jun 15 2008 GPL drwxr-xr-x 2 root wheel 16384 Oct 2 14:36 NOTES -rw-r--r-- 2 root wheel 655 Sep 29 01:57 RELEASE-NOTES-cs -rw-r--r-- 2 root wheel 1401 Sep 29 01:57 RELEASE-NOTES-cs.html -rw-r--r-- 2 root wheel 839 Sep 29 01:57 RELEASE-NOTES-de -rw-r--r-- 2 root wheel 1571 Sep 29 01:57 RELEASE-NOTES-de.html -rw-r--r-- 2 root wheel 694 Sep 29 01:57 RELEASE-NOTES-en -rw-r--r-- 2 root wheel 1367 Sep 29 01:57 RELEASE-NOTES-en.html -rw-r--r-- 2 root wheel 694 Sep 29 01:57 RELEASE-NOTES-en_US -rw-r--r-- 2 root wheel 1367 Sep 29 01:57 RELEASE-NOTES-en_US.html -rw-r--r-- 2 root wheel 788 Sep 29 01:57 RELEASE-NOTES-es -rw-r--r-- 2 root wheel 1619 Sep 29 01:57 RELEASE-NOTES-es.html -rw-r--r-- 2 root wheel 852 Sep 29 01:57 RELEASE-NOTES-fr -rw-r--r-- 2 root wheel 1641 Sep 29 01:57 RELEASE-NOTES-fr.html -rw-r--r-- 2 root wheel 766 Sep 29 01:57 RELEASE-NOTES-ja -rw-r--r-- 2 root wheel 1565 Sep 29 01:57 RELEASE-NOTES-ja.html -rw-r--r-- 2 root wheel 706 Sep 29 01:57 RELEASE-NOTES-nl -rw-r--r-- 2 root wheel 1433 Sep 29 01:57 RELEASE-NOTES-nl.html -rw-r--r-- 2 root wheel 752 Sep 29 01:57 RELEASE-NOTES-pt_BR -rw-r--r-- 2 root wheel 1480 Sep 29 01:57 RELEASE-NOTES-pt_BR.html -rw-r--r-- 2 root wheel 801 Sep 29 01:57 RELEASE-NOTES-ro -rw-r--r-- 2 root wheel 1473 Sep 29 01:57 RELEASE-NOTES-ro.html -rw-r--r-- 2 root wheel 1504 Jun 15 2008 RPM-GPG-KEY-CentOS-5 -rw-r--r-- 7 root wheel 1512 Jun 15 2008 RPM-GPG-KEY-beta -r--r--r-- 1 root wheel 7048 Oct 2 14:42 TRANS.TBL drwxr-xr-x 4 root wheel 2048 Oct 2 14:36 images drwxr-xr-x 2 root wheel 2048 Oct 2 14:36 isolinux drwxr-xr-x 2 root wheel 2048 Oct 2 14:42 repodata 226 Transfer complete. ftp> quit 221 Goodbye. Code:
$ netstat -an -f inet Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp 0 0 *.21 *.* LISTEN tcp 0 0 *.6000 *.* LISTEN tcp 0 0 127.0.0.1.587 *.* LISTEN tcp 0 0 127.0.0.1.25 *.* LISTEN tcp 0 0 *.22 *.* LISTEN tcp 0 0 *.515 *.* LISTEN Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp 0 0 192.168.222.20.27385 213.249.66.35.123 udp 0 0 192.168.222.20.15181 77.245.91.218.123 udp 0 0 192.168.222.20.44601 194.109.64.200.123 udp 0 0 *.514 *.* Code:
$ ftp 192.168.222.20 Connected to 192.168.222.20. 220 hercules.utp.xnet FTP server ready. Name (192.168.222.20:j65nko): 331 Password required for j65nko. Password: Code:
$ netstat -an -f inet -p tcp Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp 0 0 192.168.222.20.21 192.168.222.20.43783 ESTABLISHED tcp 0 0 192.168.222.20.43783 192.168.222.20.21 ESTABLISHED tcp 0 0 *.21 *.* LISTEN tcp 0 0 *.6000 *.* LISTEN tcp 0 0 127.0.0.1.587 *.* LISTEN tcp 0 0 127.0.0.1.25 *.* LISTEN tcp 0 0 *.22 *.* LISTEN tcp 0 0 *.515 *.* LISTEN 2.1 Does audacity on CentOS work OK with the Akai ATT05U USB turntable? I do not know yet. Because of an unexpected event I still have to get acquainted with the CentOS package manager 'yum'. Because CentOS is based on Redhat Enterprise Linux, it does not support a lot of multimedia software in the standard repositories. And I haven't found time yet to add the recommended multimedia repository to the 'yum' configuration file. Maybe I should have chosen Ubuntu or Fedora? $Id: Mounting_6_CentOS_iso_files.xml,v 1.4 2009/11/24 05:36:07 j65nko Exp $
$Id: book-vbul-html.xsl,v 1.3 2008/12/24 02:59:45 j65nko Exp $
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Hi,
I know this isn't related to your tutorial.. but I would have suspected such a device to just attach as a standard USB audio device (..uaudio(4)). That would have allowed you to capture audio from OpenBSD directly.. from any application. Does it attach as ugen(4)? does audacity include libusb support for some devices? Emailing the maintainer may shed some light on this incompatibility or limitation of the port. |
|
||||
@J65nko
Why not get the DVD version? CentOS-5.4-i386-bin-DVD.iso
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
||||
J65nko,
You are over thinking big time. You could just create a custom SLAX live CD http://www.slax.org/ with the Audacity module. Even if you forgot the module before CD creating you can add it after it during the LiveCD use. Of course the changes will be lost unless you store the module on USB drive. Get the job done and toss the damn thing to a trash can. On few occasions I really, really needed to use Flash or Skype I did just that and it work as charm. I would not use SLAX in any shape or form on the daily base but for one time only common. Last edited by Oko; 24th November 2009 at 08:19 PM. |
|
|||
@BSDfan666
On a recent snapshot the turntable is detected as both an uaudio and uhid device Code:
OpenBSD 4.6-current (GENERIC) #366: Wed Nov 11 13:02:36 MST 2009 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 2.00GHz ("GenuineIntel" 686-class) 2.03 GHz [snip] mtrr: Pentium Pro MTRR support uaudio0 at uhub3 port 1 configuration 1 interface 0 "Burr-Brown from TI USB Audio CODEC" rev 1.10/1.00 addr 2 uaudio0: audio rev 1.00, 2 mixer controls audio1 at uaudio0 uhidev0 at uhub3 port 1 configuration 1 interface 3 "Burr-Brown from TI USB Audio CODEC" rev 1.10/1.00 addr 2 uhidev0: iclass 3/0 uhid0 at uhidev0: input=1, output=0, feature=0 vscsi0 at root I like OpenBSD, it is my favorite OS, but knowing multimedia is not its strength, sometimes one has to be practical. Also, the original Akai turntable went bad beyond repair (too high speed), so after 5 weeks my daughter got a refund and bought me a new one last week. So I couldn't follow the path you outlined @Vermaden, I did not have a DVD-RW available and knowing I could mount the 6 CD iso's, I decided to go that route. @Oko, My daughter also gave me a German C'T Linux magazine, which thoroughly as C'T always does, discussed a couple of Linux distrubutions. It also included a DVD with iso images of the featured distros. I opted for Pure:dyne, a multimedia oriented Live distro, based on Debian. Unfortunately while still booting, Debian tries to mount the OpenBSD partitions, friendly informs me that is fails to do so and then quits Thanks for the Slax tip. If CentOS doesn't work out I surely will give it a try. My first endeavor away from Win95 in 1998 was Redhat, and being familiar with the installation, I decided to try CentOS, not knowing that Redhat has diverged rather far away from multimedia support.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump Last edited by J65nko; 24th November 2009 at 08:56 PM. Reason: typo |
|
|||
Quote:
Jacob just posted this week on the mailing lists, he is working on improving the experience of uaudio(4) devices.. in the same email he's mentioned some features that no other OS's have matched yet, as part of his work on on azalia(4) and sndio. http://marc.info/?l=openbsd-tech&m=125874761014517&w=2 Audacity uses the sndio library directly in 4.6.. you can either set the AUDIODEVICE variable prior to starting the program, or start aucat(1) separately as a daemon (..specifying the audio device on the command line). No longer do programs need to use the classic ossaudio(3) compatibility layer. You should be able to capture audio from this device, from any audio program.. controlling some of the extended features might be possible via the usbhidctl(1) utility, although most likely it would be easier to use any buttons on the device instead. Why install a different operating system entirely? I would sooner prefer re-gifting presents.. even if from my kin. |
|
|||
I have managed to add the rpmforge repository by following http://wiki.centos.org/AdditionalRes...ories/RPMForge. A simple yum install audacity installed audacity.
Unfortunately audacity complained a few times about not being able to detect a sound device. It also froze a couple of times. The secret to make it work was to disable "Play other tracks while recording new one" as well as disabling "Software Playthrough". At this moment I am recording "Weasels ripped my flesh" from Zappa & the Mothers of Invention. Next one will be the Iron Butterfly "In-a-gadda-da-vida" LP RE: installing a different OS completely I don't mind Two years ago on the T-Dose open source conference in Eindhoven, somebody introduced me to CentOS and I finally found a reason to try it. The Akai ATT05U turnable can also connect to an amplifier, it has the RIAA correction built-in, to play records the old-fashioned way. So no way I would re-gift it. RE: your AUDIODEVICE tip When I install a new OBSD snapshot I surely will your suggestions and report the outcome. Thanks
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
Tags |
akai, akai att05u turntable, centos, iso image, mount, turntable, vnconfig, vnode |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HOWTO: mounting an USB device as normal non-root user in OpenBSD | J65nko | Guides | 6 | 20th May 2017 12:03 PM |
Some images are black in Firefox | RandomSF | FreeBSD Ports and Packages | 14 | 7th January 2010 08:19 AM |
Official DVD images from FreeBSD team | vermaden | FreeBSD General | 0 | 16th October 2008 06:11 PM |
Which light Gui from modify images files? | aleunix | OpenBSD General | 7 | 15th June 2008 04:32 PM |
Number of Images exceeded | 18Googol2 | Feedback and Suggestions | 2 | 10th May 2008 09:38 PM |