i have written block driver. its got registered succesfully.now i want to perform file opration like opening file reading/writing data into file which is stored into device.fter registration device node is created under /dev/xxx i am not getting, through this node how to open file which is stored in device.from one document i came to know that i have to use filesystem but in that doc how to use filesystem is not explained
Sometimes while using Open Office, trying to open a file the dialog box takes 15 to 30 seconds of spinning balls until it shows me anything. Then changing a directory takes another 15 to 30 seconds. Visual feedback on selections take several seconds, and often I find myself a couple of subdirectories down from where I wanted to go due to caching of unacknowledged clicks.
My system is usually very, very fast, as one would expect from the specs. This problem happened, well, almost all the time with kernel 2.6.32-21-generic, now it just started happening again with 2.6.32-22-generic.During these slowdowns, opening Dolphin reveals the same problem, exceedingly slow response. While this is happening, top shows the system is not busy, and the hard disk light is not flashing. Idle is over 90% and user and sys are basically nothing. The system is basically doing nothing while making me wait.
Whenever I move files from a USB memory stick or external hard drive or any other such device the file only seems to transfer 99% of the data and often during moving file operations will freeze and an offer of 'force quit' will come up (although file operations will eventually vanish with the 99% of the file being moved).
Can anything be done to rectify problems with file operations?
i just installed the ubuntu-netbook package to test out unity on my system.. on seems to work fine but how do i copy my files and folders to a usb drive ? wen i open files and folders using unity..it jus opens in a black window.. i cannot right click on any item..i can just open it.. how how do i do my normal file operations using it ?
I would like to document my activity on linux terminal during some operation.I want to have text file which will contain all commands typed and output from those commands in a file.I know how to set this option in Putty but I have some problems in linux terminal.
<pre> bash | tee output.log </pre>
When I perform above spell, it only records STDOUT to file.on't have there STDIN,STDERRHow to have in this output.log file STDIN,STDOUT,STDERR
Ok so I'm running Mint (not full Ubuntu), and I'm not sure if this is a problem with the FS, Kernel, what not.I'm running Linux Mint 9 - x64 - kernel 2.6.35.14 - and when I did a large file copy operation (9GB) it froze up my system until the copy operation was done. I couldn't even use Pidgin, Mozilla, or anything, when trying to open up another Terminal it froze as well.
I'm having this problem wherein the ppp program is altering the /etc/resolv.conf file when connecting.This, despite me having set file permissions to read-only. What could be the problem here?
I have a Toshiba laptop that seems to be freezing on extended operations involving the file system/hard drive. (that's kind of a guess on my part). The system has frozen during the last day or two when I:
- try a large file operation with Nautilus - try exporting a large video file from Kdenlive - try formatting the disk for a new install of Maverick (I decided that with the new version almost out, I might try upgrading in case I broke my system)
What I see is the screen freezing and the mouse does not move. As I said, I tried installing the Maverick RC from the Alternate CD (I wanted to do a minimal install). The install hung on the partitioning step and the caps-lock key started blinking (though I don't get this in other cases). I have booted into my Lucid live-cd and a Puppy live-cd to try Gparted, with the same results - the system freezes (but the caps-lock key doesn't blink). Puppy HAS performed better generally, for example I was able to complete my large file operation (backing things up!) but it is freezing on the partitioning step.
i am writing block deriver for usb device in linux i want to read and write data to/from usb device i already registered usb device with my driver and opened the handle for the usb device now i need to send scsi command to usb device to make it work but i dont have knowledge about scsi commands and how and where to use them now i need to know which scsi command i need to pass to the usb device and how can i pass that command to usb device also i need some information like how to register host controller with my usb driver
if anyone knows about this or where can find the tutorials / documentation/ framework for the same.
I have a Linux (Kubuntu) system with a large (~20Gb) file which I would like to mess with. Specifically, I want to copy the entire contents of another large file (~12Gb) to the middle of this file, and keep the bits of the file which are not overwritten.This is what I want to happen, with the text between the pipes representing file contents:Before:
My Redhat Enterprise Linux 4 with 6x partitions (/, /boot,/home, /usr, /var, /tmp) of 6.0 GB IDE Hardisk was working quite fine. I decided to create LVM on /home and /var partitions but due to some errors occured and I delete the /home partitions. That's why partition table altered. I then delete 4,5,and 6th partitions (/home, /var, /tmp) partitions and now try to create one by one but following error is coming:-
[Code]....
The Super block could not be read or do not describe a clear ext2 file system. E2fsck b 8193 <device> I have tried following commands,but could not successful:- e2fsck -p /dev/hda7 (where hda7 was created but afterthat it was deleted) e2fsck -a /dev/hda7
i am using now the squidproxysome tutorials i followedwhat i want is to restrict downloading of any exe file, mp3, even a video extensionsince my squidproxy running some exe is blocked for example i just want to download pidgin.exe and its giving me an information that i have no rights to download but on this site rlook-fing-1-2this exe i can able to download and i dont know why?
I need to monitor file reads&writes by all the apps. I have found a kernel feature /proc/sys/vm/block_dump. But it only gives me block numbers while i would like to know file names. How can i convert these block numbers to file names (if the blocks belong to a file, of course)?
for solution how to find physical position/block of specified file on FAT32 partition. I have damaged hdd (I can mount partition and I see files) and im using gddrescue to make 1:1 copy, but i need only specified file. So I would like use gddrescue with -i pos switch, but I dont know how to get that position for specified file.
algorithm:breada input: file system block number for immediate read file system block number for asynchronous read output:buffer containing data for immediate read { if(first block not in cache) { get buffer for first block if(buffer data not valid) initiate disk read } if(second block not in cache) { get buffer for second block) if(buffer data valid) //line 1 release buffer else initiate disk read //line 2 } if(first block was originally in cache) //line 3 { read first block return buffer } sleep (event first buffer contains valid data) return buffer }
Here is an algorithm for block read algorithm. I have problem in line 1: If buffer data is valid why is it releasing the buffer? line 2: If buffer data valid why is it initiating disk read. It should have read directly from buffer? line 3: It should be the first condition as if it is there in cache then it should return it without delay?
I'm looking for a write one, read many file synchronization, file system or similar technique. In fact I want a to imitate a zfs_send/zfs_receive similar behaviour on Linux. My requirements are pure local (or in terms of distributed file systems: rack-aware) file handling with remote synchronization. Some random features/requirements I want to achieve are (I use the terms file and "file system" here interchangeable, as I don't care wheter I have to synchronize file based or use full file system supporting that): Access on files from a specific host is pure local, i.e. the node has a full copy of a file, no parts are distributed. Read and write access is local, the remote side gets synchronized with write changes only Write changes on the remote side are non-blocking and asynchronous No need for concurrent file access, concurrent, distributed locking and so on Every file is changed by a single node only, other nodes have read access The file "owner", thus the node allowed to write files must be changeable Similar techniques (some as technology concept, not usable for me) exist, among those DRBD, MySQL Replication or even pure rsync.
I don't care whether I'm referring to a pure local solution (i.e. between two block devices) or a client/server mode. DRBD won't fit because its a peer to peer solution, I need to synchronize a lot of clients with a central storage through that way where DRBD just mirrors from peer to peer among two nodes and doesn't allow another node to take over the role of the primary node (i.e. node A is master, storage B secondary, I want to change to a thrid node C which becomes master and receives hence a full update from storage B.
Just as a guess, I'd make a local LVM volume on every node where write access happens. In the same time there exists a iSCSI target with multipath to a remote hosts which is shared with every node, again providing a clustered LVM. So I'd need to synchronize a local LVM volume with a remote LVM image. The question is just by which technique I could achieve that (i.e. as RAID 0, where every read and write goes to one node only and doesn't wait the other node to succeed). I could achieve this with rsync by a cyclic push to the remote host, but the problem is, that rsync isn't block based thus I'd need to synchronize every time the whole file, not only changes.
Is it possible to setup apache to normally block an IP from accessing a site until that IP is in a database/file?More or less, I need a login system that another script can add/remove the IPs and the site can be accessed by only those IPs.
can I change the ECC code for a block of a file stored on a flash drive by any means ? of a file stored on a HDD (though I don't think there would be a difference between the two)Maybe , through some hardware interrupts or anything like that?Also if possible I need the solution to be in C/C++.
I have just installed Debian testing on my new desktop and I am not very happy with performance - when I perform a disk intensive operation, e.g. upgrade packages in the system, everything seems to freeze, e.g. changing tabs in Iceweasel takes 3 seconds. I run the Debian on my 3 year old Thinkpad X60 ultra-portable, and I don't have these issues. (every single parameter of the laptop is much worse than the desktop).
I am using the default packaged kernel and scripts.
I run
hdparm -t /dev/sda1
And I got around 96GB/s, which is expected. What else can I try to make it work better?