Prev: predict performance on other machine
Next: Where can I get a recent CUPS binary package for Solaris 10?
From: Chris Ridd on 13 Jul 2010 06:28 On 2010-07-13 10:56:09 +0100, hadi motamedi said: >> >> >> If you did newfs on it, you have created a new filesystem on that disk >> and all old data is lost forever. > > oh, yes I did it like the following : > #newfs -m 0 /dev/dsk/c0t2d0s3 > I have a backup from it. Can you please let me know what I am expected > to do to preserve its data ? Might it be simplest to restore the contents? For example if you took the backup with ufsdump, then use ufsrestore. -- Chris
From: Thommy M. on 13 Jul 2010 06:46 hadi motamedi <motamedi24(a)gmail.com> writes: >> >> If you did newfs on it, you have created a new filesystem on that disk >> and all old data is lost forever. > > oh, yes I did it like the following : > #newfs -m 0 /dev/dsk/c0t2d0s3 > I have a backup from it. Can you please let me know what I am expected > to do to preserve its data ? First, redo newfs without the -m option. -m 0 gives you 0% free space... Then, to preserve is too late, you have to restore the data from your backup. # cd /mnt # ufsrestore xvf /dev/rmt/0hn
From: Ian Collins on 13 Jul 2010 07:06 On 07/13/10 09:56 PM, hadi motamedi wrote: Who posted this? >> >> If you did newfs on it, you have created a new filesystem on that disk >> and all old data is lost forever. > > oh, yes I did it like the following : > #newfs -m 0 /dev/dsk/c0t2d0s3 > I have a backup from it. Can you please let me know what I am expected > to do to preserve its data ? Is this for real, or a troll? -- Ian Collins
From: Thommy M. on 13 Jul 2010 07:19 Ian Collins <ian-news(a)hotmail.com> writes: > On 07/13/10 09:56 PM, hadi motamedi wrote: > > Who posted this? OP I suppose. >>> >>> If you did newfs on it, you have created a new filesystem on that disk >>> and all old data is lost forever. >> >> oh, yes I did it like the following : >> #newfs -m 0 /dev/dsk/c0t2d0s3 >> I have a backup from it. Can you please let me know what I am expected >> to do to preserve its data ? > > Is this for real, or a troll? I'm afraid it's for real...
From: hume.spamfilter on 13 Jul 2010 08:41
hadi motamedi <motamedi24(a)gmail.com> wrote: > My imported data resides in /dev/dsk/c0t2d0s3 that I want to put it > in /opt . According to you, I removed my original /opt definition You say you have data in /dev/dsk/c0t2d0s3 that you want to copy into your new /opt filesystem. But then: > # mount -F ufs /dev/dsk/c0t2d0s3 /opt > corrupt label - wrong magic number This means that /dev/dsk/c0t2d0s3 is not a valid filesystem. So it isn't possible that you have data on it. Obviously something you're telling us is wrong. -- Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/ |