Random notes: Difference between revisions

From Wiki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
On linux:
On linux:


cdemu/gcdemu will allow mounting the image in a way where ripping software like Asunder recognises the audio tracks correctly
cdemu/gcdemu will allow mounting the image in a way where audio ripping software like Asunder recognises the audio tracks correctly


<code>bchunk</code> allows direct extraction, e.g. <code>bchunk -w image.bin image.cue [basefilename]</code>
<code>bchunk</code> allows direct extraction, e.g. <code>bchunk -w image.bin image.cue [basefilename]</code> will create an .iso file with the data contents and .wav files for each audio track.
 
=== Mounting a LUKS encrypted drive ===
https://askubuntu.com/questions/63594/mount-encrypted-volumes-from-command-line
 
<code>sudo cryptsetup luksOpen /dev/sda1 my_encrypted_volume</code>
 
<code>sudo mount /dev/mapper/my_encrypted_volume /media/my_device</code>
 
<code>sudo cryptsetup luksClose my_encrypted_volume</code>
 
==== TRIM USB drives ====
https://forums.linuxmint.com/viewtopic.php?p=2339331&sid=c50844e266deecc9371faae5e6bcea75#p2339331
 
<code>lsusb</code> to find PID/VID
 
<code>sudo nano /etc/udev/rules.d/50-usb-ssd-trim.rules</code>
 
<code>ACTION=="add|change", ATTRS{idVendor}=="174c", ATTRS{idProduct}=="235c", SUBSYSTEM=="scsi_disk", ATTR{provisioning_mode}="unmap"</code> with replaced PID/VID
 
<code>udevadm control --reload-rules && udevadm trigger</code>

Latest revision as of 18:35, 27 June 2024

Extracting data/audio from a hybrid CD's bin/cue image

On linux:

cdemu/gcdemu will allow mounting the image in a way where audio ripping software like Asunder recognises the audio tracks correctly

bchunk allows direct extraction, e.g. bchunk -w image.bin image.cue [basefilename] will create an .iso file with the data contents and .wav files for each audio track.

Mounting a LUKS encrypted drive

https://askubuntu.com/questions/63594/mount-encrypted-volumes-from-command-line

sudo cryptsetup luksOpen /dev/sda1 my_encrypted_volume

sudo mount /dev/mapper/my_encrypted_volume /media/my_device

sudo cryptsetup luksClose my_encrypted_volume

TRIM USB drives

https://forums.linuxmint.com/viewtopic.php?p=2339331&sid=c50844e266deecc9371faae5e6bcea75#p2339331

lsusb to find PID/VID

sudo nano /etc/udev/rules.d/50-usb-ssd-trim.rules

ACTION=="add|change", ATTRS{idVendor}=="174c", ATTRS{idProduct}=="235c", SUBSYSTEM=="scsi_disk", ATTR{provisioning_mode}="unmap" with replaced PID/VID

udevadm control --reload-rules && udevadm trigger