The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-23-2001
jason6792 jason6792 is offline
Registered User
  
 

Join Date: Sep 2001
Posts: 4
moving space from one partition to another

How can I move some space allocated to one partition to another,
i.e. from "/var" to "/" .

Thanks!
  #2 (permalink)  
Old 09-23-2001
eddie eddie is offline
Registered User
  
 

Join Date: Aug 2001
Location: Ontario, Canada
Posts: 20
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..
  #3 (permalink)  
Old 09-23-2001
jason6792 jason6792 is offline
Registered User
  
 

Join Date: Sep 2001
Posts: 4
Eddie,

"Or you want to cut out some space from a mounted partition and give it to another partition? Is this possible? "

This is exactly what i want!!!

Any ideas?

Thanks.
  #4 (permalink)  
Old 09-24-2001
eddie eddie is offline
Registered User
  
 

Join Date: Aug 2001
Location: Ontario, Canada
Posts: 20
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..
  #5 (permalink)  
Old 10-08-2001
alex blanco alex blanco is offline
Registered User
  
 

Join Date: Jun 2001
Location: Mexico city
Posts: 36
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0