Pages

Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, 28 November 2011

linux ripping Audio-CDs

cdrdao read-toc --with-cddb --fast-toc --device 1,0,0 ddddlxy.txt > deneme1.log 2>&1
cdrdao scanbus
cdparanoia -vsQ > deneme2.log 2>&1

linux ripping and encoding audio files

linux'ta komut satırından cd yakmak

terminal'de...

önce ilk komut ile yazılacak device'ın device numarası alınır. buradaki örnekte 1,0,0

sonra ape flac veya wv wav haline getirilir.

cdimage.cue'da cdimage.wav olarak düzeltme yapılır ve
cdrdao write --speed 4 --device 1,0,0 --eject CDImage.cue
komutu ile yazılır.

her yerde sorunsuz çalışır.

#Scan the SCSI and IDE buses
cdrecord -scanbus

#Burn Audio CD from cuesheet
cdrdao write --speed 4 --device 1,0,0 --eject CDImage.cue

#Decode ape to wav
mac "CDImage.ape" "CDImage.wav" -d

#Decode flac to wav
flac -d CDImage.flac

mbr, grub

mbr backup & restore
# backup bootsector
sudo dd if=/dev/sda of=bootsector.img bs=512 count=1

# restore bootsector - boot with a LiveCD and issue the following command:
sudo dd if=bootsector.img of=/dev/sda


# backup bootsector (to a usb stick)
sudo dd if=/dev/sda of=/media/disk/boot.mbr bs=512 count=1

# restore bootsector (boot with a LiveCD, insert the usb stick, and issue the following command):
sudo dd if=/media/disk/boot.mbr of=/dev/sda bs=512 count=1


grub restore
# boot with a LiveCD and issue the following commands:

sudo grub
find /boot/grub/stage1
# Use the output from this command in the next command.
# For instance, if the root partition is the second partition of the first harddisk:
root (hd0,1)
setup (hd0)
quit