Sponsored Content
Operating Systems SCO Renaming the partition. Is it posible ? Post 40121 by Neo on Tuesday 9th of September 2003 03:16:55 PM
Old 09-09-2003
cp -a preserves file system permissions.

(we later found out NOT on SCO... see below)

Neo

Quote:
-a, --archive
Preserve as much as possible of the structure and attributes of the original files in
the copy (but do not preserve directory structure). Equivalent to -dpR.

-d, --no-dereference
Copy symbolic links as symbolic links rather than copying the files that they point
to, and preserve hard links between source files in the copies.

-f, --force
Remove existing destination files, and never prompt before doing so.

-i, --interactive
Prompt whether to overwrite existing regular destination files.

-l, --link
Make hard links instead of copies of non-directories.

-p, --preserve
Preserve the original files' owner, group, permissions, and timestamps.

-P, --parents
Form the name of each destination file by appending to the target directory a slash
and the specified name of the source file. The last argument given to cp must be the
name of an existing directory. For example, the command:
cp --parents a/b/c existing_dir
copies the file `a/b/c' to `existing_dir/a/b/c', creating any missing intermediate
directories.

-r Copy directories recursively, copying any non-directories and non-symbolic links
(that is, FIFOs and special files) as if they were regular files. This means trying
to read the data in each source file and writing it to the destination. Thus, with
this option, `cp' may well hang indefinitely reading a FIFO or /dev/tty. (This is a
bug. It means that you have to avoid -r and use -R if you don't know what is in the
tree you are copying. Opening an unknown device file, say a scanner, has unknown
effects on the hardware.)

-R, --recursive
Copy directories recursively, preserving non-directories (see -r just above).
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

understanding logical partition, physical partition

hi, 1) is logical partition the same as physical partition except that one is physical and the other is logical? 2) then it must a one to one ratio? (3 Replies)
Discussion started by: yls177
3 Replies

2. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

3. Solaris

Is clustring posible with OS zoning ?

Hi Gurus, Is it possible to create cluster environment with OS zoning ? If yes your further assistance will be highly appreciated. Thanks (1 Reply)
Discussion started by: kumarmani
1 Replies

4. UNIX for Dummies Questions & Answers

renaming

Hi, I wrote a script to rename all files in a directory from uppercase to lowercase and changing spaces to underscores: #!/bin/sh echo "rename" read pathname cd $pathname for f in `ls "$pathname"` ; # listing directory for all files do echo... (1 Reply)
Discussion started by: the.noob
1 Replies

5. Shell Programming and Scripting

rsync from partition to partition fastest

Gentleman, Please move if I have chose the incorrect forum section. I am trying to move data that is not backed up from partition 1 to partition 2 on a SAN that has a GFS2 filesystem. Since the data is not backed up I am rsyncing this data and once verified I will delete from the source... (6 Replies)
Discussion started by: jaysunn
6 Replies

6. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

7. Shell Programming and Scripting

Renaming files

Hi i have to achieve the following i have files as xyz001.csv, xyz002.csv.......xyz0025.csv in a folder, i need to keep xyz001.csv as it is but want to remove the extra zero on filename from 10 say xyz0010 should be renamed to xyz010 xyz0025 should be renamed as xyz025 Note xyz... (8 Replies)
Discussion started by: mad_man12
8 Replies

8. Filesystems, Disks and Memory

Ask concept soft partition vs hard partition

Hi Experts I would like to know different between soft partition concept and hard partition concept on solaris. Here is little explanation between soft partition concept and hard partition concept on solaris. Soft Partition: 1TB total space available in storage in all mapped to the OS to... (2 Replies)
Discussion started by: edydsuranta
2 Replies

9. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies
FDISK(8)						      System Manager's Manual							  FDISK(8)

NAME
fdisk - partition a hard disk [IBM] SYNOPSIS
fdisk [-hm] [-sn] [file] OPTIONS
-h Number of disk heads is m -s Number of sectors per track is n EXAMPLES
fdisk /dev/hd0 # Examine disk partitions fdisk -h9 /dev/hd0 # Examine disk with 9 heads DESCRIPTION
When fdisk starts up, it reads in the partition table and displays it. It then presents a menu to allow the user to modify partitions, store the partition table on a file, or load it from a file. Partitions can be marked as MINIX, DOS or other, as well as active or not. Using fdisk is self-explanatory. However, be aware that repartitioning a disk will cause information on it to be lost. Rebooting the sys- tem immediately is mandatory after changing partition sizes and parameters. MINIX, XENIX, PC-IX, and MS-DOS all have different partition numbering schemes. Thus when using multiple systems on the same disk, be careful. Note that MINIX, unlike MS-DOS , cannot access the last sector in a partition with an odd number of sectors. The reason that odd partition sizes do not cause a problem with MS-DOS is that MS-DOS allocates disk space in units of 512-byte sectors, whereas MINIX uses 1K blocks. Fdisk has a variety of other features that can be seen by typing h. Fdisk normally knows the geometry of the device by asking the driver. You can use the -h and -s options to override the numbers found. SEE ALSO
part(8). FDISK(8)
All times are GMT -4. The time now is 06:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy