LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Mount Solaris partition in FC7 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/mount-solaris-partition-in-fc7-602167/)

zillah 11-24-2007 08:54 PM

Mount Solaris Express CE's partition in FC7
 
I have got three OSs (Windos2003, Solaris Express CE, FC7) , I am looking to mount solrais partition through FC7

This what I had done :
[root@localhost mnt]# mkdir /mnt/SOL
[root@localhost mnt]# cat /etc/fstab
Code:

LABEL=/                /                      ext3    defaults        1 1
LABEL=/boot            /boot                  ext3    defaults        1 2
tmpfs                  /dev/shm                tmpfs  defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                  /sys                    sysfs  defaults        0 0
proc                    /proc                  proc    defaults        0 0
LABEL=/home            /home                  ext3    defaults        1 2
/dev/sda3              swap                    swap    defaults        0 0
LABEL=SWAP-sda8        swap                    swap    defaults        0 0
/dev/sda1            /mnt/W2K3  ntfs    ro,defaults,umask=0222        0

Code:

[root@localhost ~]# fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        5222    41945683+  7  HPFS/NTFS
/dev/sda2            5223        6497    10241437+  c  W95 FAT32 (LBA)
/dev/sda3            6498        8456    15735667+  bf  Solaris
/dev/sda4            8457      14593    49295452+  5  Extended
/dev/sda5            8457        8482      208813+  83  Linux
/dev/sda6            8483      11915    27575541  83  Linux
/dev/sda7          11916      14465    20482843+  83  Linux
/dev/sda8          14466      14592    1020096  82  Linux swap / Solaris
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1        9729    78148161    7  HPFS/NTFS

I tried below but they did not work
[root@localhost SOL]# mount -oufstype=sunx86 /dev/sda3 /mnt/sol

[root@localhost SOL]# mount -o ro -t ufs /dev/sda3 /mnt/SOL
mount: /dev/sda3 already mounted or /mnt/SOL busy

I found similar threads here :
http://www.opensolaris.org/jive/thre...ssageID=120615
http://www.unixguide.net/sun/x86faq/9.23.shtml

zillah 11-24-2007 09:01 PM

Output for FC7 /boot/menu.lst
Code:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,4)
# kernel /vmlinuz-version ro root=/dev/sda7
# initrd /initrd-version.img
#boot=/dev/sda
default=2
timeout=15
splashimage =(hd0,4)/grub/splash.xpm.gz
#hiddenmenu

# This is new kernel
title Fedora 7 (2.6.23.1-21.fc7)
root (hd0,4)
kernel /vmlinuz-2.6.23.1-21.fc7 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.23.1-21.fc7.img


#I commented these below lines, because I used "Yumex" to update my system on 17-11-07
#title Fedora Core 7(2.6.21-1.3194.fc7)
# root (hd0,4)
# kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet
# initrd /initrd-2.6.21-1.3194.fc7.img

# I say that windows partion is on sda1
title W2K3 Server
rootnoverify (hd0,0)
chainloader +1
makeactive

#I say that solaris partion is on sda3
title Solaris Express CE
rootnoverify (hd0,2)
chainloader +1


jlliagre 11-25-2007 12:23 AM

Your fstab is mounting the Solaris partition as Linux swap ... :confused: !!

This is a good way to destroy your Solaris installation.

Moreover, you try to mount that primary partition while you should instead mount ufs slices.

You need to check also if ufs support is there in your distribution. Have a look at the O/S boot messages (dmesg) to see if the slices are detected by the Linux kernel.

syg00 11-25-2007 12:39 AM

I'm surprised it even mounted as swap. What does "swapon -s" display; whilst you're in dmseg, have a look for any swap related messages as well.

zillah 11-25-2007 12:54 AM

Quote:

Your fstab is mounting the Solaris partition as Linux swap ...
Because when I created the partition where solaris resides now, as type of :" swap ".

zillah 11-25-2007 01:14 AM

Quote:

swapon -s
[root@localhost ~]# swapon -s
Code:

Filename                                Type            Size    Used    Priority
/dev/sda3                              partition      15735656        0      -1
/dev/sda8                              partition      1020088 0      -2
[root@localhost ~]#

Quote:

Have a look at the O/S boot messages (dmesg) to see if the slices are detected by the Linux kernel.
Code:

[root@localhost ~]# dmesg | grep solaris
 sda3: <solaris: [s0] sda9 [s1] sda10 [s2] sda11 [s7] sda12 [s8] sda13 [s9] sda14 >


syg00 11-25-2007 01:45 AM

Whoa !!!.
O.K., delete the line for /dev/sda3 (for swap) out of fstab, and do a "swapoff /dev/sda3" from your (running) Linux system.
After that, it's over to jlliagre for advice regarding Solaris

zillah 11-25-2007 01:53 AM

Quote:

delete the line for /dev/sda3 (for swap) out of fstab
Are you saying that the new code for /etc/fstab should like similar ro below ?
Code:

LABEL=/                /                      ext3    defaults        1 1
LABEL=/boot            /boot                  ext3    defaults        1 2
tmpfs                  /dev/shm                tmpfs  defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                  /sys                    sysfs  defaults        0 0
proc                    /proc                  proc    defaults        0 0
LABEL=/home            /home                  ext3    defaults        1 2

 
LABEL=SWAP-sda8        swap                    swap    defaults        0 0
/dev/sda1            /mnt/W2K3  ntfs    ro,defaults,umask=0222        0


syg00 11-25-2007 02:03 AM

Yep - looks o.k.

jlliagre 11-25-2007 02:19 AM

I hope swapoff isn't going to do destructive actions.

Anyway, you should then try to mount sda9 (s0) and sda12 (s7) which are likely Solaris "/" and "/export".

zillah 11-25-2007 02:26 AM

Quote:

I hope swapoff isn't going to do destructive actions.
Before doing this

Could you please let me know what the exact command for mounting sda9 (s0) and sda12 (s7) which are likely Solaris "/" and "/export". I just want to give a try and see

jlliagre 11-25-2007 02:50 AM

Something like (I haven't a machine to check right now):
Code:

mount -t -ufs -o ufstype=sun,ro /dev/sda9 /mnt/solaris

syg00 11-25-2007 02:56 AM

Quote:

Originally Posted by jlliagre (Post 2969900)
I hope swapoff isn't going to do destructive actions.

Has happened at every shutdown, so I can't see any (further) damage eventuating. Merely causes swapped-out (physical rather than swap-cache) pages to be swapped back into storage, and the swap extent freed.

Looks like it's unused anyway - at least when that display was done.

jlliagre 11-25-2007 03:30 AM

Yes. I would be interested to know why the Solaris partition was set as swap in the first place. This used to be an issue with older versions when the Solaris partition id (0x82) was clashing with Linux swap.

Now Solaris id is 0xbf so there is no reason for this confusion to appear outside user mistake or Linux distribution hostile behavior ... I hope what happened is the former guess.

zillah 11-25-2007 03:59 AM

Without changing the /etc/fstab, and without using swapoff command, I was able to mount. This is what i have done:
Code:

[root@localhost ~]# mount -o ro -t ufs /dev/sda9 /mnt/SOL
[root@localhost ~]# cd /mnt/SOL
[root@localhost SOL]# ls
bin  devices  home    lost+found  net      proc    tmp
boot  etc      kernel  media      opt      sbin    usr
dev  export  lib    mnt        platform  system  var



All times are GMT -5. The time now is 09:26 PM.