Sponsored Content
Full Discussion: resize /var/www (debian)
Top Forums UNIX for Advanced & Expert Users resize /var/www (debian) Post 302150294 by sumitpandya on Tuesday 11th of December 2007 12:12:39 AM
Old 12-11-2007
Add more HDD

Hi,
You can install one more HDD in system and create Partition/FileSystem on that.
fdisk /dev/hdb
press m for help, n for create partition, t for changing FileSystem
Then after you can mount that HDD partition on some temperory location.
mount -t ext3 /dev/hdb1 /mnt/tmp

copy all of your existing /var/www content to /mnt/tmp. Example
cp -dpRf /var/www/* /mnt/tmp
After "successful" copy make sure to "sync" then, you can remove the contents of /var/www
To test you can unmount /mnt/tmp and mount /dev/hdb1 partition to /var/www location.
Finally create this mount point entry in /etc/fstab file
 

9 More Discussions You Might Find Interesting

1. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

2. Web Development

var/www/html permissions

Hi, first post. I have no Linux experience. I have an e-friend that set me up a VPS and my website with Apache and FTP access so I could upload my files the way I do it regularly with my shared hosting. The OS in the VPS is Fedora by the way. Now the thing is: http ://www.mydomain.com presents... (0 Replies)
Discussion started by: JPA
0 Replies

3. UNIX for Dummies Questions & Answers

Permissions of the folder var/www

what should be the permissions of the folder var/www in my ubuntu ? I need it to be safe and at the same time I need ftp users to be able to edit it. I was wondering if I should create a group with all permissions and add ftp users to this group in unix. what's the standard way to do it ?... (4 Replies)
Discussion started by: aneuryzma
4 Replies

4. Solaris

/var/adm & /var/sadm

what is the difference between tha /var/adm and /var/sadm files in solaris 10 Os please can any one respond quickly thanking you (2 Replies)
Discussion started by: wkbn86
2 Replies

5. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

6. UNIX for Dummies Questions & Answers

How to protect directory var/www in debian?

hi i need somme help to protect directory in debian with user and pass var/www thank's (6 Replies)
Discussion started by: azzeddine2005
6 Replies

7. Debian

Help request. FTP user to var/www/html

Hi all. I appologise this is my first post, I will gladly have a further look around to see if this has been posted elsewhere, but so far it has not, or it doesnt quite explain in full what I need. If anyone here can help me out, I would really appreciate this. I want to make sure I do this... (1 Reply)
Discussion started by: Pinkfloyd
1 Replies

8. Web Development

$_SERVER['DOCUMENT_ROOT'] directs to /var/www not ~/public_html

Hi all, Exactly like my title says. I am learning PHP and MySQL and I used to use /var/www/ to host (contain or store) my files (.htm/.php) for testing. I could configure, finally, apache2 to use ~/public_html instead. Now I when I tried to use $_SERVER it still directs (I used echo to show... (7 Replies)
Discussion started by: faizlo
7 Replies

9. Shell Programming and Scripting

Csh , how to set var value into new var, in short string concatenation

i try to find way to make string concatenation in csh ( sorry this is what i have ) so i found out i can't do : set string_buff = "" foreach line("`cat $source_dir/$f`") $string_buff = string_buff $line end how can i do string concatenation? (1 Reply)
Discussion started by: umen
1 Replies
MOUNT_NTFS(8)						    BSD System Manager's Manual 					     MOUNT_NTFS(8)

NAME
mount_ntfs -- mount an NTFS file system SYNOPSIS
mount_ntfs [-a] [-i] [-u uid] [-g gid] [-m mask] special node DESCRIPTION
The mount_ntfs command attaches the NTFS filesystem residing on the device special to the global filesystem namespace at the location indi- cated by node. Both special and node are converted to absolute paths before use. This command is normally executed by mount(8) at boot time, but can be used by any user to mount an NTFS file system on any directory that they own (provided, of course, that they have appropri- ate access to the device that contains the file system). The supported NTFS versions include both NTFS4, as used by Microsoft Windows NT 4.0, and NTFS5, as used by Microsoft Windows 2000 and XP. The options are as follows: -a Force behaviour to return MS-DOS 8.3 names also on readdir(). -i Make name lookup case insensitive for all names except POSIX names. -u uid Set the owner of the files in the file system to uid. The default owner is the owner of the directory on which the file system is being mounted. -g gid Set the group of the files in the file system to gid. The default group is the group of the directory on which the file system is being mounted. -m mask Specify the maximum file permissions for files in the file system. FEATURES
NTFS file attributes NTFS file attributes can be accessed in the following way: foo[[:ATTRTYPE]:ATTRNAME] 'ATTRTYPE' is one of identifier listed in $AttrDef file of volume. Default is $DATA. 'ATTRNAME' is an attribute name. Default is none. Examples: To get volume name (in Unicode): # cat /mnt/$Volume:$VOLUME_NAME To read directory raw data: # cat /mnt/foodir:$INDEX_ROOT:$I30 Limited support for writing There is limited writing ability for files. Limitations: o file must be non-resident o file must not contain any holes (uninitialized areas) o file can't be compressed Note that it's not currently possible to create or remove files on NTFS filesystems. Warning: do not mount NTFS filesystems read-write. The write support is not very useful and is not tested well. It's not safe to write to any file on NTFS; you might damage the filesystem. Unless you want to debug NTFS filesystem code, mount the NTFS filesystem read-only. SEE ALSO
mount(2), unmount(2), fstab(5), disklabel(8), mbrlabel(8), mount(8) HISTORY
Support for NTFS first appeared in FreeBSD 3.0. It was ported to NetBSD and first appeared in NetBSD 1.5. AUTHORS
NTFS kernel implementation, mount_ntfs and this manual were originally written by Semen Ustimenko <semenu@FreeBSD.org>. The NetBSD port was done by Christos Zoulas <christos@NetBSD.org> and Jaromir Dolecek <jdolecek@NetBSD.org>. BUGS
The write support should be enhanced to actually be able to change file size, and to create and remove files and directories. It's not very useful right now. If the attempt to mount NTFS gives you an error like this: # mount -t ntfs /dev/wd0k /mnt mount_ntfs: /dev/wd0k on /mnt: Invalid argument make sure that appropriate partition has correct entry in the disk label, particularly that the partition offset is correct. If the NTFS partition is the first partition on the disk, the offset should be '63' on i386 (see disklabel(8)). mbrlabel(8) could help you to set up the disk label correctly. If the NTFS partition is marked as 'dynamic' under Microsoft Windows XP, it won't be possible to access it under NetBSD anymore. BSD
October 31, 2001 BSD
All times are GMT -4. The time now is 08:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy