/tmp Partition Dissapear After Reboot

Dec 13, 2008

I recently created a /tmp partition to get it secured to avoid file execution from that dir.

So, created a partition for tmp:

cd /dev/; dd if=/dev/zero of=tmpMnt bs=1024 count=1000000
mkfs.ext3 /dev/tmpMnt

Then mounted the partition

mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp

Configured /etc/fstab so the partition is mounted after every reboot:

[root@server.myhost.com:~]cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
LABEL=/tmp /dev/tmpMnt ext3 loop,noexec,nosuid,rw 0 0

[root@server.myhost.com:~]df -ah
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 224G 3.1G 210G 2% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
/dev/sda1 99M 21M 73M 23% /boot
tmpfs 1014M 0 1014M 0% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
/dev/tmpMnt 962M 18M 896M 2% /tmp

[root@server.myhost.com:~]ls -alh /dev/tmpMnt
-rw-r--r-- 1 root root 977M Dec 12 18:00 /dev/tmpMnt

Now, after rebooting the system the partition is no longer there?? (and of course, not mounted /tmp due to this)

[root@server.myhost.com:~]ls -alh /dev/tmpMnt
ls: /dev/tmpMnt: No such file or directory

This was done under a plain RHEL 5.2 box.

View 9 Replies


Raid Disk Partition Errorc :: Warning: Invalid Flag 0x0000 Of Partition Table

Mar 16, 2008

I have a disk in raid, but it seems raid is not working correctly. I took it out, and plug into another server without raid. However, fdisk shows error


#fdisk /dev/sdb
device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.

The number of cylinders for this disk is set to 20023.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help):

Should I correct the partition table now, or should I put it in another raid for checking?

View 2 Replies View Related

Resize Partition/create New Partition/lvm

Jul 4, 2008

i have centos 5 server i want install xen on it on my server is just one partion how may i resize this partion( without format partion/with put delete data) and then create lvm partion?

View 0 Replies View Related

LVM Partition

Jul 31, 2009

we can able create lVM partition but just we have 9 GB lvm partition i cant create more than or use full disk space

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 91201 732572001 8e Linux LVM

View 4 Replies View Related

New Partition

Jun 14, 2008

I have migrated one raptor disk to a 4 raptor raid 10 disks.

I was threated to being blocked from their helpdesk because they say it is a hardware issue.

I need help on 3 things:

- Is possible to just create a new partition on the not used drive ?

- Is this a software or hardware issue ?

- Can you recommend another support in case i am banned from the actual support ?

> root@server01 [~]# fdisk -l
> Disk /dev/sda: 299.9 GB, 299978719232 bytes
> 255 heads, 63 sectors/track, 36470 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Device Boot Start End Blocks Id System
> /dev/sda1 * 1 13 104391 83 Linux
> /dev/sda2 14 268 2048287+ 82 Linux swap / Solaris
> /dev/sda3 269 395 1020127+ 83 Linux
> /dev/sda4 396 18235 143299800 85 Linux extended
> /dev/sda5 396 18235 143299768+ 83 Linux

View 3 Replies View Related

Create A Partition In A Vps

May 15, 2009

How can i create a /tmp partition (as cpanel recomends) in my openvz vps to install cpanel?


/tmp 1 GB (1024 MB)
/ Grow to fill disk.

View 1 Replies View Related

Partition Of VPS Windows

Mar 29, 2009

I have VPS Windows. I want to resize partition C 50Gb become 20Gb and then create partition D 30Gb for data , I used softwares Partition Manager 8.5 Enterprise Server Edition, Acronis Disk Director Server 10.0.2169 but I can't.

I used command line :

sfc /scannow

to check HDD on this VPS Server 2003 64b but can't too.

View 3 Replies View Related

Centos 5 Partition HD Via SSH

Apr 22, 2009

my DC has partitioned my server really complicated and im trying to install various different control panels and im running out of space, so id like to combine all my partitions into one.

How would i do this via SSH in centos 5.2?

View 7 Replies View Related

Partition /usr Full 100%

Nov 25, 2008

i have problem and make all solution and the problem stay
the /usr partition is full 100%

i remove all logs in :
and make du -h --max-depth=1 in /usr that's the monitor :
76K ./doc
37M ./sbin
366M ./src
110M ./X11R6
14M ./php4
176K ./man
16K ./lost+found
24M ./evolution28
2.2G ./local
12K ./etc
19M ./libexec
1.2G ./share
62M ./include
181M ./bin
362M ./java
958M ./lib
1.4M ./kerberos
6.4G .

View 7 Replies View Related

CentOS5 - HDD Partition

May 14, 2008

I'm trying to install CentOS5. Although the default partition should work fine for me, but I would like to create my own partition for /var, /usr/, /tmp, /swap, etc. Can you recommend me a good partion including the size. My server has 4GB RAM and 500GB SATA2 HDD. I don't use much space of HDD.

View 10 Replies View Related

Creating A New Partition

Mar 6, 2008

The server I got from LayeredTech has two hard drives, obviously they set up the first hard drive with Linux etc.

The second hard drive is just there, not showing any partitions in 'fdisk' when I checked, so I assume they just leave it blank in every new server for the owner to deal with however they want.

I've been looking up guides to create a new partition for the full size of the hard drive and then mount it. However, it hasn't been very successful. Everytime I created the partition in fdisk, I have to set a size, and then when I mount it, it only says that the drive is ~98MB big.

Is there a way to partition the drive to its full capacity? And then mount it somewhere on the system? Or anywhere I can go to to find out easily?

View 7 Replies View Related

Resizing Partition

Apr 23, 2008

I recently ordered a new dedicated machine and for some reason the guys set it up so the /home partition is a massive 250GB, and the / partition is a tiny 20GB. Since that's where all the plesk domains will be storing their files, I'd like to resize things a bit. I'm thinking of making the / partition 200GB and the rest for /home

It's a CentOS machine and the filesystems are ext3.

How can I do this resizing, and are there any caveats I should be aware of?

View 6 Replies View Related

How To Partition Drive

Mar 28, 2008

im assembling my server now....waiting on the 90degree connectors. It is as follows:

SUPERMICRO CSE-512L-260B Black 14" Mini 1U Server Case
ASUS M2N-MX SE Plus AM2+/AM2 NVIDIA GeForce 6100 Micro ATX AMD Motherboard
AMD Athlon 64 X2 4200+ Brisbane 2.2GHz Socket AM2 65W Dual-Core Processor
Dynatron A48G 70mm 2 Ball CPU Cooler - Retail
2gb ddr2 6400 ram
Seagate 500gb 7200.11 32mb hdd
WD 37gb raptor 10k rpm

the wd drive was lying around the house so i figured id add it since i had an extra slot and figured the speed wouldnt hurt.

My question is....how should i partition the drives.? I have 500+gb of space on 2 hard drives. I plan on using centos 5.1 and am downloading the iso now.

View 1 Replies View Related

Best Possible Partition Scheme

Jan 21, 2008

What would be an optimal security partioning scheme for a C2D server with a 160 gb HD
Usage for small web hosting company

I dont feel safe with the default setup that I have heard of with the company

View 1 Replies View Related

Raid1 Partition

May 26, 2008

If this is not in the right forum for this... I'm sorry didnt knew where else it may go.

I have to build a new server with RAID 1 and WHM/Cpanel installed (in fact i dont have to, but i need to learn ASAP and my boss gave me an old server for practice).

I've seen the installation guide of cpanel but the sizes of the partitions apply to a disk of 80 GB (i think so) so is there any way to calculate the size of the partitions, regardless of disk size? cuz mine are of 250 gb each.

I'm trying to install it on centos 5 on text mode, so far i have been able to successfully install the system (with partitions of any size... since is a test doesnt matter) with RAID 1.

After that i ran cat /proc/mdstat and in some partitions shows me this


I've read in some places that this is not a big issue... but in other places says it is... maybe i did something wrong

View 2 Replies View Related

Renaming A Partition

Jun 21, 2007

I've spent a while on google and the forums but couldnt find an answer to a question.

Is it possible to change the name of a partition in linux?

e.g. its currently called Disk /dev/mapper/VolGroup01-LogVol00 (/)
But i would rather name is something normal like /dev/sda1

Is this possible with out losing any data?

If so how can this be done?

View 3 Replies View Related

Web Server Partition

Mar 30, 2007

My PHP/MySQL web application will be put in a unix/linux environment, and the guy who is setting up the server is asking me this:

Do you have any partition requirements?

I don't know too much about hardware, how should I answer him? do you have any suggestions?

View 4 Replies View Related

Plesk Disk Partition?

Apr 30, 2009

I have 2 x250 gb disk on a server. What configuration would be the best for partition to run Plesk and webhosting on the server?

I want www files on 2nd disk and server is hosted at Softlayer that we can reload server from web interface.

View 1 Replies View Related

Partition Is Recommendable For Openvz

Oct 31, 2008

partition is recommendable for openvz

Which project of partition is recommendable for openvz in the main server?

View 9 Replies View Related

Securing Tmp Folder/partition

Oct 31, 2009

Should I secure my tmp folder/partition so nothing can be run/executed from it

Im running plesk 9 centos 5.3

How is this done

View 4 Replies View Related

Way To Clean Up /boot Partition

Mar 14, 2008

I've got Centos 4 and I'm wondering what's the best way to cleanup my /boot partition?

Tried to do a yum update tonight and it included kernel, amongst other updates that belonged there so it stopped. I've googled around for commands to run and whatnot, but no go... or I just can't find it... if I had to clean it up I have an idea already about what to do, but I want to ask for advice first to see if there's an easier way.

so, how do people here clean up that partition?

View 4 Replies View Related

Access Corrupt Partition

Jun 25, 2008

I have two partitions on my hard drive, each have an installation of windows XP, the old partition got corrupt and I can no longer boot windows from it, however I am able to see the files when on the other partition, the problem is I am unable to access the files.

Is there anyway I can get permissions to delete/move those files?

View 3 Replies View Related

Partition Scheme For CPanel

May 31, 2008

I just received a new server, I have been using always the partition scheme 'x2 ram swap, 1GB /tmp, /boot and /", but im not sure if I should get the new server re-formatted with that scheme (the HD is 250GB, so I will get 2GB /tmp), or stay with the current one:

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 7.8G 343M 7.1G 5% /
/dev/sda8 198G 1.1G 187G 1% /home
/dev/sda6 996M 39M 906M 5% /tmp
/dev/sda3 7.8G 2.4G 5.0G 32% /usr
/dev/sda2 9.7G 390M 8.9G 5% /var
/dev/sda1 122M 11M 105M 10% /boot
tmpfs 1014M 0 1014M 0% /dev/shm

I dont really see anything better, since I have all the available space in my old scheme. Anyway, which one do you think is better for a cPanel server, or you like to use and the reason?

View 2 Replies View Related

PHP Work With Noexec Partition As Cgi And Others Cant

Jun 26, 2008

I have webserver running php with apache suexec and my /home partition is mounted with noexec in fstab.

My httpd.conf includes line like
Action application/x-httpd-php5.cgi /cgi-sys/php5.cgi
AddHandler application/x-httpd-php5.cgi .php

everything works perfectly. However I tried same configuration for python and perl and it did not work. But it worked if I mounted /home without noexec.

What makes php so special that it can work with noexec partitons as cgi while others cant? I would really like to know as I would like to run perl and python with noexec partitons.

Please dont discuss alternatives to noexec flag. This would be off topic.

View 2 Replies View Related

Optimal Partition Setup

Apr 13, 2008

I just purchased a dell poweredge in order to move my website to its own dedicated server. I have a few questions on the best linux partition setup for a webserver. The system has 8 gigs of ram, raid 10 setup with four 15k rpm drives and two quadcore cpu's.

The os is CentOS 5.1

The server can have up to 30,000 uniques in a single day and can be somewhat database intensive.

Does anyone have a recommend partition setup, besides the default?

With 8 gigs of ram, what is the recommend swap? I've seen rules that say anything over 2 gigs of ram, the rule is S = M+2. So that would put me at 10 gigs swap. Is that overkill?

Should i make a seperate partition for log files?

View 4 Replies View Related

Partition My Server And Provide A Few VPS

Apr 13, 2008

I'm planing on virtualizing my server and selling off windows 2008 virtual machines running on windows server 2008 hyper-v.

Is it common for people with dedicated servers to sell off virtual slices?

View 5 Replies View Related

Cpanel Install And HDD Partition

Jul 16, 2007

I have a server without cpanel and it have this partition details :

server-rescue / # df -h
Filesystem Size Used Avail Use% Mounted on
228G 134G 82G 63% /
none 1.9G 56K 1.9G 1% /mnt/unionfs/etc
none 230G 134G 84G 62% /etc
none 1.9G 720K 1.9G 1% /mnt/unionfs/var
none 230G 134G 84G 62% /var
none 1.9G 0 1.9G 0% /mnt/unionfs/root
none 230G 134G 84G 62% /root
none 1.9G 4.0K 1.9G 1% /tmp
udev 1.9G 160K 1.9G 1% /dev
shm 1.9G 0 1.9G 0% /dev/shm
/dev/sda2 226G 28G 187G 13% /mnt/sysimage

what I can do for this partition before start Cpanel Install?

View 5 Replies View Related

Partition Disk (/) 80% Full

Sep 12, 2007

i have the partition (/) 80% full ; what should i do? the picture below


note that i have raid 1 .

View 10 Replies View Related

Partition Sizes Layout

Aug 10, 2007

I have a dell 2950 server with raid 5 + a hotswap.

There are 4 73G 15K drives with TWO dual quad process.

4G mem

I was reading that the swap space s/b 2X the mem or 8Gigs.

The swap drive should be at the outer edge of the drive for speed.

Or drive C, but with these fast drives is it really going to matter

My layout idea so far is as follows

8 swap
20 OS and programs
20 SQL databases and websites
10 log files
10 downloads and upgrade files.

View 13 Replies View Related

Should /home Be Its Own Partition When Using R1soft, Or Can It Be Part Of /

Aug 7, 2008

Should/home be its own partition when using r1soft, or can it be part of/?

View 7 Replies View Related

=make Partition In Linux Debian

Apr 19, 2007

yesterday i order one server in netdirekt but the server only have one hdd mount i need mount the other but first i need make one partition of it


Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 30140 242099518+ 83 Linux
/dev/sda2 30141 30401 2096482+ 82 Linux swap / Solaris

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

can anyone help me to creat a partition for /dev/sdb with 250.0GB ?
for then i mount like that : mount /dev/sdb /home/user/hdd2

I think is that if I'm wrong let me know

View 4 Replies View Related

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