![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Moving files with space, in for loop | saabir | Shell Programming and Scripting | 6 | 02-04-2009 01:30 PM |
| Moving the root partition (simple fstab / grub question) | d11wtq | UNIX for Dummies Questions & Answers | 7 | 10-07-2008 01:55 PM |
| Moving a file system to a new partition | Remi | SUN Solaris | 7 | 12-04-2006 06:10 AM |
| copying/moving partition | antalexi | SUN Solaris | 4 | 11-11-2006 06:59 PM |
| Swap Partition Space | I[X]ION | UNIX for Dummies Questions & Answers | 1 | 08-24-2001 11:00 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Do you mean your /var is growing bigger and you want to mount it on another larger partition? If yes, you just need to change /etc/fstab.
For example, you currently have, mount /dev/sda1 /var and /dev/sda1 doesn't have enough space. So you just change like this, (if /dev/sdb1 is a larger partition) mount /dev/sda1 /var mount /dev/sdb1 /mnt cp /var /mnt -r then change /etc/fstab to, /dev/sdb1 /var then reboot. Hope this helps. Or you want to cut out some space from a mounted partition and give it to another partition? Is this possible? Last edited by eddie; 09-23-2001 at 10:59 PM.. |
|
||||
|
I don't think it is possible. One partition can only be mounted to one directory. But one directory and its sub-dir can mount on several partitions. For example,
we can do this, mount /dev/sda1 / mount /dev/sdb1 /usr mount /dev/sdb2 /usr/database mount /dev/sdb3 /usr/programs mount /dev/sdb4 /usr/other_programs mount /dev/sdc8 /usr/programs/eddie etc.... but we can not do following, mount /dev/sda1 / mount /dev/sda2 / nor, mount /dev/sdb2 /usr/database mount /dev/sdb2 /usr/programs You perhaps have allocated too much space to a partition, right? So you may have to re-partition the disk. ![]() Last edited by eddie; 09-30-2001 at 05:52 PM.. |
|
||||
|
Resizing
Well I think its not easy as it seems I think you should umount filesystems you want to resize then use the "mkfs" command with several options for both filesystems and give the appropiate size each one, then use "newfs" to create as filesystem and finally modify the /etc/fstab to the new mount points and remount the filesystems.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|