View previous topic :: View next topic |
Author |
Message |
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Mon Dec 04, 2006 3:09 pm Post subject: Can Gentoo fdisk create disk partitions for Solaris to use? |
|
|
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 |
|
|
HTS Guru
Joined: 20 Feb 2006 Posts: 410 Location: Bristol, UK
|
Posted: Mon Dec 04, 2006 3:23 pm Post subject: |
|
|
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 |
_________________ Plasma desktop on Core i7 8086K OC @ 5GHz, 64GB DDR4, 2 x M.2 Samsung 970 PRO 1TB SSDs |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Mon Dec 04, 2006 5:22 pm Post subject: |
|
|
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 |
|
|
HTS Guru
Joined: 20 Feb 2006 Posts: 410 Location: Bristol, UK
|
Posted: Mon Dec 04, 2006 6:44 pm Post subject: |
|
|
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. _________________ Plasma desktop on Core i7 8086K OC @ 5GHz, 64GB DDR4, 2 x M.2 Samsung 970 PRO 1TB SSDs |
|
Back to top |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Tue Dec 05, 2006 9:05 am Post subject: |
|
|
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 |
|
|
recupero n00b
Joined: 25 Jun 2006 Posts: 26
|
Posted: Tue Dec 05, 2006 11:11 am Post subject: |
|
|
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 |
|
|
gust4voz Retired Dev
Joined: 09 Sep 2003 Posts: 373 Location: Buenos Aires, Argentina
|
Posted: Tue Dec 05, 2006 11:21 am Post subject: |
|
|
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 |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Wed Dec 06, 2006 3:17 pm Post subject: |
|
|
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 |
|
|
gust4voz Retired Dev
Joined: 09 Sep 2003 Posts: 373 Location: Buenos Aires, Argentina
|
Posted: Wed Dec 06, 2006 10:49 pm Post subject: |
|
|
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 |
|
|
psychocandy Apprentice
Joined: 09 Nov 2006 Posts: 192
|
Posted: Thu Dec 07, 2006 12:37 am Post subject: |
|
|
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 |
|
|
|