About open source, education and random other Stuff
Archive for July, 2010
Converting Audio files to G.722 for use with Asterisk
Jul 24th
Note to myself:
How to convert random audio files to G.722 with Asterisk
First convert the input file to a 16kHz mono signed linear wave file:
sox input.foo -r 16000 -c 1 -t sw output.sln16
and in the Asterisk CLI:
file convert /path/to/input.sln16 /path/to/output.g722
Preparing a bootable SeaTools USB drive in Fedora
Jul 12th
Before you return your drive to Seagate for repairs they ask you to run their diagnostics tool called SeaTools. My ThinkPad X200 doesn’t have an optical drive but since they dropped support for floppy disks there’s no other chance than using the ISO Seagate provides. Because I’m too lazy to actually get up from my bed and shove that ThinkPad into it’s docking bay (which has an optical drive) and also because I didn’t want to waste a CD-R on this 7 MB tool I decided to find a way to make it boot from USB.
SYSLINUX and MEMDISK to the rescue!
- Format your USB drive with the FAT file system. Make sure you erase the bootsector and mark the partition bootable afterwards.
- Install SYSLINUX: yum install syslinux
- Install the SYSLINUX MBR onto your device: cat /usr/share/syslinux/mbr.bin > /dev/sdX
- Install SYSLINUX onto your USB drive: syslinux /dev/sdX
- Copy the MEMDISK bootloader from /usr/share/syslinux/memdisk to your drive’s root
- Now copy the SeaTools ISO to your USB drive
- At the root of your device create a file called syslinux.cfg with the following content:
DEFAULT SeaTools LABEL SeaTools LINUX memdisk INITRD SeaToolsDOS220ALL.576.ISO APPEND iso
- Now you should be able to boot from your USB drive