Programming :: Combine 40 Different Mount Points Into One Bytes Free/used Number?

Feb 18, 2011

We have a program that catalogs to 40 different mount points. The program is fine as long as thier is free space on at least one of the 40 mount points. My boss wants me to come up with a script that will email us daily to know how much overall free space is left. I know I can do a df but I don't know how to combine the 40 mount points into a single disk used/disk free report.

The 40 mount points are /dev/mapper/areaxx, xx being 01 to 40.

View 4 Replies


ADVERTISEMENT

Programming :: Shell Script On Placing Files Across Mount Points ?

Feb 19, 2010

I have a database with x number of files (192 at the moment, but will vary from time to time). I am going to copy these files to another location on the same server thorugh shell script. Problem with total size of 192 files is approx 900 GB (again this will vary from time to time).

My shell script should calculate the free space available at present in the server on each of the mount point (can be filled till it reaches 95%). Always 5% free space should be available free for future growth.

After calculating, it should prepare another flat file with following details:

View 14 Replies View Related

General :: What Number Of Bytes Should Set The Bs To In The Dd Command

Apr 3, 2011

I have just created a usb boot disk so that I can install Fedora 14.I used the following which was successfully. However, I am left wondering what does the bs parameter actually does. I know it mean bytes and copies these at a time. But how do I know what to set it to?dd if=F14-Live-i686.iso of=/dev/sdb bs=8MIn the above example it is set to 8MB. However could I set this to any value that I want?

View 1 Replies View Related

Software :: What Is Maximum Number Of Bytes Is Possible To Send From Udp Socket?

Oct 1, 2010

I am created one udp socket. i want to send the data(bytes) to another PC.i need to send 614400 bytes of data. while sending it saying error like" message is too long ". so what is the maximum possible data can i send from a socket?

View 3 Replies View Related

Ubuntu :: Combine Free Space Partitions - Drive

Feb 5, 2011

My machine is running Windows 7, but I've decided to dual-boot Ubuntu. I'm on the manual partitioning screen. Originally, the Windows drive took up the whole drive. I took 100 GB off of it to use as an Ubuntu drive. From that, I created the swap partition. Afterwards, I decided I wanted some more space for Ubuntu; so I took another 40 GB off of my Windows partition. Now I have 2 free space partitions. How can I combine them? It seems I'm only allowed to install Ubuntu on one or the other.

View 2 Replies View Related

General :: Hard Drive - Driver Keep Saying 0 Bytes Free And Only Root Can Write?

Nov 26, 2010

I have a very very insane problem with my ssd sata harddisk. I did fill the harddisk, and Thunderbird complained about "no space left on device". But even if I delete some files from the harddisk, df will still say 0 blocks free. But it will decrease the number of used blocks. So it looks like it is freeing the blocks and deleting the files, but it don't put the blocks back to the free pool.

But here is where things get insane: If I log in with my normal user, I get a "No free space" when I try to write to the harddisk. But If i log in as root I can write to the file system, despite the fact that df is saying 0 blocks free. I did try to run fsck -f but it just run its test and then say that anything is fine. But it run for less then 10 seconds, is this expected on a 40GB ssd partition?.

[Code]...

View 3 Replies View Related

Ubuntu :: Mount Single Directory To Multiple Mount Points

Jan 27, 2011

I have a requirement that seems to be unique in nature. I have multiple clients who are caged to their home directories. I would like to "share" a directory which exists above these chroots with all these caged users. I know this can be accomplished using mounts but my problem is, how can I mount a single directory to multiple mount points located in each users home dir? Can this be done in the fstab file?

View 9 Replies View Related

Ubuntu :: Error: Allowed Memory Size Of 20971520 Bytes Exhausted (tried To Allocate 7680 Bytes) In /var/www/index.php On Line 2

Jan 9, 2011

I recently had to move to a new machine, everything went well except for one thing. I did fresh installation of LAMP server all with default configs. Every time I'm using PHP script to that invokes include, require or require_once I get the following error:

Code: Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 7680 bytes) in /var/www/index.php on line 2 index.php file: PHP Code:
<?php    include "index.php";?>
icukapi.php file:
PHP Code:
<?php    echo "test";?>

My memory_limit in php.ini is set to 20M. I tried to increase that however it didn't quite work. PHP seems to allocate all possible space and return that message every time i try. If somebody has an idea of how to fix it I would be more than grateful. I spend quite a long time searching for an answer however the all things i found suggested increating memory_limit which in this case doesn't work.

View 1 Replies View Related

Red Hat :: ISCSI Connection Mount Points?

Feb 18, 2010

want to create a iSCSI connection which mounts /home directory to a share on my NAS via iSCSI. Does anyone know if this is possible on a RHEL 5.4 machine? I am building the server from scratch and then creating the iSCSI mount point in /etc/fstab. After the /home directory is mounted on the mail server, I will copy all the mailboxes over to the /home directory via iSCSI.

View 4 Replies View Related

General :: Different Folders In A Partition As Mount Points?

Apr 7, 2010

i want to have 2 partitions. one is called system. the other is private.

in the private partition i've got some folders i want to mount into system as system folders.

folders in private:

- www
- home

mount points in system:

- /var/www
- /home

is this possible? cause it seems that you can only specify a whole partition to use for a mount point and not a folder in a partition or am i wrong?

i run ubuntu server.

View 2 Replies View Related

General :: Vanishing Mount Points On Unmount?

Jun 19, 2011

When I insert an SD card in the reader, slackware creates a mount point and mounts my card volumes. On unmounting the volumes, the mount point vanishes. How do I achieve this manually?When I attempt to mount a volume using the mount command, the mount point folder must exist and the folder does not vanish on umount. Is there a way to create a mount point if it does not exist? and ensure that the folders vanish on umounting?

View 2 Replies View Related

General :: Show All The Current Mount Points?

Apr 9, 2009

I would like to know how to show all the current mount points in the file system. I tried mount but it didn't show the nfs mount point.

View 5 Replies View Related

Ubuntu :: Display Mount Points On A Partition?

Jan 27, 2010

If there is a partition. e.g /dev/sda1 is there a command that I can use toisplay all mount points on this particular partition.

View 3 Replies View Related

General :: NAS Mount Points Not Visible On System

Apr 18, 2011

Coming from non linux bod - but to create mount points on nas that are visible do we have to put entries in both fstab and rc.local?

View 1 Replies View Related

General :: Sequence Of Partitions / Mount Points?

Mar 1, 2011

figure out the best partition layout for my linux installation which I'm about to have on my laptop. Having read numerous articles on partitioning in linux I've gathered some ideas, still there was no let's say a clear explanation as to the sequence the mount points should be arranged on the disc...What I have in mind is to use a single disc space as efficiently as possible considering the head travel. The pc is a laptop, 160GB HDD and will be used as a normal desktop with some simple sound processing. Distro Linux Mint 10. I'm planning to have such partitions and all will come after a Win7 installation:

/boot -> some write it's not necessary in dual-booting, some that it's good to have for security
swap -> with 4GB of RAM i don't suppose i'll use it
/

[code]....

have the most heavily utilised partitions close to each other so the head doesn't move for large distances. The placement also makes a difference as the closer to the inner rim of the disc the worse performance. I'm also not sure about the sizes. Read posts with recommendations but still judging by installations on a different laptop and virtual machine e.g. 5GB for /opt is a bit too much as there's almost nothing in there. Certainly /usr fills up, /var too from what I've observed. / also has scarce data in it so I'm wondering if giving them e.g. 5 gigs each won't be a waste of space resulting in greater head travel.

View 10 Replies View Related

Fedora :: Finding A Free X Display Number?

Mar 9, 2010

how to find a free X display number?

I am using Xephyr to create a windowed session for logging in as another user. It needs its own X display, though. Obviously I can just give it :1.0 and hope for the best, that it would be better to identify the first free display and use that.

But I don't know how...

View 2 Replies View Related

Programming :: Fill A File With N Bytes Of A Given Value?

Dec 17, 2008

How do i fill a file with <n> bytes at a given value ,for example 3?

View 3 Replies View Related

Debian Configuration :: Fresh Install - Using LVM For Mount Points

Feb 6, 2011

I'll start a fresh installation of a debian stable server and I would like to use LVM on this. So, I started to read lots of documents about LVM and found different flavors on partitioning with it. I'm thinking in a partition schema which might use LVM for those mount points that tends to grow in time, for instance:

/boot (primary partition)
/ (primary partition)
/home (lvm)
/usr (lvm)
/var (lvm)
swap (lvm)

Am I right on this schema?

View 2 Replies View Related

Fedora :: Convention For Permanent Partition Mount Points?

Aug 24, 2009

If /mnt & /media are for temporary mount points and removable drives, what is the usual convention for locating permanently mounted partitions for all users on the computer? e.g. I have a partition for photographs, I'll just call it "photos" would it be bad form to mount it as /photos or something like /my_hdd/photos ?In practice it probably won't matter, but I want to make sure it's easy for anyone else to perform admin tasks on the computer when I'm not available.

View 2 Replies View Related

OpenSUSE Hardware :: How To Put Mount Points For New Extra Disks

Aug 24, 2010

how do i mount extra harddrives...?

- After a hardrive crash which took out my opensuse 11.2, I installed three new harddrives instead of the old ones. I have installed xp. To see of I could triple boot, i thereafter put in linux mint. I did not like that and installed opensuse 11.3 - to ensure it would place itself on the two second harddrives (formatted in ntfs and with some data on) i before installation took those cables off.. And now alas.. there are no mount points.

So I tried yast, and found the partitioner, chose edit tried to put mount points .. however.. nothing seemed to have happened...

View 9 Replies View Related

General :: Use Network Drives As Mount Points During Installation?

Apr 7, 2010

Is it possible to use network storage locations as mount points during installation?

cause i want to separate system (ubuntu) with data (personal files).

eg. if i have 5 computers i don't want to recreate /home/david 5 times.

so i want to mount networkdrive/home to /home in local ubuntu server.

so ALL users home folders could be used and maybe also networkdrive/projects to /projects.

in that way its ok if i by accident repartitioned the local ubuntu server cause all data is not there on that server, but in the data server.

is separating "data" from "logic" good in this case?

and is it possible? what protocol should i use for the mapping over internet? (maybe the server is in Sweden, and the data is in Norway).

View 1 Replies View Related

Ubuntu :: Permissions Of Mount Points For Automounted Devices

Jan 14, 2010

Ubuntu 9.10. I have a problem - when I mount other partitions of my hdd or the system automounts usb disks these are mounted in /media directory with permissions 0700. So there are two problems there:
- When I switch user on my desktop to another that user can't read data from the usb disks
- I can't share data through network because smbd doesnot have read permissions on the created mount points

I think editing /etc/fstab is wrong way, there would be more right way to change permissions on mount point. I tried to change/add parameters umask, allow_other in gconf-editor (/system/storage/default_options, subsections vfat and ntfs-3g) but that does not show any results. Article [URL] recommends Open Places → Computer. Every volume except the generic File system one should have a Drive and Volume tab in its properties dialog where you can set mount options. But I did not find those tabs. Where should I set option to mount usb disks with permissions rwx for every user of my system?

View 9 Replies View Related

General :: Mount Points And Primary Partitioning Queries?

Mar 17, 2010

1. What difference will it make if I set the mount point to "/" instead of "/boot" and vice-versa ?

2. I heard somewhere that the data on a primary partition can be easily recovered in case of some failure.

If it is so then what out of the following should IDEALLY be created as primary partition ?
/usr
/home
/boot

I think /usr and /home both need a primary partition , then what about /boot, Will I be not able to recover something in case of failure if I don't set /boot as a primary partition ?

View 5 Replies View Related

Programming :: How To Combine A And B To C

May 12, 2010

Code...

how to combine a and b to c

View 8 Replies View Related

Ubuntu :: Free Space Shows Different Number In Folders?

Jun 23, 2010

I don't know how to explain this but the free space indicator in folders shows a different number than in Gparted. The Picture pretty much shows it all.

View 2 Replies View Related

Programming :: Read X Bytes From Serial Port?

May 5, 2010

I am trying to write some code that interfaces with an AVR over a serial port. Basically I send a command then read the output which is 6 bytes. I need to receive all 6 bytes before the program continues. Is there a way to do this? If I use read() it returns -1 unless I add a delay before reading the port. Is there a way to get it to read the 6 bytes as soon as they arrive?In python you simply say how many bytes you want and the max time you are willing to wait which seems a whole lot easier than read

View 1 Replies View Related

Programming :: Converting Vector Of Bytes To String C++

Mar 4, 2011

I have a vector of octets that needs to be converted to a std string. I'm currently doing it this way:

Code:
stringstream ss;
for (unsigned int i=0; i < data.size(); i++
{
ss << data[i];
}
string s_data = ss.str();

This works, but is there any better way to do it?

View 2 Replies View Related

OpenSUSE Hardware :: Label USB Stick So It Will Mount At Unique Points?

Mar 1, 2010

I have a few generic USB sticks lying around, and a few more SD/microSD chips that I use with openSUSE. Is there any way to label/ID them so they mount at unique points in /media, so I don't blast one accidentally? In mkfs.vfat there is a "-n volume-name" that looks promising, but I can't find a way to set that after the mkfs.

View 2 Replies View Related

OpenSUSE Hardware :: Mount Points And Disk Drives Not Visible?

Jul 29, 2010

Since I installed 11.3 I have noticed the /srv and /local mount points are empty! I also can no longer see my hard drives that have no mount points. I couldn't mount any hot plug media either but now have that fixed. I won't go into the mess I have with my video card and getting the x server started....

I did have Xampp installed to /srv/www but don't even know where it is now!

fdisk -l
Disk /dev/sda: 36.4 GB, 36401479680 bytes
255 heads, 63 sectors/track, 4425 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

[Code]....

I had no problems with this in 11.1 until a month ago when I updated and it seemed to keep losing the permissions for these drives as once I accessed them via Dolphin they would be accessible. Now they are not even visible in a file manager!

View 2 Replies View Related

Ubuntu Installation :: Manually Setting Partitions And Mount Points?

May 24, 2011

I have figured out manually setting the swap partition and setting "/" as the mount point for the primary partition during install. If during install, I want to create another partition to keep the OS separate from installed programs and such, to be able to do a clean install every 6 months and not loose everything (or anything) I have done prior.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved