LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 11-24-2007, 08:54 PM   #1
zillah
Member
 
Registered: Oct 2004
Posts: 536

Rep: Reputation: 30
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

Last edited by zillah; 11-24-2007 at 09:07 PM.
 
Old 11-24-2007, 09:01 PM   #2
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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
 
Old 11-25-2007, 12:23 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Your fstab is mounting the Solaris partition as Linux swap ... !!

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.
 
Old 11-25-2007, 12:39 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
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.
 
Old 11-25-2007, 12:54 AM   #5
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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 ".

Last edited by zillah; 11-25-2007 at 03:45 AM.
 
Old 11-25-2007, 01:14 AM   #6
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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 >

Last edited by zillah; 11-25-2007 at 01:15 AM.
 
Old 11-25-2007, 01:45 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
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
 
Old 11-25-2007, 01:53 AM   #8
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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
 
Old 11-25-2007, 02:03 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Yep - looks o.k.
 
Old 11-25-2007, 02:19 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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".
 
Old 11-25-2007, 02:26 AM   #11
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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
 
Old 11-25-2007, 02:50 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Something like (I haven't a machine to check right now):
Code:
mount -t -ufs -o ufstype=sun,ro /dev/sda9 /mnt/solaris
 
Old 11-25-2007, 02:56 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Quote:
Originally Posted by jlliagre View Post
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.
 
Old 11-25-2007, 03:30 AM   #14
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 11-25-2007, 03:59 AM   #15
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC7 grub suddenly stops booting Solaris Express CE zillah Linux - Software 23 11-30-2007 04:20 PM
Mount Issue in Gnome of FC7 shreks Linux - Software 0 06-05-2007 11:23 AM
Mount primary prtition. And first logical drive in an Extended DOS partition zillah Solaris / OpenSolaris 5 01-08-2006 05:16 AM
can swap be an extndd prtition rhl_one Slackware 2 01-08-2004 01:11 PM
Installing R/H 8.0 on a prtition drive givey Linux - Software 2 03-19-2003 07:23 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration