Sponsored Content
Top Forums UNIX for Advanced & Expert Users moving space from one partition to another Post 7293 by eddie on Monday 24th of September 2001 12:23:00 PM
Old 09-24-2001
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.Smilie

Last edited by eddie; 09-30-2001 at 05:52 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Swap Partition Space

first of all, sorry about my english...I´m a spanish newbie to this marvelous OS and i have just a couple of doubts...u know? :-) 1) how big should my swap partition be if i installed debian 2.2r3 or FreeBSD 4.x on a AMD k7 1400Mhz with 512Mb of Random Access Memory? i heard that those OS... (1 Reply)
Discussion started by: I[X]ION
1 Replies

2. Solaris

copying/moving partition

I have a slice on a 72GB hard drive like this (example): /dev/dsk/c0t1d0s0 51424287 51009 50859036 1% /usr/stuff that I need to copy or move to a slice on a MUCH larger slice like this: /dev/dsk/c0t2d0s6 70592505 570236 69316344 1% /usr/newstuff What is the... (4 Replies)
Discussion started by: antalexi
4 Replies

3. Solaris

Moving a file system to a new partition

Hi everybody. My task today is to move my file system that's 98% full to a new partition slice. I think I'm pretty sure how to do it, but I just wanted to make sure, plus it's been a while since I last did one. The Let's say I have 2 disks c0t0d0 & c0t1d0 ...the file Iwant to move is in c0t0d0s5... (7 Replies)
Discussion started by: Remi
7 Replies

4. BSD

Moving /var partition to USB stick

I am currently running DesktopBSD as a live-CD and need to have a large /var partition because it is currently too small. I have a USB stick which is BSD formatted, and would like to have the /var partition moved over to it. How can this be done? Could I for instance use a symlink? (1 Reply)
Discussion started by: figaro
1 Replies

5. UNIX for Dummies Questions & Answers

shifting space from one partition to other

hi My System is Sun Microsystems Inc. SunOS 5.10 Solaris Partition Info is /dev/vx/dsk/bootdg/var 27G 25G 1.2G 96% /var /dev/vx/dsk/bootdg/oravol 110G 54G 56G 49% /export/home I want to shift space 20G from /export/home to /var What should be the command ?? (2 Replies)
Discussion started by: kaushik02018
2 Replies

6. AIX

Moving free space from one LV to another LV

in the same VG? Is there a way we can do this? We basically have a test server that used to be a production server. Now the newly created test directories have run out of space and the old production directories have alot of free space. Can we transfer that free space over? If so how? Have... (2 Replies)
Discussion started by: NycUnxer
2 Replies

7. Solaris

Increase root partition by moving starting cylinder

I am trying to expand the root partition on Solaris 10. I can expand root partition using format/partition command, but usually increasing cylinders on partition is done on back end. In this case I would have to expand from the front end following the table below, meaning I would have to move the... (12 Replies)
Discussion started by: mjaminal
12 Replies

8. Solaris

Moving disk partition from Solaris sparc to x86

Hello Gurus, Im trying to migrate some SAN disks from sparc server to X86 one, and having issues with disks not getting mounted on the X86 server with " not this fstyp error" due to the different partitions lay out between the two OS. I have tried it from sparc to sparc server and it worked,... (10 Replies)
Discussion started by: aladdin
10 Replies

9. Shell Programming and Scripting

How to consume all available space on partition?

Hi I'm doing some resilience testing and need to write a script to consume all of the available disk space on a partition and then to free it up again. This would need to be - Safe Dynamic, in that it calculates the free space prior to consuming it. I might want to go on to consume a... (7 Replies)
Discussion started by: bbq
7 Replies

10. UNIX for Dummies Questions & Answers

How Much Space Before 1st Partition?

Hello All, I'm having trouble finding info on how to convert sector size (*if that's really what i want to do?) to something easier to understand. I'm trying to copy the MBR from a bootable SD Card to another SD Card or image file, but I'm not sure what I should use in my dd command since I'm... (17 Replies)
Discussion started by: mrm5102
17 Replies
NEWFS(8)						      System Manager's Manual							  NEWFS(8)

NAME
newfs - construct a new file system SYNOPSIS
/sbin/newfs [ -N ] [ -m free-gap ] [ -n free-modulus ] [ -i bytes ] [ -s size ] [ -T disk-type ] special DESCRIPTION
Newfs is a ``friendly'' front-end to the mkfs(8) program. Newfs(8) will normally read the disklabel from the drive to determine the parti- tion sizes. If the driver for the disk does not support disklabels the -T option must be used to force a search of /etc/disktab for parti- tion information about drive-type. Newfs calculates the appropriate parameters to use in calling mkfs, then builds the file system by forking mkfs. -N causes the mkfs command which would be executed to be printed out without actually creating the file system. The disk specified by spe- cial must be online though so that newfs can read the disklabel. -m allows the specification of the block interleaving of the free list. If not specified or outside the range 1 thru 32 then a value of 2 is used. -n parameter is the freelist modulus (when the -m pattern repeats) and is calculated by newfs to be 1 cylinder in size by default. -i specifies how many bytes per inode to assume when calculating how many inodes to allocate. The default is 4096 bytes per inode. If this results in too few inodes being allocated (there is an absolute maximum of 65500) then decrease the bytes number (which must lie between 512 and 65536). -T must be used if the disk specified by special has not been labeled with the disklabel(8) program. In this case disk-type is used by getdisklabel(3) when searching /etc/disktab. This option is used when the underlying device driver does not support disklabels. Care must be taken that the contents of /etc/disktab match the partition tables in the kernel. -s specifies how many sectors the file system is to contain. There are two sectors per file system block, therefore size should be even. This parameter must be less than or equal to the partition size (as determined from the disklabel or /etc/disktab). An error is printed and no action is taken if the partition size is 0 or too large. NOTE: Mkfs deals in units of filesystem blocks not sectors. Newfs uses sectors. FILES
/etc/disktab disk geometry and partition information mkfs to actually build the file system SEE ALSO
getdisklabel(3), disklabel(8), disktab(5), diskpart(8), fs(5), fsck(8), mkfs(8) BUGS
newfs(8) no longer places boot blocks on the filesystem. That duty has been moved to the disklabel(8) program. If you must place a boot block on a disk whose driver does not support disklabels use dd(1). 4.2 Berkeley Distribution April 12, 1996 NEWFS(8)
All times are GMT -4. The time now is 03:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy