Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What are you listing there? Did you mount that disk?
And did you unmount it before the copy? If not, there is a chance that the original directory content, before the copy, is still in the file system cache.
outch !
More I read yours remarks more I'm not sure of what I'm doing ... Goal : duplicate source disk (c0t0d0) to destination disk (c0t9d0); these are same type of disk.
So I summarize here information and what i did.
I follow Solaris admin guide.
I restarted from the beginning to be sure.
1°) Destination disk is formatted and inserted into the SUN's slot. Partitions are identical on both disks (I used format).
2°) I constructed a new ufs fs on c0t9d0s2. (I used s2 because I understood, it represents the whole disk; is that true ?)
3°) I labelled destination disk.
4°) Vfstab still only mention source disk (see 1.png)
5°) I created u09 as mounting point. (see 2.png)
6°) I modified Vfstab but I'm wondering about mount point for new slices(see 3.png)
could c0t0d0s3 has same mounting point than c0t9d0s3 or should i write /usr for source disk and /u09/usr for destination disk ?
The goal is still to remove source disk form slot0 and insert destination disk to its place.
Let's close all the ? before launching dd command.
Thank you.
EB
you must not use the same mount point twice (or more times), that cannot work. use /var2 /usr2 or something similar.
you can use dd on slices (like /dev/rdsk/c0t9d0s2), but in that case that slice must not be mounted.
you can use cp or rsync (if you have) on directories - on mounted filesystem.
But you must not umount /var and /usr on a running OS, that will most probably cause a dead system.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803
Rep:
Quote:
Originally Posted by berndbausch
Sorry for this question, but is /dev/rdsk/c0t9d0s2 a device file?
If yes, and if the command succeeds successfully, the two disk partitions should have the same content.
How do you check that the destination disk is empty?
That's an older UNIX device naming convention, especially on Sun/Solaris/SVR4.2 systems: controller, target (as in SCSI target), disk (?), and slice (i.e., partition). If memory serves slice 2 means "entire disk" (as did the "c" partition on DEC UNIX/Tru64). I can't recall ever seeing anything other than "d0" in a Solaris disk device name.
I'd always hoped Linux would adopt it and leave disk letters behind but we got UUIDs instead. Oh, well...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.