Dear all , I have formatted/labeled/partitioned a new larger size
secondary disk on my solaris. Then i tried to copy the contents as tne
following: #dd if=/dev/dsk/c0t0d0s-i of=/dev/dsk/c0t1d0s-i where
i=0,1,...,7 At the end, the secondary disk was an exact replica and a
bootable one but surprisingly i saw that it is as the same partition
size as the primary disk, but it was of biggernsize at the start. So i
have firmatted/labeled/partitioned it again. Can you please let me
know how can i accomplish this procedure but without modifying the
target partition sizes? Thank you
|
|
0
|
|
|
|
Reply
|
hadi
|
9/6/2010 3:42:54 AM |
|
On 09/ 6/10 03:42 PM, hadi motamedi wrote:
> Dear all , I have formatted/labeled/partitioned a new larger size
> secondary disk on my solaris. Then i tried to copy the contents as tne
> following: #dd if=/dev/dsk/c0t0d0s-i of=/dev/dsk/c0t1d0s-i where
> i=0,1,...,7 At the end, the secondary disk was an exact replica and a
> bootable one but surprisingly i saw that it is as the same partition
> size as the primary disk, but it was of biggernsize at the start. So i
> have firmatted/labeled/partitioned it again. Can you please let me
> know how can i accomplish this procedure but without modifying the
> target partition sizes? Thank you
Pipe ufsdump to ufsrestore, as described in the ufsrestore man page.
--
Ian Collins
|
|
0
|
|
|
|
Reply
|
Ian
|
9/6/2010 3:45:55 AM
|
|
On Sep 6, 7:45=A0am, Ian Collins <ian-n...@hotmail.com> wrote:
> On 09/ 6/10 03:42 PM, hadi motamedi wrote:
>
> > Dear all =A0, I have formatted/labeled/partitioned a new larger size
> > secondary disk on my solaris. Then i tried to copy the contents as tne
> > following: #dd if=3D/dev/dsk/c0t0d0s-i of=3D/dev/dsk/c0t1d0s-i where
> > i=3D0,1,...,7 =A0At the end, the secondary disk was an exact replica an=
d a
> > bootable one but surprisingly i saw that it is as the same partition
> > size as the primary disk, but it was of biggernsize at the start. So i
> > have firmatted/labeled/partitioned it again. Can you please let me
> > know how can i accomplish this procedure but without modifying the
> > target partition sizes? Thank you
>
> Pipe ufsdump to ufsrestore, as described in the ufsrestore man page.
>
> --
> Ian Collins
I read the man page and i trued as 'ufsdump 0f - /dev/dsk/c0t0d0s0 l
ufsrestore -i /dev/dsk/c0t1d0s0 -' but it is not successful. Can you
please correct me?
|
|
0
|
|
|
|
Reply
|
hadi
|
9/6/2010 5:14:11 AM
|
|
On 09/ 6/10 05:14 PM, hadi motamedi wrote:
> On Sep 6, 7:45 am, Ian Collins<ian-n...@hotmail.com> wrote:
>> On 09/ 6/10 03:42 PM, hadi motamedi wrote:
>>
>>> Dear all , I have formatted/labeled/partitioned a new larger size
>>> secondary disk on my solaris. Then i tried to copy the contents as tne
>>> following: #dd if=/dev/dsk/c0t0d0s-i of=/dev/dsk/c0t1d0s-i where
>>> i=0,1,...,7 At the end, the secondary disk was an exact replica and a
>>> bootable one but surprisingly i saw that it is as the same partition
>>> size as the primary disk, but it was of biggernsize at the start. So i
>>> have firmatted/labeled/partitioned it again. Can you please let me
>>> know how can i accomplish this procedure but without modifying the
>>> target partition sizes? Thank you
>>
>> Pipe ufsdump to ufsrestore, as described in the ufsrestore man page.
>>
*Please* stop quoting signatures!
> I read the man page and i trued as 'ufsdump 0f - /dev/dsk/c0t0d0s0 l
> ufsrestore -i /dev/dsk/c0t1d0s0 -' but it is not successful. Can you
> please correct me?
What's the 'l' doing in there? Follow the example under the dump_file
option.
--
Ian Collins
|
|
0
|
|
|
|
Reply
|
Ian
|
9/6/2010 5:31:10 AM
|
|
On Sep 6, 9:31=A0am, Ian Collins <ian-n...@hotmail.com> wrote:
> On 09/ 6/10 05:14 PM, hadi motamedi wrote:
>
> > On Sep 6, 7:45 am, Ian Collins<ian-n...@hotmail.com> =A0wrote:
> >> On 09/ 6/10 03:42 PM, hadi motamedi wrote:
>
> >>> Dear all =A0, I have formatted/labeled/partitioned a new larger size
> >>> secondary disk on my solaris. Then i tried to copy the contents as tn=
e
> >>> following: #dd if=3D/dev/dsk/c0t0d0s-i of=3D/dev/dsk/c0t1d0s-i where
> >>> i=3D0,1,...,7 =A0At the end, the secondary disk was an exact replica =
and a
> >>> bootable one but surprisingly i saw that it is as the same partition
> >>> size as the primary disk, but it was of biggernsize at the start. So =
i
> >>> have firmatted/labeled/partitioned it again. Can you please let me
> >>> know how can i accomplish this procedure but without modifying the
> >>> target partition sizes? Thank you
>
> >> Pipe ufsdump to ufsrestore, as described in the ufsrestore man page.
>
> *Please* stop quoting signatures!
>
> > I read the man page and i trued as 'ufsdump 0f - /dev/dsk/c0t0d0s0 l
> > ufsrestore -i /dev/dsk/c0t1d0s0 -' but it is not successful. Can you
> > please correct me?
>
> What's the 'l' doing in there? =A0Follow the example under the dump_file
> option.
>
> --
> Ian Collins
Sorry for mistake in typing. That 'l' character was the pipe
character. I searched for the example you told me but there is just
one pipe example trying to restore to /home directory. Can you please
correct me on my issued command i sent you?
|
|
0
|
|
|
|
Reply
|
hadi
|
9/6/2010 5:59:54 AM
|
|
On Sep 6, 9:31=A0am, Ian Collins <ian-n...@hotmail.com> wrote:
> On 09/ 6/10 05:14 PM, hadi motamedi wrote:
>
> > On Sep 6, 7:45 am, Ian Collins<ian-n...@hotmail.com> =A0wrote:
> >> On 09/ 6/10 03:42 PM, hadi motamedi wrote:
>
> >>> Dear all =A0, I have formatted/labeled/partitioned a new larger size
> >>> secondary disk on my solaris. Then i tried to copy the contents as tn=
e
> >>> following: #dd if=3D/dev/dsk/c0t0d0s-i of=3D/dev/dsk/c0t1d0s-i where
> >>> i=3D0,1,...,7 =A0At the end, the secondary disk was an exact replica =
and a
> >>> bootable one but surprisingly i saw that it is as the same partition
> >>> size as the primary disk, but it was of biggernsize at the start. So =
i
> >>> have firmatted/labeled/partitioned it again. Can you please let me
> >>> know how can i accomplish this procedure but without modifying the
> >>> target partition sizes? Thank you
>
> >> Pipe ufsdump to ufsrestore, as described in the ufsrestore man page.
>
> *Please* stop quoting signatures!
>
> > I read the man page and i trued as 'ufsdump 0f - /dev/dsk/c0t0d0s0 l
> > ufsrestore -i /dev/dsk/c0t1d0s0 -' but it is not successful. Can you
> > please correct me?
>
> What's the 'l' doing in there? =A0Follow the example under the dump_file
> option.
>
> --
> Ian Collins
The example shows it as 'ufsdump 0f - /dev/rdsk/c0t0d0s0 l cd /
home;ufsrestore xf -' so it seems that the target disk partition must
be first mounted . If this is the case, so how we can do it
withrespect to the larger partition sizes on the target disk?
|
|
0
|
|
|
|
Reply
|
hadi
|
9/6/2010 8:56:47 AM
|
|
hadi motamedi wrote:
> On Sep 6, 7:45 am, Ian Collins <ian-n...@hotmail.com> wrote:
>> On 09/ 6/10 03:42 PM, hadi motamedi wrote:
>>
>>> Dear all , I have formatted/labeled/partitioned a new larger size
>>> secondary disk on my solaris. Then i tried to copy the contents as tne
>>> following: #dd if=/dev/dsk/c0t0d0s-i of=/dev/dsk/c0t1d0s-i where
>>> i=0,1,...,7 At the end, the secondary disk was an exact replica and a
>>> bootable one but surprisingly i saw that it is as the same partition
>>> size as the primary disk, but it was of biggernsize at the start. So i
>>> have firmatted/labeled/partitioned it again. Can you please let me
>>> know how can i accomplish this procedure but without modifying the
>>> target partition sizes? Thank you
>> Pipe ufsdump to ufsrestore, as described in the ufsrestore man page.
>>
>> --
>> Ian Collins
> I read the man page and i trued as 'ufsdump 0f - /dev/dsk/c0t0d0s0 l
> ufsrestore -i /dev/dsk/c0t1d0s0 -' but it is not successful. Can you
> please correct me?
Please post the FULL and EXACT text of the commands you entered and the
resulting output, if any.
|
|
0
|
|
|
|
Reply
|
Richard
|
9/6/2010 1:58:16 PM
|
|
> The example shows it as 'ufsdump 0f - /dev/rdsk/c0t0d0s0 l cd /
> home;ufsrestore xf -' so it seems that the target disk partition must
> be first mounted . If this is the case, so how we can do it
> withrespect to the larger partition sizes on the target disk?
You're right - the target partition must be mounted first. Mount the
new larger (empty) root file system on some arbitrary mount point,
like "/mnt", then run your command:
# ufsdump 0f - /dev/rdsk/c0t0d0s0 l cd /mnt ; ufsrestore rf -
Now that the root file system has been transferred to the new disk,
the other necessary mount points exist under "/mnt". Mount the other
empty slices under subdirectories of "/mnt" and repeat ufsdump/
ufsrestore for each file system. Run "installboot" and update /etc/
vfstab on the new disk (still mounted on /mnt) to reflect the new
devices before trying to boot from the new disk.
|
|
0
|
|
|
|
Reply
|
ITguy
|
9/6/2010 6:18:15 PM
|
|
ITguy <southallc@gmail.com> wrote:
>> The example shows it as 'ufsdump 0f - /dev/rdsk/c0t0d0s0 l cd /
>> home;ufsrestore xf -' so it seems that the target disk partition must
>> be first mounted . If this is the case, so how we can do it
>> withrespect to the larger partition sizes on the target disk?
>
> You're right - the target partition must be mounted first. Mount the
> new larger (empty) root file system on some arbitrary mount point,
> like "/mnt", then run your command:
>
> # ufsdump 0f - /dev/rdsk/c0t0d0s0 l cd /mnt ; ufsrestore rf -
This should be:
ufsdump 0f - /dev/rdsk/c0t0d0s0 | (cd /mnt ; ufsrestore xf -)
[x or r will both work, but the '|' and '(..)' are important!]
--
Hans Werner Strube strube(@)physik3(.)gwdg(.)de
Drittes Physikalisches Institut, Univ. Goettingen
Friedrich-Hund-Platz 1, 37077 Goettingen, Germany
|
|
0
|
|
|
|
Reply
|
me
|
9/9/2010 3:13:28 PM
|
|
|
8 Replies
401 Views
(page loaded in 0.609 seconds)
Similiar Articles: [newbie] Adding and configuring new disk - comp.sys.hp.hpux ...> Adding a smaller disk uses this larger PE size so you get access ... [newbie] Adding and configuring new disk ... I have to copy ... Partition 0 not aligned on cylinder boundary ... ufsdump root without /var or /usr - comp.unix.solaris... to > new partition also copies /var and /usr which I don't want to do. Don't have the disk space? I would just copy it ... exclude the contents ... box to a larger disk and ... Extending a physical volume - comp.sys.hp.hpuxTrue, you can't extend a SAN partition and have ... PV and then when that's done, drop the copy on the smaller ... Does somebody know where to get a disk drive larger than ... Archive/copy over 2GB - comp.os.linux.hardware... and want to archive or copy the virtual disk image ... Article content that may not be ... use rsync to move files larger than ... limit - comp.lang.tcl Archive/copy over ... Odd BACKUP error: unsupported file structure ! - comp.os.vms ...I, too, recently had an IDE disk which I wanted to copy data ... backup and then reinitialise the >disk with a smaller ... IOCTL_DISK_GET_PARTITION_INFO and the PartitionType ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... Simple code encryption (xor) problem - comp.lang.asm.x86 ...... app or OS crash) and the speed benefit much smaller ... won't help if one of the busses (memory, disk, IO) is ... are: * an input reader * a Map function * a partition ... Sampling: What Nyquist Didn't Say, and What to Do About It - comp ...In this smaller, overlapping window, I paste yet another copy of the photo -- but ... can be useful to have a table of contents ... paper using wider margins and a larger ... input & output in assembly - comp.lang.asm.x86; 0x00000800 // Section contents will not become ... Blocks on a hard drive are larger than that ... with its ext2 filesystem, allocates disk space in chunks no smaller ... Disk Copy Wizard in Partition Assistant Helps Copy Disk to Disk ...Disk copy feature in Partition Assistant enables you to copy the old smaller hard disk drive to a new larger hard disk drive on ... Article Contents Copy hard disk drive under Windows Server 2008/20003/2000 and ...Disk copy of EaseUS Partition Master lets you copy ... for copying the entire contents of a hard drive/partition ... to replace the older smaller hard disk by a newer larger ... 7/21/2012 9:55:21 PM
|