04-20-2005
just change their ~home in /etc/passwd and move their home dir to the new filesystem. And you might have to manually change their group ID as well.
thats it!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
i first have to ssh into my university account and then through there another ssh into my office computer, from my home computer. I have been trying to transfer files to and from with no such luck.
How do i send a file from home to my office computer.
Do I have to send it to my... (6 Replies)
Discussion started by: yogi1
6 Replies
2. AIX
How do I transfer Plain Text and/or BMP image files between my WindowsXP PC and my AIX 4.1 PowerPC?
I have no network or USB options, just a Floppy disk drive and a CD drive on each machine.
Is it possible at all? Any help would be gratefully received:) (7 Replies)
Discussion started by: Pennant Man
7 Replies
3. Shell Programming and Scripting
Alright, I have this script that pulls files from a few locations, process those files, creates a zip file, rsync's it and then removes everything.
The problem that I'm having is that I do not know how large the rsync'ed zip file is going to be. Right now I'm using a sleep command before I... (4 Replies)
Discussion started by: droppedonjapan
4 Replies
4. UNIX for Dummies Questions & Answers
I am trying to transfer about 3000 files from a window platfrom to my linux server.
the scrip is pretty simple
ftp to the source server (windows)
cd to source directory
lcd to destination directory
mget *.jpg
what I get in the log file is:
mget 07421001.jpg? 200 PORT command successful.... (4 Replies)
Discussion started by: Doveman
4 Replies
5. UNIX for Advanced & Expert Users
Hello all,
I am currently trying to find a solution to replacing some 10 year old Solaris boxes because it is obvious that they are going to fail soon. The problem is that they are license servers, and I need the eeprom serial to transfer to a new computer. Now, I could request that we get new... (1 Reply)
Discussion started by: DeanCarlo
1 Replies
6. UNIX for Dummies Questions & Answers
Hello , I want to transfer files from one linux server into another , I got it working using SCP command , but I have to type in password for each and every file . All the remote severs have the same password , so is there a way that I can transfer all these files by typing my password only once ? (5 Replies)
Discussion started by: RaviTej
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Is there a way to transfer a file from one unix server from another without entering the login credentials. I know scp and other commands but it prompts the username/password.
However in my script i have a file, who i need to send to another unix server where the content of that file will... (4 Replies)
Discussion started by: gopajitmalakar
4 Replies
8. Shell Programming and Scripting
Hi Guys,
I have to transfer a few files in my system . The commands to be used are as follows . Will it be possible to send the output of the following in the form of a mail .
cd /export/home/teja
ls -lrt Quote.java*
mv Quote.java Quote.java.20121023
cp /tmp/Quote.java .
ls -lrt... (2 Replies)
Discussion started by: Ravi_Teja
2 Replies
9. AIX
i am trying to use a rsh script that uses the rcp command to copy files from server to server but it always produce the following error:
HOSTNAME: protocol failure due to unexpected closure from server end
Error: failed to copy /test to HOST2 system
Error: failed to execute command on remote... (5 Replies)
Discussion started by: Portabello
5 Replies
10. Shell Programming and Scripting
I have a large number of files with file names of the format
iv.epoz.hhe.d.2018.028.000000.sac
iv.epoz.hhn.d.2018.028.000000.sac
iv.epoz.hhz.d.2018.028.000000.sac
iv.epoz.hhe.d.2018.029.000000.sac
iv.epoz.hhn.d.2018.029.000000.sac
iv.epoz.hhz.d.2018.029.000000.sac... (4 Replies)
Discussion started by: kristinu
4 Replies
LEARN ABOUT DEBIAN
resize2fs
RESIZE2FS(8) System Manager's Manual RESIZE2FS(8)
NAME
resize2fs - ext2/ext3/ext4 file system resizer
SYNOPSIS
resize2fs [ -fFpPM ] [ -d debug-flags ] [ -S RAID-stride ] device [ size ]
DESCRIPTION
The resize2fs program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located
on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel supports on-line
resizing. (As of this writing, the Linux 2.6 kernel supports on-line resize for filesystems mounted using ext3 and ext4.).
The size parameter specifies the requested new size of the filesystem. If no units are specified, the units of the size parameter shall be
the filesystem blocksize of the filesystem. Optionally, the size parameter may be suffixed by one of the following the units designators:
's', 'K', 'M', or 'G', for 512 byte sectors, kilobytes, megabytes, or gigabytes, respectively. The size of the filesystem may never be
larger than the size of the partition. If size parameter is not specified, it will default to the size of the partition.
Note: when kilobytes is used above, I mean real, power-of-2 kilobytes, (i.e., 1024 bytes), which some politically correct folks insist
should be the stupid-sounding ``kibibytes''. The same holds true for megabytes, also sometimes known as ``mebibytes'', or gigabytes, as
the amazingly silly ``gibibytes''. Makes you want to gibber, doesn't it?
The resize2fs program does not manipulate the size of partitions. If you wish to enlarge a filesystem, you must make sure you can expand
the size of the underlying partition first. This can be done using fdisk(8) by deleting the partition and recreating it with a larger size
or using lvextend(8), if you're using the logical volume manager lvm(8). When recreating the partition, make sure you create it with the
same starting disk cylinder as before! Otherwise, the resize operation will certainly not work, and you may lose your entire filesystem.
After running fdisk(8), run resize2fs to resize the ext2 filesystem to use all of the space in the newly enlarged partition.
If you wish to shrink an ext2 partition, first use resize2fs to shrink the size of filesystem. Then you may use fdisk(8) to shrink the
size of the partition. When shrinking the size of the partition, make sure you do not make it smaller than the new size of the ext2
filesystem!
OPTIONS
-d debug-flags
Turns on various resize2fs debugging features, if they have been compiled into the binary. debug-flags should be computed by adding
the numbers of the desired features from the following list:
2 - Debug block relocations
4 - Debug inode relocations
8 - Debug moving the inode table
-f Forces resize2fs to proceed with the filesystem resize operation, overriding some safety checks which resize2fs normally enforces.
-F Flush the filesystem device's buffer caches before beginning. Only really useful for doing resize2fs time trials.
-M Shrink the filesystem to the minimum size.
-p Prints out a percentage completion bars for each resize2fs operation during an offline resize, so that the user can keep track of
what the program is doing.
-P Print the minimum size of the filesystem and exit.
-S RAID-stride
The resize2fs program will heuristically determine the RAID stride that was specified when the filesystem was created. This option
allows the user to explicitly specify a RAID stride setting to be used by resize2fs instead.
KNOWN BUGS
The minimum size of the filesystem as estimated by resize2fs may be incorrect, especially for filesystems with 1k and 2k blocksizes.
AUTHOR
resize2fs was written by Theodore Ts'o <tytso@mit.edu>.
COPYRIGHT
Resize2fs is Copyright 1998 by Theodore Ts'o and PowerQuest, Inc. All rights reserved. As of April, 2000 Resize2fs may be redistributed
under the terms of the GPL.
SEE ALSO
fdisk(8), e2fsck(8), mke2fs(8), lvm(8), lvextend(8)
E2fsprogs version 1.42.5 July 2012 RESIZE2FS(8)