Software :: Control Write To Device?
May 30, 2010Is there a way to log on which time my system writes data to a specific (mounted) device? I have to know what an how much my system writes.
View 1 RepliesIs there a way to log on which time my system writes data to a specific (mounted) device? I have to know what an how much my system writes.
View 1 RepliesI just added a 2 port network card to a system that is running Fedora 11, but it is INACTIVE. I open the Network Device Control to activate it but there is no network ports in Network Device Control. It is empty.It looks like the system recognize the card and loaded correct driver.
View 4 Replies View Relateddf -h [URL] I did the following command to find everything is in /usr or /var, then tracked it down to /usr/lib and /usr/share as the main offenders, but out of all the directories none are more than 1mb or so.
du -sh /* | sort -gr | head -n 5
I tried to uninstall firefox, which is what got me in this mess in the first place, the log claims it will remove ~240 mb but failes on a "E: Write error - write (28 No space left on device)" [URL] If I could juggle something onto an external hard drive so I can uninstall firefox I would be out of the wood. Failing that I believe a new install is in order.
I have a file the owner is root:root ( mode is 644 ), I want to release read & write permission to a non root user ( eg. admin_usr ), I tried to create a specific group ( eg. ADM ) and release it to root user and admin_usr ( by adding this users to ADM in /etc/group ) , but it is not work, if preserve the file mode to 644 , is it ok? how to do it if I want to have read & write permission in my case ?
View 5 Replies View RelatedI have setup my linux fedora server and i want to restrict access to my server.Basically i control using iptables.I'm not sure how to write an iptables rules to control drop all connection to port 8080 and allow only certain ip can access the instance on port 8080 example ip=10.254.14.16,192.168.1.10.
View 3 Replies View RelatedIf I were asked to write a linux device driver for a pen, How should I start?
View 4 Replies View RelatedQuote:
Originally Posted by anishakaul
When you copy paste the Makefile from post 7, make sure you delete the spaces shown in RED below by Backspace key and then press TAB
Code:
obj-m += hello.o
all:
........make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
........make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
how to write a device driver for USB
I know, I know..."How long is a piece of string"?
I have one of these devices:
[URL]
Of course, it's Windows only, and XP only at that. However, the data that needs transferred between the device and the computer should be fairly basic, unless it offloads a lot of processing to the computer. I'm not a programmer, nor do I play one on TV, but I have written some fairly complicated microcontroller programs and some basic Java GUIs. Besides writing the actual code, how hard is it to do whatever needs done to make a Linux device driver, apart from the code to make the device work?
I need programmer a timer of 10 ms for read/write a USB device
View 4 Replies View RelatedIf I were asked to write a linux device driver for a pen, How should I start???
View 5 Replies View RelatedI have a Asus eee box eb1501u running Kubuntu 10.04 LTS (32 bit) and I am trying to get the remote control to work. Many guides for example this one http://wiki.xbmc.org/index.php?title...eeBox_PC_EB150 first states that you should run code...
Before I removed the Windows 7 installation I tested the remote in Windows to make sure it worked and it did. I cant see that there is a possibility to turn on or off the IR-device in the bios settings!? I would really like to make it work in Kubuntu to. I'm pretty n00bish at Linux but I think I can figure it out if someone would point me in the right direction.
I'm new to ubuntu but i do have a basic understanding of programming, but nothing too serious. The reason I am mentioning this is because I have a little project. Currently I use JACK to control the transport of all the aps i use to make music with ardour, hydrogen and rosegarden mainly. I also have an external midi drum machine that I sometimes hook up into the mix via midi in/out, my drum machine (yamaha ry to be exact can send and receive midi data. My question is can I use the transport controls on my external drum machine to control JACK's transport controls? If there is already am app that does something like that, excellent!
View 3 Replies View RelatedAfter 4 days of tryings I still can't set remote control in work state at Ubuntu 10.10 for using in XBMC (xbmc-standalone), but in Windows 7 working fine.I try many methods but still no luck.
[URL]
Code:
...
Now try using irw
xbmc:$ irw
Press some keys and you should get some output.
...
but my output after reboot:
Code:
fishmd@eee-tv:~$ irw
fishmd@eee-tv:~$ irw
connect: Connection refused
fishmd@eee-tv:~$
http://wiki.xbmc.org/index.php?title=Talk:HOW-
[code]....
I recently added a SS drive and after 2 hours it went into read only and busy mode. The machine see the drive as does tools like fdisk, fsck, qtparted, kde partition manager but I can't reset the device to make it write-able Do I need to RMA the device (it's 12 hours old) or is there a method to make the device usable again?
View 4 Replies View RelatedI am trying to write to a Ramdisk because I suffer from terrible IO speeds on my VPS. It uses openVZ and I run a Centos 5 distro.
So i created my ramdisk with '/bin/mount -t tmpfs -o size=1G,nr_inodes=10k,mode=0775,noatime,nodiratime tmpfs /tmp'
but whenever I try and copy files to it, it just spams me with 'no space left on device even though there is!
Here is the output of df:
/dev/simfs 157286400 6511452 150774948 5% /
none 16441412 4 16441408 1% /dev
tmpfs 5242880 1296 5241584 1% /disk/test
tmpfs 5242880 1296 5241584 1% /disk/test
[Code]....
i have some basic knowledge about device drivers.can any one tell how to write drivers for virtual modem, Actually my project is to implement communication between the two PCs by using two virtual modems. so for that i need to write the code for the virtual modem which it should understand all the AT commands exactly as physical modem and it should send/receive call and SMS.
View 1 Replies View RelatedI need to change a filename but when I boot up I get the message root device is read-only. Is there a way of changing this so that I can change the filename. I have a Mac Pro running Leopard OSX. The graphics card an NVIDIA 7500GT or driver has failed. It was suggested elsewhere that I change the relevant kext files to filename.kext.old, which I did, now when I try to boot start in OSX I get a message in various languages telling me to restart. I have tried booting in safe mode and from original Installation CD. In Safe Mode I get the same multi language splash screen, from CD I still have the graphic card problem, screen freezes and artifacts appear. So I boot up straight into CLI by holding down CMD-S hoping to be able to change filenames back but it says device read-only.
View 2 Replies View RelatedI have a write call to a ttyACM serial device that blocks after several hundreds bytes are written.I'm writing in ~25 byte chunks, so I have 5-8 successful writes, then the next write blocks forever.I can bypass the blocked call using select, but I can never call write again without closing and re-opening the port.
The serial port is opened correctly because I can read from it just fine. Write permissions are correct, and it's opened RW.The code is likely correct because I tested the same code using the same device on a pure RS-232 serial port, and it worked fine - no block. Is there anything to know about the linux ACM module?It's my understanding that write calls basically shouldn't block.They're supposed to return -1 if there's an error.
I'm writing a C program that reads the boot sector of a USB disk. (it is mounted as /dev/sda1). I'm able to read the sector, by the calls code...
The problem is when I wish to write. I use the call:
bytesWrite = write(fd, buf, 512)
The 'write' returns the value of 512, which looks as if the write was successful, yet
when I read again the /dev/sda1 device, I see that no writing was actually made.
Can anybody tell me what do I need to do in order to allow an actual write to the
device?
I am final year MCA student. I like to do my project in Linux. I know a little in C. I am pursuing RHCE certification. I am using rhel5. I am interested to write linux device drivers and willing to do my project in that.
View 9 Replies View RelatedMy wife is purchasing a netbook with no internal CD/DVD writing device, so we plan to purchase an external CD/DVD USB-2.0 read/write device. Our local PC shop has the following 3 external USB-2.0 DVD read/write devices:
(a) Samsung DVD-Burner SE-S084F/RSBS [not listed on Samsung site - too old ? ]
(b) LG DVD-Burner GE24NU21 USB2.0 [not listed on LG site - too old ? ]
(c) Super-Multi Portable DVD Rewrite (GP10 Lite USB2.0 Slimline) GP10NB20 (mentions Mac OS/X support, which is encouraging)
None of those are listed in the openSUSE HCL. Has anyone successfully used any of these with GNU/Linux (my google surfing on this revealed no GNU/Linux complaint nor any success stories) ? Or is there another such external USB-2.0 read/write DVD burner device that is recommended ?
I can browse the iso image easily enough with a loopback mount, but when it comes to mounting the actual CD (which I did first), I get:
Code:
$ sudo mount -t udf,iso9660 /dev/dvd /mnt/dvd
mount: block device /dev/dvd is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/dvd,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
/var/log/messages isn't very helpful, either:
Code:
Jul 15 15:15:56 bkorb-dt kernel: attempt to access beyond end of device
Jul 15 15:15:56 bkorb-dt kernel: sr0: rw=0, want=68, limit=4
Jul 15 15:15:56 bkorb-dt kernel: isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16
$ md5sum openSUSE-11.3-DVD-x86_64.iso
adf5d2a0a03c1e3aaf102fd6a4771b87 openSUSE-11.3-DVD-x86_64.iso
I burned it with K3B and it gets the same result trying to mount it. K3B seems to know that the image is an iso9660 and is able to display the various 9660 id fields just fine. It just won't mount.
I used dual booting with Windows Xp and Ubuntu 10.04. Because errors, I reinstall Windows and then I could not enter GRUB, and Ubuntu partition disappear. I tried to reinstall ubuntu using live CD but I could not detect last ubuntu partitions. After I installed fresh Ubuntu on new partition, I got error message like this:
Unable to mount floppy0 Mount: block device /dev/fd0 is write protected, mounting read-only Mount: could not determine the file system type, and none was specified
Now i have a problem.I want to used a hid usb device under linux 2.6.11.But i can't know how to used ioctl function to send and receive data to a hid device
View 3 Replies View RelatedOn one of my machines the DVD/DVDRW/CDROM drive appears as /dev/hdc and is not identified as an optical drive by HAL. It is owned by root: disk and thus no users get permission to read/write in the device (not even those in the cdrom group). This stops playing DVDs, ripping CDs, no notifications appear when a disk is inserted, etc. etc. When I set the permissions for all to read/write from the device then users can access but still no notifications are shown.
On all my other machines the optical drive is identified as /dev/sr0 and is owned by root:cdrom . All have Slack 13.1 . Previously with Slack 12.2 this machine still had the drive in /dev/hdc but the permissions were right (I think because I added it to /etc/fstab with options for users to access it). I believe the problem is down to HAL not setting this drive to the correct group, but how do I fix it? I hate HAL, it has a mind of its own, just like in the scifi movie
I tried to burn with k3b but after a while the fateful message "cdrecord has no permission to write to the device. " Then I launched k3bsetup and I selected the burning group. Did not exist. I created it and now i'm included in it. Then I checked all the boxes for the write permissions of the programs used by k3b and the writer. Now it works. But after reboot, the box of the burner device is not checked. So I have to select it each time. Boring. DO you know how to save the setting permanently
View 6 Replies View RelatedI feel little silly asking this, I accidently removed from my gnome panel my internet connection, volume control and battery indicator on F11. how can I add this back. It does not show up in the add to panel menu and the applications do not give you back the default feel.
View 1 Replies View RelatedI don't know how this happened, but my keyboard copy and paste functions have stopped working. Oddly enough, I discovered that I can only copy and paste by using the third mouse button. Pressing down on the scroll wheel after highlighting text copies the text, pressing it again pastes it Ican still use the Edit-copy and Edit-paste menu functions.
I'm sure it has something to do with all the tinkering I have been doing with my desktop. I have been experimenting with CompizConfig and Cairo dock, changing my themes and things of this nature.
Ububtu 10.04.1
kernel 2.6.32-27 generic
I cannot get any fan information from 'lm-sensors' or 'sensors', I tried to run 'pwmconfig' and got this:
Code:
Code:
But I have no tools to control the fan speed from 'acpi'. in particular '/proc/acpi/fan' is an empty directory.
There are no fan info/controls in BIOS either.
I believe the fans do not work as fast as they should and I am trying to find a way to fix this before the cpu cores are melted down from overheating.
Laptop information: HP Pavilion dv2500t
Code:
Laptop is Dell Latitude C600/C500 with Pentium III 850Mhz, 256Kb L2 Cache, 256MB RAM, ATI M3 video card, HD 20005 MB and sound card is EES Maestro 3i. After trying to do something with Windows 2000 which was installed on the machine, I decided to put Linux without keeping windows on the machine. First I try with Xubuntu (latest version) which was working but slowly, then I found that Debian could work fine on that machine. I have installed latest version 5.08 and was surprised how goodly old machine can work. I solved problems with screen resolution (change from 800x600 to 1024x768) but I couldn't find solution how to fix problem with sound.
Actually I don't have sound on the machine. I looked for a linux driver for that sound card and Dell is only providing windows drivers. Then I found that I can solve the problem with ALSA drivers but I couldn't find the easy way (or any way at all) to install drivers and to get back the sound. When I click on 'Volume Control' (top right corner of the screen) I get the message: 'Volume control did not find any elements and/or devices to control. This means either that you don't have the right GStreamer plugins installed, or that you don't have a sound card configured.'