Re: Disk partition on a Sparc 5
I have a following setup for Linux and Solaris:
fdisk -l /dev/hdb
Disk /dev/hdb (Sun disk label): 16 heads, 63 sectors, 6779 cylinders
Units = cylinders of 1008 * 512 bytes
Device Flag Start End Blocks Id System
/dev/hdb1 0 2350 1184400 83 Linux native
/dev/hdb2 u 2350 2857 255528 82 Linux swap
/dev/hdb3 0 6779 3416616 5 Whole disk
/dev/hdb4 2857 6779 1976688 83 Linux native
Solaris disk with Linux partition:
fdisk -l /dev/hda
Disk /dev/hda (Sun disk label): 15 heads, 63 sectors, 8892 cylinders
Units = cylinders of 945 * 512 bytes
Device Flag Start End Blocks Id System
/dev/hda1 0 152 71820 2 SunOS root
/dev/hda2 u 152 707 262237+ 3 SunOS swap
/dev/hda3 0 8892 4201470 5 Whole disk
/dev/hda4 707 1141 205065 7 SunOS var
/dev/hda5 1141 2724 747967+ 4 SunOS usr
/dev/hda6 2724 8600 2776410 83 Linux native
/dev/hda8 8600 8892 137970 8 SunOS home
I mounted the partitions like:
/dev/hdb1 on / type ext2 (rw,errors=remount-ro,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdb4 on /export type ext2 (rw)
/dev/hda6 on /ext type ext2 (rw)
/dev/hdd1 on /ext2 type ext2 (rw)
/dev/hda1 on /solaris type ufs (ro,ufstype=sun)
/dev/hda4 on /solaris/var type ufs (ro,ufstype=sun)
/dev/hda5 on /solaris/usr type ufs (ro,ufstype=sun)
/dev/hda8 on /solaris/home type ufs (rw)
I didn't have problem with partitioning the Linux disk using
fdisk. Just used s the make the default partitions: making the root,
swap and Whole disk partition then I deleted the first and second
partition and made new ones with n (Linux native). Only change was I
used 7200 for rpm instead of 5400. Using the s command gives a lot of
options I used 0 (custom) and picked up the defaults.
Date: Fri, 5 Oct 2001 14:39:21 +1000 (EST)
From: Craig Ian Dewick <firstname.lastname@example.org>
On 2 Oct 2001, Thomas Duffy wrote:
> On Tue, 2001-10-02 at 19:22, David Demland wrote:
> > I am trying to install Debian on a Sparc 5. I get to the point of partition
> > the disk, question: What units should I use and what are the sizes? When I
> > configure them they way I think they should be I can not install the tar
> > balls there is an error. I am sure it is disk space.
> make sure you have a sun partition table. make sure partition 3 is a
> "Whole Disk". and that swap is not on partition 1. other than that,
> you can configure any sizes you desire.
Why shouldn't the swap be in partition 1? That's where Sun's format
program defaults to placing the swap partition. With a Solaris or NetBSD
installation, I always set it up this way:
0 - / [ie. root] (min 128 MB of space to allow for crash-dumps, etc.)
1 - swap
2 - whole disk mirror
3 - /var
6 - /usr
and the others are used depending what the machine is going to do.
Generally 4 becomes where I still all the X-windows data (/usr/openwin
with Solaris), 5 is where all my application source goes, and 7 will be
/home on any machine which has other users.
The question is how does this translate to what Debian expects? Why can't
'fdisk' supplied with Debian set up the disk the same way as Sun's format
program with a SunOS-compatible disk label, etc.? If it already can do
that, I didn't get anything out of the install instructions that suggested
I was tearing my hair out the first time I installed Debian recently
trying to work out how to get the partition table set up, and I worked out
by trial and error that I needed to boot off a Solaris CD in single-user
mode to set up the disk label before tryuing to install Debian. That was
before the disk died and now I'm doing it all again from scratch with a
new drive later today.
> if you let fdisk auto partition the disk, it should stick / on part1,
> swap on part2 and make part3 a "Whole Disk"
Can 'fdisk' do this with a disk that does not have any SunOS disk label
already written onto it? I'm going to get into re-installing Potato onto
the new disk tonight... BTW, I had problems working out what Debian called
the CD-ROM device so the CD install I did the first time around was rather
botched and I ended up pulling off the core stuff only and getting
everything else from a Debian FTP site.
The instructions for doing all this are very confusing for first-time
Linux users like me (I'm used to Solaris but not Linux), btw.
Craig Ian Dewick (email@example.com). http://lios.apana.org.au/~craig
Operator of Jedi (APANA Sydney member-access site) in Waterfall, Australia.
Always striving for a secure long-term future in an insecure short-term world
Have you exported a crypto system today? Do your bit to undermine the NSA.