Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can Gentoo fdisk create disk partitions for Solaris to use?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
psychocandy
Apprentice
Apprentice


Joined: 09 Nov 2006
Posts: 192

PostPosted: Mon Dec 04, 2006 3:09 pm    Post subject: Can Gentoo fdisk create disk partitions for Solaris to use? Reply with quote

What I'd like to do is to be able to boot from a Gentoo CD and then run a script to partition the HD correctly for use with Solaris?

Is this possible using Gentoo's Fdisk? If so, are there any specific disk labels or ids that need to be set up?

Or is it only possible using Solaris format?
Back to top
View user's profile Send private message
HTS
Guru
Guru


Joined: 20 Feb 2006
Posts: 397
Location: Bristol, UK

PostPosted: Mon Dec 04, 2006 3:23 pm    Post subject: Reply with quote

Never used Solaris but I know fdisk from the Gentoo CD supports Solaris partitions.
When you create a partition with fdisk, you need to choose a partition type. The current list seems to contain what you're looking for:
Code:
be  Solaris boot
bf  Solaris

_________________
64bit Gentoo on dual Xeon X5650 (24 ht cores), 18GB DDR3 Ram, nVidia Quadro 2000, 128GB Crucial SSD
Back to top
View user's profile Send private message
psychocandy
Apprentice
Apprentice


Joined: 09 Nov 2006
Posts: 192

PostPosted: Mon Dec 04, 2006 5:22 pm    Post subject: Reply with quote

HTS wrote:
Never used Solaris but I know fdisk from the Gentoo CD supports Solaris partitions.
When you create a partition with fdisk, you need to choose a partition type. The current list seems to contain what you're looking for:
Code:
be  Solaris boot
bf  Solaris


Yeh. You're right - I can boot from a gentoo CD and see Solaris partitions with no problem.

I'm just not sure if I can format them in gentoo and then use them with Solaris. I guess I'll just have to give it a try !
Back to top
View user's profile Send private message
HTS
Guru
Guru


Joined: 20 Feb 2006
Posts: 397
Location: Bristol, UK

PostPosted: Mon Dec 04, 2006 6:44 pm    Post subject: Reply with quote

Well, depends on the filesystem you want to use...
Don't know much about Solaris though. Is there a specific Solaris filesystem?
If you use UFS or XFS your can use mkfs to format the partitions.
_________________
64bit Gentoo on dual Xeon X5650 (24 ht cores), 18GB DDR3 Ram, nVidia Quadro 2000, 128GB Crucial SSD
Back to top
View user's profile Send private message
psychocandy
Apprentice
Apprentice


Joined: 09 Nov 2006
Posts: 192

PostPosted: Tue Dec 05, 2006 9:05 am    Post subject: Reply with quote

HTS wrote:
Well, depends on the filesystem you want to use...
Don't know much about Solaris though. Is there a specific Solaris filesystem?
If you use UFS or XFS your can use mkfs to format the partitions.


No - Solaris just uses UFS.

There is something strange it does with the disk labels though....
Back to top
View user's profile Send private message
recupero
n00b
n00b


Joined: 25 Jun 2006
Posts: 26

PostPosted: Tue Dec 05, 2006 11:11 am    Post subject: Reply with quote

What happened to me is I can no longer install Solaris once I've partitioned the disks with any Linux.
Solaris reportedly cannot access the disks. fdisk on Solaris install makes a whole lot on formatting, but at the end it fails after writing EFI format to the disks.
Back to top
View user's profile Send private message
gust4voz
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 373
Location: Buenos Aires, Argentina

PostPosted: Tue Dec 05, 2006 11:21 am    Post subject: Reply with quote

Also there's no mkfs.ufs in linux to format solaris partitions.
If you wanna dual-boot on a single disk do the trick with solaris and leave some free space for linux, you can make new partitions there later.
_________________
Gustavo Zacarias
Gentoo/SPARC monkey
Back to top
View user's profile Send private message
psychocandy
Apprentice
Apprentice


Joined: 09 Nov 2006
Posts: 192

PostPosted: Wed Dec 06, 2006 3:17 pm    Post subject: Reply with quote

gust4voz wrote:
Also there's no mkfs.ufs in linux to format solaris partitions.
If you wanna dual-boot on a single disk do the trick with solaris and leave some free space for linux, you can make new partitions there later.


So theres no way to 'make' a filesystem in a partition in UFS format?

I'm actually using a gentoo boot cd which I've built which runs partimage to backup individual partitions on a sun box. It works because it just looks at unmounted partitions so doesnt care whats on there.

So, now what I want to be able to do is boot from another CD, partition the HD accordingly as UFS filesystems and then restore onto these partitions using partimage again. Luckily partimage also allows you to restore the bootblock.

The question is what happens if I just leave these partitions as raw (no fs) and restore to them using partimage? Or do they need to be mkfs first... I wonder.....

Perhaps partimage does the necessary fs stuff during its restore...
Back to top
View user's profile Send private message
gust4voz
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 373
Location: Buenos Aires, Argentina

PostPosted: Wed Dec 06, 2006 10:49 pm    Post subject: Reply with quote

partimage does it's magic on it's own as far as i know, so besides partitioning you shouldn't need to mkfs anything before restoring.
_________________
Gustavo Zacarias
Gentoo/SPARC monkey
Back to top
View user's profile Send private message
psychocandy
Apprentice
Apprentice


Joined: 09 Nov 2006
Posts: 192

PostPosted: Thu Dec 07, 2006 12:37 am    Post subject: Reply with quote

gust4voz wrote:
partimage does it's magic on it's own as far as i know, so besides partitioning you shouldn't need to mkfs anything before restoring.


Now that would be cool....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum