OpenSolaris UFS Question


 
Thread Tools Search this Thread
Operating Systems Solaris OpenSolaris UFS Question
# 8  
Old 07-28-2013
Solaris doesn't support at all S51K indeed.

To clone a disk, use the dd command.
Code:
dd if=/dev/dsk/c7d0p0 of=/var/tmp/c7d0p0.raw bs=128k

Then, you can either use a new disk of the same size and copy the raw img to it using dd again, or create a vmdk descriptor of the raw file and use VirtualBox or similar to access it.

Edit: Added bs=128k to increase copy speed

Last edited by jlliagre; 07-29-2013 at 09:43 AM..
# 9  
Old 07-29-2013
Once you clone the disk to a file, you can also try mounting it directly under Solaris using a loopback device:

Code:
dd if=/dev/dsk/c7d0p0 of=/path/to/copy
cp /path/to/copy /path/to/copy.bak
lofiadm -a /path/to/copy.bak
mount -o ro /dev/lofi/1 /mnt

You might need to change the partition id from 0x63 (SVR4) to 0x82 (Solaris).

You might also be better off trying this on Linux:

Linux/BSD: sharing experiences: HowTo: Mount UFS partition on CentOS / SL 6.2
# 10  
Old 07-29-2013
@achenle You can't mount a whole disk (outside floppies and usb keys), only slices or partitions are mountable with disks that have a fdisk partition and/or a sun label. You method is right but one step is missing, i.e. extracting the slice to a file to be lofi mounted.

By the way, replacing the partition id to either 0x63 or 0x82 is indeed a mandatory prerequisite I already suggested in post #6 (although in decimal as fdisk reports it that way).
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

UFS defragmentation

is there any other/better way to defragment the ufs slice instead of backup+restore? how to tell which slice needs defragmenting? (2 Replies)
Discussion started by: orange47
2 Replies

2. Solaris

Zones not in ufs

Hi All, I am installing Solaris Kernel Update Patch 2.1 When I am installing , An error message is saying that Non Global Zones is not mounted in ufs. I have two non global zones. When i see in the vfstab , the filesystem in vxfs. I dont know whether it will give any impact... (2 Replies)
Discussion started by: jegaraman
2 Replies

3. Solaris

UFS filesystem mounted on 2 hosts question

I have two Unix (Solaris) hosts that are both attached to our SAN. They are both presented with the same luns. What I want to do is have the same UFS filesystem mounted on both hosts at the same time. What I am trying to accomplish is creating a zone that will reside on both hosts but only... (2 Replies)
Discussion started by: beaker457
2 Replies

4. AIX

Ufs

Hi i have 2 know the full details of unix file systems. some one please help me (1 Reply)
Discussion started by: sathish2win
1 Replies

5. Solaris

UFS logging

I have a couple of servers where something weird is going on. When I run the command "mount | grep logging" I get something similair to this / on /dev/dsk/c0t0d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=220000 But when I look at /etc/vfstab I dont... (6 Replies)
Discussion started by: csaunders
6 Replies

6. Solaris

UFS Version

Hi, Can anyone help me. I would like to know the ufs version on solaris 7 & 8. Also i would like to know is there any command to verify it. Regards, Raja (1 Reply)
Discussion started by: RajaRC
1 Replies

7. UNIX for Dummies Questions & Answers

solaris File system question ( UFS )

Hello all, I'm ufs file system, how can u use the same disk in another machine with the data in tact? to make it clear, I've an ufs FS in a mount point /file1 ( 8GB). now they decide to reintall the OS. After the reinstall, how can i get the same data as it is? will mounting the disk as /file1... (3 Replies)
Discussion started by: i2admin
3 Replies

8. UNIX for Dummies Questions & Answers

UFS partition

Hi all, I have FreeBSD and Debian in my HD, the FreeBSD partition is very small and I'd like to change. I try to use partition magic but it does not work with UFS parition. Anyone know a good partition software? (1 Reply)
Discussion started by: SeVEn
1 Replies
Login or Register to Ask a Question