Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Partitions will not mount once target system is reimaged using dd Post 302525594 by pludi on Friday 27th of May 2011 06:52:44 AM
Old 05-27-2011
Parted is a partition editor that can expand and shrink a partition or logical volume, not an imaging tool. What you can do is use Parted to shrink all LVMs to the minimal necessary size, shrink the PVs behind the VG, clone the disk to the new system, and reverse the steps there.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

AIX / bull Dynamic System Partitions

Hi does any body knows some usefull oneline ressources about systemp partitioning ? A FaQ would be perfect... thanks (0 Replies)
Discussion started by: pinguis
0 Replies

2. UNIX for Dummies Questions & Answers

how to mount a file system of a remote machine to local file system

Hi friends, In my case, there are serveral PCs running Linux in a LAN. I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory. I do not know how to do this. The situation is complicated by... (2 Replies)
Discussion started by: cy163
2 Replies

3. Shell Programming and Scripting

FTP files to target Mainframe system

Hi Experts... Greetings for the day..! I just want to FTP the files to mainframe system.. my code is not working..and also i need to put the files in a particular directory in a specific naming format... ftp -i -n ${HOST_NAME} << END_FTP user ${USER_NAME} ${PASSWORD} put ${FILE_NAME}... (3 Replies)
Discussion started by: spkandy
3 Replies

4. Solaris

Can You Mount FAT32 iSCSI Target in Solaris 10 (sparc)?

I get "mount: I/O error" when trying to mount an existing FAT32 iSCSI target. I also tried formatting the iSCSI target with fdisk and got fdisk: "Error in ioctl DKIOCSMBOOT" Details -- According to the format command, the whole disk is allocated to slice 6 and /dev/rdsk shows this as:... (0 Replies)
Discussion started by: ctafret
0 Replies

5. UNIX for Advanced & Expert Users

Can You Mount FAT32 iSCSI Target in Solaris 10 (sparc)?

I get "mount: I/O error" when trying to mount an existing FAT32 iSCSI target. I also tried formatting the iSCSI target with fdisk and got fdisk: "Error in ioctl DKIOCSMBOOT" Details -- According to the format command, the whole disk is allocated to slice 6 and /dev/rdsk shows this as:... (1 Reply)
Discussion started by: ctafret
1 Replies

6. Solaris

Need help to boot a server and mount all partitions

Hello, I am having an issue with a SUN FIRE V440. First of all, lots of mirrors and submirrors needed maintenance, so I applied #metasync to fix all of them, but I still couldn't mount all the partitions of the server . I tried to mount manually all the partitions that appear in the /etc/vfstab... (4 Replies)
Discussion started by: feg
4 Replies

7. HP-UX

how to mount a file system from a solaris server into an hp-ux system

Hi all I wonder if its possible to mount on a hp-ux server a file system that was previously mounted on a solaris 10 server. The LUN is on NetApp stoarge. The problem on hp-ux I cannot do pvcreate on the lun (disk) because contains data. Any help will be appreciated FR (2 Replies)
Discussion started by: fretagi
2 Replies

8. UNIX for Advanced & Expert Users

Which system calls to move data on a device with mounted partitions?

I need to be able to move data around a disk that has mounted partitions. I am not touching the data on the mounted partition, the MBR or any other disk metadata, only the freespace and unmounted partitions. At the moment I am using libparted but it causes data corruption sometimes although there... (1 Reply)
Discussion started by: vstrom
1 Replies

9. AIX

Cannot mount file system

Hi , We i try to mount aix filesystem i am getting the following error mount: 0506-324 Cannot mount /dev/fslv11 on /testdir: A system call received a parameter that is not valid. Please help me out (2 Replies)
Discussion started by: chidori
2 Replies

10. OS X (Apple)

Copy files between partitions with "without auto-mount" option enabled - possible?

Hello, fellow Unixers and Macers, I'll run several OS X versions each on its own dedicated partition. Partitions won't be seeing each other (by editing fstab). Question: will I be able to copy files between those partitions? Partition #1: Mavericks. Partition #2: HighSierra (2 Replies)
Discussion started by: scrutinizerix
2 Replies
PARTED(8)							 GNU Parted Manual							 PARTED(8)

NAME
       GNU Parted - a partition manipulation program

SYNOPSIS
       parted [options] [device [command [options...]...]]

DESCRIPTION
       parted  is  a program to manipulate disk partitions.  It supports multiple partition table formats, including MS-DOS and GPT.  It is useful
       for creating space for new operating systems, reorganising disk usage, and copying data to new hard disks.

       This manual page documents parted briefly.  Complete documentation is distributed with the package in GNU Info format.

OPTIONS
       -h, --help
	      displays a help message

       -l, --list
	      lists partition layout on all block devices

       -m, --machine
	      displays machine parseable output

       -s, --script
	      never prompts for user intervention

       -v, --version
	      displays the version

       -a alignment-type, --align alignment-type
	      Set alignment for newly created partitions, valid alignment types are:

	      none   Use the minimum alignment allowed by the disk type.

	      cylinder
		     Align partitions to cylinders.

	      minimal
		     Use minimum alignment as given by the disk topology information. This and the opt value will use layout information  provided
		     by the disk to align the logical partition table addresses to actual physical blocks on the disks.  The min value is the min-
		     imum alignment needed to align the partition properly to physical blocks, which avoids performance degradation.

	      optimal
		     Use optimum alignment as given by the disk topology information. This aligns to a multiple of the physical block  size  in  a
		     way that guarantees optimal performance.

COMMANDS
       [device]
	      The block device to be used.  When none is given, parted will use the first block device it finds.

       [command [options]]
	      Specifies the command to be executed.  If no command is given, parted will present a command prompt.  Possible commands are:

	      help [command]
		     Print general help, or help on command if specified.

	      align-check type partition
		     Check if partition satisfies the alignment constraint of type.  type must be "minimal" or "optimal".

	      mklabel label-type
		     Create  a	new  disklabel	(partition table) of label-type.  label-type should be one of "aix", "amiga", "bsd", "dvh", "gpt",
		     "loop", "mac", "msdos", "pc98", or "sun".

	      mkpart part-type [fs-type] start end
		     Make a part-type partition for filesystem fs-type (if specified), beginning at  start  and  ending  at  end  (by  default	in
		     megabytes).  part-type should be one of "primary", "logical", or "extended".

	      name partition name
		     Set the name of partition to name. This option works only on Mac, PC98, and GPT disklabels. The name can be placed in quotes,
		     if necessary.

	      print  Display the partition table.

	      quit   Exit from parted.

	      rescue start end
		     Rescue a lost partition that was located somewhere between start and end.	If a partition is found, parted will  ask  if  you
		     want to create an entry for it in the partition table.

	      resizepart partition end
		     Change the end position of partition.  Note that this does not modify any filesystem present in the partition.

	      rm partition
		     Delete partition.

	      select device
		     Choose  device  as  the current device to edit. device should usually be a Linux hard disk device, but it can be a partition,
		     software raid device, or an LVM logical volume if necessary.

	      set partition flag state
		     Change the state of the flag on partition to state.  Supported flags are: "boot", "root", "swap",	"hidden",  "raid",  "lvm",
		     "lba", "legacy_boot", "irst", "esp" and "palo".  state should be either "on" or "off".

	      unit unit
		     Set  unit	as the unit to use when displaying locations and sizes, and for interpreting those given by the user when not suf-
		     fixed with an explicit unit.  unit can be one of "s" (sectors), "B" (bytes), "kB", "MB", "MiB", "GB", "GiB", "TB", "TiB", "%"
		     (percentage  of  device size), "cyl" (cylinders), "chs" (cylinders, heads, sectors), or "compact" (megabytes for input, and a
		     human-friendly form for output).

	      toggle partition flag
		     Toggle the state of flag on partition.

	      version
		     Display version information and a copyright message.

REPORTING BUGS
       Report bugs to <bug-parted@gnu.org>

SEE ALSO
       fdisk(8), mkfs(8), The parted program is fully documented in the info(1) format GNU partitioning software manual which is distributed  with
       the parted-doc Debian package.

AUTHOR
       This manual page was written by Timshel Knoll <timshel@debian.org>, for the Debian GNU/Linux system (but may be used by others).

parted								   2007 March 29							 PARTED(8)
All times are GMT -4. The time now is 09:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy