Prev: predict performance on other machine
Next: Where can I get a recent CUPS binary package for Solaris 10?
From: hadi motamedi on 13 Jul 2010 03:52 > > If I remember correctly (been on Opensolaris for 2 years now), "wrong > magic number" usually means the disk is not formatted or doesn't have a > proper label. Have you run the "format" command and then "mkfs" command > or "newfs" command on that disk? Please note, "mkfs" and "newfs" have > the same end result, "newfs" is easier to run. > > Paul Sorry. With your help, it is now returning as : '#mount /dev/dsk/c0t2d0s3 /opt mount /dev/dsk/c0t2d0s3 is not this fstype' Can you please let me know how to correct this? Thank you
From: redtigra on 13 Jul 2010 04:23 On Jul 13, 9:52 am, hadi motamedi <motamed...(a)gmail.com> wrote: > > If I remember correctly (been on Opensolaris for 2 years now), "wrong > > magic number" usually means the disk is not formatted or doesn't have a > > proper label. Have you run the "format" command and then "mkfs" command > > or "newfs" command on that disk? Please note, "mkfs" and "newfs" have > > the same end result, "newfs" is easier to run. > > > Paul > > Sorry. With your help, it is now returning as : > '#mount /dev/dsk/c0t2d0s3 /opt > mount /dev/dsk/c0t2d0s3 is not this fstype' > Can you please let me know how to correct this? > Thank you #mount -F ufs /dev/dsk/c0t2d0s3 /opt - in case you've created ufs file system there.
From: hadi motamedi on 13 Jul 2010 04:56 > > #mount -F ufs /dev/dsk/c0t2d0s3 /opt - in case you've created ufs file > system there. I tried to mount it as : '# mount -F ufs /dev/dsk/c0t2d0s3 /opt mount: /dev/dsk/c0t2d0s3 is already mounted, /opt is busy, or the allowable number of mount points has been exceeded # ls -la /opt total 20 drwxr-xr-x 3 root root 512 Jul 13 16:10 . drwxr-xr-x 21 root root 512 Jul 7 13:42 .. drwx------ 2 root root 8192 Jul 13 16:10 lost+found # df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 61615 14892 40562 27% / /dev/dsk/c0t0d0s6 384847 21080 325283 7% /usr /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd /dev/dsk/c0t0d0s1 114143 1321 101408 2% /var /dev/dsk/c0t0d0s7 192423 9 173172 1% /export/home swap 227444 4 227440 1% /tmp /dev/dsk/c0t1d0s2 1936412 10578 1732193 1% /usr/local /dev/dsk/c0t2d0s3 123231 9 123222 1% /opt' As you see, it is mounted but it does not contain the imported data. Can you please let me know why ?
From: Thommy M. on 13 Jul 2010 05:43 hadi motamedi <motamedi24(a)gmail.com> writes: >> >> #mount -F ufs /dev/dsk/c0t2d0s3 /opt - in case you've created ufs file >> system there. > I tried to mount it as : > '# mount -F ufs /dev/dsk/c0t2d0s3 /opt > mount: /dev/dsk/c0t2d0s3 is already mounted, /opt is busy, > or the allowable number of mount points has been exceeded > # ls -la /opt > total 20 > drwxr-xr-x 3 root root 512 Jul 13 16:10 . > drwxr-xr-x 21 root root 512 Jul 7 13:42 .. > drwx------ 2 root root 8192 Jul 13 16:10 lost+found > # df -k > Filesystem kbytes used avail capacity Mounted on > /dev/dsk/c0t0d0s0 61615 14892 40562 27% / > /dev/dsk/c0t0d0s6 384847 21080 325283 7% /usr > /proc 0 0 0 0% /proc > fd 0 0 0 0% /dev/fd > /dev/dsk/c0t0d0s1 114143 1321 101408 2% /var > /dev/dsk/c0t0d0s7 192423 9 173172 1% /export/home > swap 227444 4 227440 1% /tmp > /dev/dsk/c0t1d0s2 1936412 10578 1732193 1% /usr/local > /dev/dsk/c0t2d0s3 123231 9 123222 1% /opt' > As you see, it is mounted but it does not contain the imported data. > Can you please let me know why ? If you did newfs on it, you have created a new filesystem on that disk and all old data is lost forever.
From: hadi motamedi on 13 Jul 2010 05:56
> > 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 ? |