General :: Monitor Disk Mounts ?
Oct 1, 2010
What is the best way to detect disk mounts?
I'm setting up a system to automatically detect disk mounts, so I'm looking for a file or something where disk mounting is recorded.
There are several files that look promising, but I am a LINUX novice, so I don't quite understand the exact roles each play:
Of the above files, etc/rmtab looks most promising.
View 2 Replies
ADVERTISEMENT
Jul 30, 2010
Let's say I have a machine exporting 3 paths via NFS.
Code:
/exports/foo
/exports/bar
/exports/bla
I would like to know if there is a way to determine how many clients have each export mounted at any given time. I don't necessarily need to identify which client has mounted what, just the number.
Code:
/exports/foo is mounted by 3 clients
/exports/bar is mounted by 1 client
/exports/bla is mounted by 0 clients
View 2 Replies
View Related
May 11, 2011
I have one hard disk (call her HDA) that contains nothing but a single ext4 partition containing a backup of all my important data. I did a clean install of 10.10 on my primary hard disk (call her HDB) and from there proceeded to the 11.04 upgrade. In 10.10, I was able to read HDA just fine. However after the upgrade, I can no longer mount this drive.
When mounting from file browser:
Code:
Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
The end of dmesg said the following:
Code:
dmesg | tail
[49.853308] wlan0: associated
[50.084874] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[52.859533] Intel AES-NI instructions are not detected.
[52.890955] padlock_aes: VIA PadLock not detected.
[60.710006] wlan0: no IPv6 routers present
[82.130904] EXT4-fs (sda): bad geometry: block count 122096646 exceeds size of device (122096381 blocks) .....
[96.010858] EXT4-fs (sda): bad geometry: block count 122096646 exceeds size of device (122096381 blocks)
[107.791812] EXT4-fs (sda): bad geometry: block count 122096646 exceeds size of device (122096381 blocks)
[322.758948] EXT4-fs (sda): bad geometry: block count 122096646 exceeds size of device (122096381 blocks)
[516.932403] EXT4-fs (sda): bad geometry: block count 122096646 exceeds size of device (122096381 blocks)
For some reason my hard disk has a block count greater than the size of my device. I've done my background searching on this and tried a command line utility I've never heard of before:
Code:
# sudo e2fsck /dev/sda
e2fsck 1.41.14 (22-Dec-2010)
The filesystem size (according to the superblock) is 122096646 blocks
The physical size of the device is 122096381 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? yes
And this is as far as I've got. I'm really hesitant to start fiddling around and experimenting with possible fixes because the backup data on this drive holds a decade's worth of work for me and is extremely valuable (hence why I have a spare drive for backups). I really didn't think that the Ubuntu upgrade process would mess with this drive, seeing as the Ubuntu install was contained on an entirely different drive. Any safest way for me to recover this data? Data preservation is the #1 priority for me here. I need to copy all of this data over to my primary drive where Ubuntu is installed. After that, I can reformat this "broken" backup drive.
View 4 Replies
View Related
Nov 24, 2010
I have multiple ubuntu machines and I connect to one through an NFS share. I have done this for a few years without issue. However, since re-installing ubuntu and upgrading to 10.4 I have a problem with my system hanging when the remote shares are lost.
Basically, I can power down the machine downstairs, and my main machine then has a fit. I can not open any folders in ubuntu, nor can I shut down. If I try and shut down the system hangs, last time it hung for 8 hours before I had to kill the power.
These are the lines in my fstab
I don't know what I've done wrong, or how I can prevent this from hanging. I have googled the heck out of this as well and can't seem to find an answer either.
View 2 Replies
View Related
Jul 2, 2010
We are graphing various system parameters using Cacti. One of our graphs shows hard drive reads and writes. A question came up: why do we need this graph?
View 3 Replies
View Related
Jul 19, 2011
I'm developing a website. I was wondering if there are any tools out there that make it easy to log and graph usage statistics of how my cpu, memory, disk and network are used.
I need to somehow know when I need to scale up / when I'm going to get problems soon.
I found http://sebastien.godard.pagesperso-orange.fr/
(command line thingy, not so useful because I'd have to write my own graphics and logging layer on top of it..)
View 3 Replies
View Related
Jan 17, 2011
I recently bought 320 GB Trancend external hard disk and working fine days back.Earlier i could copy from and to the hard disk with out any issue. I dont know what happened after that now i am not able to write any files in to the external hard disk. This is not NTFS formatted device. here is some of the out put from terminal.
Code:
sundar@sundar-sundar:~$ fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
[code]...
View 7 Replies
View Related
Jun 15, 2010
I'm using Linux in a large multi-user network. Let A be some group which I'm am member of, but which is not my primary group. According to chmod(2) I should be able to chgrp a file to group A. Trying to do so succeeds on a local as well as on a NFSv3 mount, but not on a NFSv4/Kerberos mount (EPERM). Are there any special considerations regarding chgrp when using NFSv4 mounts?
View 1 Replies
View Related
Apr 27, 2011
How do i check if NFS mounts are still up and running?
when i do the command MOUNT , i get some result, but how can i see (or check) if they still up and running? I'm not so familiar with this command, so i hope that someone can guide me
I know that there must be some NFS links mounted, so if one fails, i need to see that with like an echo or something.
View 12 Replies
View Related
Aug 18, 2010
I have googled for linux io monitoring, but most of the search results are about disk I/O monitoring, while i need to monitor I/O in general, e.g. bus master I/O, etc. and in particular, data transfers to/from video card, i.e. how much data is being transferred, when, etc.. Is there a tool for this?
View 3 Replies
View Related
Dec 11, 2010
I have a directory, /root/backup, that I mount and run a bunch of rysnc scripts against to backup my box. I'm running into a very recent problem where when I run this command:
A directory that once looked like this:
Goes to this:
It changes from root to www (another user on my system) and I have no idea why.
When I look at the /mount/procs file, I see this:
So it looks like the uid is correct...
I believe this is what is causing my rsync scripts to fail (they only copy over directories and not the files in those directorys and I get a lot of permissions failed errors)
All of this is run as root in cron jobs
As a note, here is a sample rsync command:
View 4 Replies
View Related
Feb 10, 2011
How would i use LVM to add these mounts for example?
View 15 Replies
View Related
Apr 19, 2011
I finally replaced my Windows with Linux.. However, I need to run applications and modify files that are on NTFS mounts. I am unable to change ownership, permissions, and groups on these files so I may modify them without having to copy. I have several times attempted to chmod, chgrp, chown, etc.. while logged-in as root user; however it is to no avail. The owner and permissions are still geared towards root. can I change ownership and permissions on NTFS files so I can modify them without having to convert/copy them over to ext4 or different file system?- Matbtw: I am using OpenSuse 11.4 and running Windows apps with VirtualBox (with Vista installation image). I still have Win7 on my computer (non-emulated) and I would like to keep some files on those NTFS partitions so when I occasionally need to boot into Win7 I can modify those files because Windows blows and doesn't support Linux.
View 5 Replies
View Related
Jul 17, 2011
My laptop now has 8GB of memory, so I think mounting a tmpfs over /tmp is a reasonable thing to do. I also want to prepare for getting a SSD in the near future.The computer has a 1GB swap partition and I've set vm.swappiness=20
1) There is also a tmpfs mounted to /dev/shm. Both have the default size of 50%. Is there a way to get /dev/shm and /tmp to share the same capacity without doing a symlink or bind?
2) Is the swap partition a good size (is that swappiness value ok)? What happens if /tmp runs out of room? Should I increase the swap size to something really large like 15G (because I have swappiness so low...)?
View 4 Replies
View Related
Mar 22, 2011
I have these file systems mounted without the nosuid options set.
debugfs on /sys/kernel/debug type debugfs (rw)
/dev/mapper/KusuVolGroup00-DEPOT on /depot type ext3 (rw)
/dev/mapper/KusuVolGroup00-HOME on /home type ext3 (rw)
/dev/mapper/KusuVolGroup00-VAR on /var type ext3 (rw)
/dev/sdb1 on /home1 type ext3 (rw)
Do I set the option in the fstab files or set the files directly.
View 2 Replies
View Related
Feb 9, 2011
this is my first post and I am not sure if this belongs here or in hardware.Now for the main post!
setup:
Dell Demension 4400
Intel(R) Pentium(R) 4 CPU 1.60GHz, 1 cores
[code]...
View 4 Replies
View Related
Oct 11, 2010
I need a utillity which wil monitor if disk is mounted or not. Is there a software or a script for that? I use fedora 12. Something which will send an email if disk is not mounted. I use encrypted disk, when power is off, after booting on, disk is not mounted on and I don't wan't to be automatically mounted on.
View 1 Replies
View Related
Jan 17, 2010
I have the default Conky script, but want it to also monitor my secondary drive.
View 9 Replies
View Related
Jul 16, 2011
i had configured the opennms but i didint able to get the disk space and memory alert by mail... and also i need a plgin gor opennms can u tell me wat plugins suit for opennmms monitoring tool ...
View 2 Replies
View Related
Mar 20, 2010
I am having problems with the refresh rate if the screen. In the refresh mode of the monitor in the monitor options have only one option 60Hz. I have LG 24 + ATI Radon 3870, and have already installed the ATI driver via Ubuntu download center.
View 1 Replies
View Related
Apr 20, 2010
I am now using Ubuntu 9.10. The prob is I am not able to increase the resolution of display. It is showing only 800 x 600 display. While trying to increase the resolution it is showing "Unknown Monitor". So, how can I detect the monitor so I can increase the resolution of my system.
View 3 Replies
View Related
Oct 10, 2010
I have a 2 TB disk in an external SATA dock, formatted with a single ext3 (Linux) partition, which doesn't show up in the Windows 7 Computer Management->Disk Management utility, even as a raw/blank disk. I've verified that there's nothing wrong with the disk by connecting it to my Linux machine and mounting it, and I've verified that the dock is functioning properly by connecting a different FAT32-formatted disk, which mounts flawlessly as expected.I realize that I can't actually read the ext3 partition without additional software (e.g., Ext3IFS), but why doesn't the disk show up at all? Is there some sort of stupid anti-Linux filter built in? Is there any way to force Windows to recognize the disk, so that I can at the very least use direct block access with it?
Background: I want to clone an identical 2 TB disk onto this one. Due to my hardware layout, it's much easier to have the source disk attached to one machine and the destination disk connected to another, and do the clone over the network (the network is not a bottleneck with switched gigabit ethernet), than it is to hook them both up to one machine.(1) I did this once before when both machines were running Linux, but I've since upgraded the destination machine and decided to switch back to Windows for regular desktop use. I've got Cygwin installed, and have verified that the same basic method (dd + nc) will work, but I can't do anything if Windows doesn't even consider the destination disk to exist.I only have one eSATA port on each machine. Opening them up just to do this clone is a rather large annoyance. Also, since this is my backup disk, I'd like to eventually automate the cloning from the active disk to another one that I regularly swap with a third disk that I store off-site.
View 1 Replies
View Related
Feb 4, 2010
OS: Debian unstable 32bit, kernel 2.6.32-2, grub 1.98 from late january 2010 (only have working net-access from work now, so I am grabbing information from memory). EXT3 and EXT4 support is compiled into the kernel along with chipset/scsi/sata support (not as modules), and I have tested to boot ext3 with it before proceeding. Prereq: my old disk started to have too much S.M.A.R.T errors, so I bought another one, put in a USB cabinet, added swap and ext4 partition/filesystem to it, and copied over all data from the old system to the new that was mounted at /dest using the command "find ./ -xdev -print0 | cpio -paV0 /dest". Swiched disks, so I now have the ext4 disk sitting at /dev/sda (partitions: sda1 => ext4, sda2 => swap), and booted into rescue-mode from cdrom, using /dev/sda1 as root with a shell on. After doing this, I performed the following commands:
mount --bind /dev /dest/dev
chroot /dest
modified the /etc/default/grub to instruct the kernel to boot using ext4, ran grub-install --recheck /dev/sda
ran update-grub to modify /boot/grub/grub.cfg (which looks as it should) After doing this, grub finds my partition and mounts it. It however stalls with the message: "warning: unable to open an initial console" and does nothing after this point. I have no ramdisk, but my old kernel booted fine from ext3 (and still does if I copy it to a ext3 partition), and since the ext4 support is compiled into the kernel - should I really need a ramdisk?
View 4 Replies
View Related
Sep 20, 2011
How to check if some folder is on a shared disk or on a local disk?
View 1 Replies
View Related
Jan 1, 2011
openSUSE 11.3 64-bit fully updated, running the latest K3B, 2.0.1. from the Packman repos with the codecs installed. Sometimes it starts up and runs fine, others the splash and then nothing. And again other times it will start and never show up until I reboot and then there it is. When I go to system monitor it will show under CPU% "disk sleep" if that helps. FWIW I have similar issues with Nero 4. I've added myself to the cd rom group and all of that.
View 5 Replies
View Related
May 18, 2011
I've got a question on free disk space. I'm currently running CentOS 5.5 on in Xenserver virtual environment. We've had an issue with disk space. My question is as follows: - from a ssh connection i run df -h this gives the value of 90% used leaving me with 9GB. If I use system monitor via a VNC connection the free disk space value is 20GB free on the same volume. Which one is correct? I do use SNMP to monitor the same volume and should alert me when < 10% is free I know this works as I set the alert threshold to < 90% I get an alert.
View 2 Replies
View Related
Mar 19, 2010
We are running IPmonitor to monitor the disk usage on our Linux servers. It does not seem to coincide with what is reported when running df -h. For example on a Red Hat 5.3 server - our IPmonitor shows that 85% is used on the /usr partition, however when I do a df -h on the server it shows that 91% is used. Why there would be a discrepancy? IPmonitor uses SNMP.
View 5 Replies
View Related
Nov 18, 2010
I don't understand disk sizes in Linux. I have a 500GB drive. It's ext4. I have run "tune2fs -m 0" on it to reserve the amount of space reserved for root to 0.
I'm using Ubuntu 10.04 that comes with a Disk Utility. When I run "System->Administration->Disk Utility (palimpsest)" the disk shows up as 500GB (see picture). But when I run df -h it shows up as 459GB. So, I don't understand the discrepancy.
When I run df I get the following:
Question: Why is Disk Utility showing me something different than "df"?
View 6 Replies
View Related
Oct 17, 2010
I have windows and linux distros on my /dev/sda. I tried to install fedora 13, but after reboot I cannot boot up to any of installed systems. I'm getting: Non-System disk or disk errorreplace and striky any key when readyWhen I use ubuntu 10, boot from first hard disk, I'm able to get GNU GRUB version 1.98...nd boot up to any system. but without ubuntu in a cd-rom I'm getting this error.I tried: grub-install /dev/sdX in one of my installed linux distros, but without any success.
View 1 Replies
View Related
Dec 22, 2010
subject: LINUX - release.5.4- verify disk details from linux
with sfdisk -s I can see the disk capacity as the following:
sfdisk -s
/dev/cciss/c0d0: 143338560
total: 143338560 blocks
but how to see also the disk details as disk manufacture ... etc.
hdparm -i /dev/cciss/c0d0
/dev/cciss/c0d0:
HDIO_GET_IDENTITY failed: Inappropriate ioctl for device
View 1 Replies
View Related