i have installed on a 8Gb disk /sdc solaris-2009.6
i cannot mount suse in solaris or solaris in suse.
i have tried installing xfs and its supports.
any idea will be helpful.
i want to copy the solaris installation to a partition in /dev/sdb
Maybe you could install OpenSolaris in a VirtualBox VM and then mount it as a raw partition and suck out the data that way?
mount -t ufs ufstype=sunx86 /dev/sdax /mountpoint
where /dev/sdax is the Solaris slice you want to mount.
The devices files should have been created if the Linux kernel can read the Solaris disklabel (it does with BSD disklabel).
type
fdisk -l
or
dmesg | grep sd | grep '<'
to see if the devices are there.
If not, you need a kernel which supports Solaris partitions. But I believe it does ( I have only BSD, not Solaris).
Well … I was assuming that Solaris still uses ufs filesystem … but I guess that was yesterday. I think it should use zfs nowadays. In that case, you have to mount the slices as zfs partitions. Don’t know how. (man mount)
14:06 linux-m7vl:~ # fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x92a1e1ba
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1424 11438248+ 7 HPFS/NTFS
/dev/sda2 1425 9729 66709912+ f W95 Ext’d (LBA)
/dev/sda5 1425 1612 1510078+ b W95 FAT32
/dev/sda6 1613 4652 24418768+ 7 HPFS/NTFS
/dev/sda7 4653 9728 40772938+ 7 HPFS/NTFS
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1642 13189333+ b W95 FAT32
/dev/sdb2 1643 30401 231006667+ f W95 Ext’d (LBA)
/dev/sdb5 1643 6128 36033763+ 83 Linux
/dev/sdb6 6129 6329 1614501 82 Linux swap / Solaris
/dev/sdb7 6330 13406 56845971 83 Linux
/dev/sdb8 13407 19932 52420063+ 83 Linux
/dev/sdb9 19933 25104 41544058+ 83 Linux
/dev/sdb10 25105 27742 21189703+ 83 Linux
/dev/sdb11 27743 30401 21358386 83 Linux
Disk /dev/sdc: 8622 MB, 8622931968 bytes
255 heads, 63 sectors/track, 1048 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1cba5b87
Device Boot Start End Blocks Id System
/dev/sdc1 * 2 1048 8410027+ bf Solaris
14:06 linux-m7vl:~ # dmesg | grep sd | grep ‘<’
0.682377] sda: sda1 sda2 <
0.711372] sdb1 sdb2 <
0.753439] sdc1: <solaris: [s0] sdc5 [s1] sdc6 [s2] sdc7 [s8] sdc8 >
14:08 linux-m7vl:~ #
/dev/sdb11 is reserved for solaris.
i could not directly install solaris to this partition.
so i want to copy / of solaris here and run grub later.
seems kernel looks at this solaris drive sdc
14:08 linux-m7vl:~ # mount ufs ufstype=sunx86 /dev/sdc /mnt/sdc
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount -t fstype] something somewhere’.
Details found in /etc/fstab may be omitted.
mount -a -t|-O] … : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: -nfFrsvw] -o options] -p passwdfd].
For many more details, say man 8 mount .
14:13 linux-m7vl:~ #
man mount does not help much in this regard.
in the virtual box the solaris cd does not boot up.
Your Solaris slices are here :
Device Boot Start End Blocks Id System
/dev/sdc1 * 2 1048 8410027+ bf Solaris
14:06 linux-m7vl:~ # dmesg | grep sd | grep ‘<’
0.682377] sda: sda1 sda2 <
0.711372] sdb1 sdb2 <
0.753439] sdc1: <solaris: [s0] sdc5 [s1] sdc6 [s2] sdc7 [s8] sdc8 >
The devices you have to deal with are /dev/sdc5 /dev/sdc6 /dev/sdc7 and /dev/sdc8. One of those is probably not mountable (swap).
I dont know what filesystem they have. If it is ufs, you would mount them with -t ufs ufstype=sunx86.
It looks like openSUSE doesn’t support zfs.
Well … alternatively you can create a ufs partition under Solaris. You will be able to mount it under Linux, probably read only though (it depends on kernel compilation but I bet it would be read only).
Hi
But if your only wanting to copy the you MAY be able to use the dd
command to copy each slice?
Is the solaris system bootable, if so you could look at using the RAID
tools to create a mirror let it sync, break the mirror and fix things
up on sdb.
There is also an article here on fuse-zfs (there are rpms for 11.1 not
11.2);
http://drwetter.org/blog/zfs_under_linux.en.html
–
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.42-0.1-default
up 20 days 2:42, 4 users, load average: 0.02, 0.13, 0.15
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53
thank you very much for the very informative link you provided. [malcolmlewis]
as the article concludes the latest zfs is different from previous versions.
i can boot into opensolaris from my hdd2 but i cannot access any other drive or partitions from solaris.
looks like it does not want to recognise any other formats
there is a mention of ntfs in the dfs/fs but it does not work easily
the extra hdd my psu cannot handle for long.
i will give it a try with dd command.
i dont know if it can work without mounting it somewhere both drive and partiton.
one should be very thorough with solaris for that kind of activity.
i could not get even 1% of the support from solaris forums as i got here.
thanks.
let me try to copy with dd command.
Hi
You don’t need the drive mounted to use dd If you run the format
command in solaris, does it see the other drives? eg;
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0 <DEFAULT cyl 1302 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
Specify disk (enter its number):
–
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.42-0.1-default
up 20 days 14:22, 4 users, load average: 0.01, 0.06, 0.07
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53