LVM and raw logical volumes
location: ubuntuforums.com - date: January 30, 2011
Greetings. An evil query for experts:
Last year I posted a question on how to get started with the Logical Volume Manager. Nobody responded and, looking back on it, I don't blame y'all. But now I have bitten the bullet, created 2 physical volumes (/dev/sda5, /dev/sda6), and two volume groups (vg-db01, db-vg02) and a total of 4 logical volumes of 1GB each. I'll be creating more as I go along but I have one problem:
The logical volumes I created with lvcreate are all Block devices.
$ find /dev/vg-db01 /dev/vg-db02 |xargs ls -lL
brw-rw---- 1 root disk 252, 0 2011-01-30 15:50 /dev/vg-db01/lvol-db001
brw-rw---- 1 root disk 252, 1 2011-01-30 15:55 /dev/vg-db01/lvol-db002
brw-rw---- 1 root disk 252, 2 2011-01-30 15:55 /dev/vg-db01/lvol-db003
brw-rw---- 1 root disk 252, 3 2011-01-30 16:03 /dev/vg-db02/lvol-db001
Note - I used the -L option in the ls command because the device files named are actually symlinks to the block special device files. For example:
$ ls -
HEX Editor for Raw devices
location: ubuntuforums.com - date: May 1, 2010
I'm trying to hack my htc smartphone to get root access from it. Some guys did an amazing work writing down a tutorial to do it, but, shame of shames, they did it in Windows OS.
No problem until here, because what it can be done in M$Win can be done in Linux too. But, at certain point of the procedure we need to write/mapping to the device (to produce a goldcard).
In windows there is a tool HxD Hex Editor with the functionality of open a disk (in this case a SD Card) in hexdecimal. It runs in wine, but, that specific feature is not working.
I know there are some hex editors in linux I tried lots of them, e.g. ghex, okteta, hexedit, etc, but most of them only can open files and the others are to hard to do the simple operation that i need. I know I can do 'sudo hexdump /dev/sdb1' to dump to the shell the device in hex format, or hexedit to edit the device. But, I'm getting huge troubles to do it.
I should say that what i need to do is copy the contents of a
Automounting VirtualBox VDI raw images in GNU/Linux
location: ubuntuforums.com - date: March 23, 2011
# Project: Automounting VirtualBox VDI raw images in GNU/Linux
# File name: vdimount.sh
# Description: This script automount any mountable filesystem inside
# any primary partition of a VirtualBox VDI raw image on
# GNU/Linux. HDD unit is accesible through a loop device
# like /dev/loop[X]
# author: Norberto Fernandez (c) 2011.
# version: 0.1.1
# see The GNU Public License (GPL)
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
Booting of raw ISO from GRUB/LILO (though preferably GRUB)
location: linuxquestions.com - date: September 28, 2005
Does anybody know how (/ if it is possible) to boot a raw ISO file using GRUB or LILO (though I would prefer to use GRUB since that is what I already have installed). I have found some references to a 'bootfrom=' command for GRUB connected to booting KNOPPIX but it seems to just be for KNOPPIX. I would like to boot ISOs for many OSs without burning them to a CD.
Raw Audio Input finding the device
location: linux.com - date: August 21, 2009
I'm looking for a way to find the current audio device to get raw input from a receiver plugged into the audio input of any sound board. Someone have a pointer to C/C++ code for doing this?
Virtmanager picks wrong qcow2/raw format for new VMs (No bootable device.)
location: ubuntuforums.com - date: December 6, 2010
OS: Kubuntu 10.04
Virt-manager 0.8.2 using libvirt and qemu/kvm
I recently loaded a qcow2 virtual hard drive image into a new virtual machine that I created with with virt-manager. I couldn't get the vm to boot event thought it was fine before I detached the hard drive image.
The error I received from the virt-manager console:
Booting from Hard Disk...
Boot failed: not a bootable disk
No bootable device.
Leaving this displayed on the console and checking the command run:
ps aux | grep kvm
/usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 768 -smp 1 -name Win7_x64-Dell -uuid 771259fa-01f7-ecea-f9e8-4c0576498354 -chardev socket,id=monitor,path=/home/localadmin/.libvirt/qemu/lib/Win7_x64-Dell.monitor,server,nowait -monitor chardev:monitor -localtime -boot c -drive if=ide,media=cdrom,index=2,format=raw -drive file=/storage/vmimages/Windows7_x64-01/qcow2-60GB_HDD1.img,if=ide,index=0,boot=on,format=raw -net nic,macaddr=52:54:00:6e:11:67,vla
Read raw data from USB port
location: ubuntuforums.com - date: May 18, 2009
Background: I have a CMS 50e pulse oximeter which I need to use for sleep studies to tell, while sleeping, when my percent of oxygen gets too low, how low it gets, and how many events below 87% saturation occur. I desperately wish to discontinue my nighttime oxygen use through dieting and exercizing. To do this, I must do periodic sleep studies.
Obstacle: the pulse oximeter will record up to 24 hours of data which uploads to my laptop through a USB connection. The software is poorly engineered, almost impossible to install (drivers try to install over other devices in use,) and contains sorely deficient documentation. The data is still uploading when the software generates its report, so report suddenly stops at random amounts of data. Searching on the internet, I have discovered that this is a common (universal?) problem
Hopeful workaround: The data is stored in CSV format. If I could capture data stream for entire upload, I could import it into Open Office and cr
Trouble printing raw from browser (maybe my lack of bash knowledge)
location: linuxquestions.com - date: March 8, 2005
I'm trying to send raw data to a printer from firefox. I think the best way to do this is with shell script.
I need to be able to send a text stream (which includes binary control chars) to an external file untouched (ie: not PS'ed). I've tried pointing firefox to a shell script that looks for input either as arguments or from stdin and nothing seems to be getting passed in.
How can I get this data out of the browser unscathed?
FYI: The aim of this is to send data to a thermal receipt printer.
while read line
echo $line >> out.txt
NEF (Nikon RAW File) Image Viewer
location: ubuntuforums.com - date: April 7, 2012
I've just installed Ubuntu 11.10 version. Everything going ok, but I cann't view my NEF images from Nikon D3000 camera. After searching I've found UFRaw and Darktable, two programs for post processing.
But I've not found any image viewer capable of showing NEF images in full size.
Is there any such viewer ?
802.1q tag, raw socket
location: linuxquestions.com - date: May 4, 2012
I am writing program that need to accept double TAG traffic. I am using raw socket for that.
And in general my program run OK, except that for some reason received packet do not have 2 VLAN tags, but only one. I see in wireshark that packet indeed have 2 VLAN tags in it.
Can you please help? Funny part is that sending of double tagged package is working fine.
if ((rx_socket = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL))) < 0)
perror("Error creating socket");
struct ifreq if_mac_rec1;
memset(&if_mac_rec1, 0, sizeof(struct ifreq));
strncpy(if_mac_rec1.ifr_name, "eth0", IFNAMSIZ);
if (ioctl(rx_socket, SIOCGIFINDEX, &if_mac_rec1) < 0)
struct packet_mreq mr_rx;
memset (&mr_rx, 0, sizeof (mr_rx));
mr_rx.mr_ifindex = if_mac_rec1.ifr_ifindex;
mr_rx.mr_type = PACKET_MR_PROMISC;
setsockopt (rx_socket, SOL_PACKET,PACKET_ADD_MEMBERSHIP, &mr_rx, size
Page: 1 2 3 4 5 6 7 8 9 10