Re: Re: Debian Installation on Ultra 30 (was Re: Updated Debian Ports installation images 2021-09-23)

2021-09-27 Thread Hermann . Lauer
Hello Stan,

On Mon, Sep 27, 2021 at 08:33:54AM -0600, Stan Johnson wrote:
> Having the above partitioning scheme seems to work ok with GRUB; the
> reason I asked about the "Whole disk" partition is that some
> partitioning tools (specifically fdisk, as I recall), refuse to create
> additional partitions once "Whole disk" has claimed all of the sectors. 

Oh ok, couldn't remember how that was - our Sparks are in Storage since a
few years now.

> In addition, there is an oddity (I think with parted, but I don't recall
> now) where the "Whole disk" partition needed to exist, otherwise the
> partitioner only recognized 1 GB. Perhaps this is related to parted
> complaining during installation that the number of cylinders on the disk
> exceeded the maximum of 65536 cylinders? Maybe parted is reading the
> disk geometry from the third partition on the disk regardless of what's
> there?

No idea.

> So I ended up using this partitioning scheme; note that parted complains
> (but fdisk does not):
> 
> # parted /dev/sda
> GNU Parted 3.4
> Using /dev/sda
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted) print   
> Warning: The disk CHS geometry (562253,255,2) reported by the operating
> system does not match the geometry stored on the disk label
> (17849,255,63).
> Ignore/Cancel? C 
> Model: SEAGATE ST3146807LC (scsi)
> Disk /dev/sda: 147GB
> Sector size (logical/physical): 512B/512B
> Partition Table: unknown
> Disk Flags:
> (parted) quit

Looks to me that parted did not recognize sun disklabel format.

> # fdisk -l /dev/sda
> Disk /dev/sda: 136.73 GiB, 146815737856 bytes, 286749488 sectors
> Disk model: ST3146807LC
> Geometry: 255 heads, 63 sectors/track, 17849 cylinders
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: sun
> 
> Device    Start   End   Sectors   Size Id Type Flags
> /dev/sda1 0   1048575   1048576   512M  1 Boot
> /dev/sda2   1060290  17837505  16777216 8G 83 Linux native
> /dev/sda3  17848215  34625430  16777216 8G 83 Linux native
> /dev/sda4  34636140  68190571  33554432    16G 83 Linux native
> /dev/sda5  68195925  70293076   2097152 1G 82 Linux swap  u
> /dev/sda6  70300440 286744184 216443745 103.2G 83 Linux native

The speciality of sun disklabel format is that sda1 contains the boot block
(block 0) of the HD. I somehow misused that in the past to mirror
the boot block in raid1 configurations of sda1. YMMV.

> It appears that SILO and GRUB do something similar -- they appear to be
> installed in the 1024-byte "boot block" of an ext2 filesystem; for more
> information, see this link for ext2 filesystem structure:
> 
> http://www.science.smith.edu/~nhowe/teaching/csc262/oldlabs/ext2.html

Yep, the filesystem needs to leave space for that boot block on (old)
sparc machines on sda1 starting at sector 0. I wonder if there is an historic
explanation for that somehow wicked setup on spark machines:
Originally booting from a tape?

Greetings
  Hermann



Re: Debian Installation on Ultra 30 (was Re: Updated Debian Ports installation images 2021-09-23)

2021-09-27 Thread Stan Johnson
Hi Adrian,

On 9/27/21 2:42 AM, John Paul Adrian Glaubitz wrote:
> Hello!
>
> On 9/26/21 07:34, Stan Johnson wrote:
>> Not knowing what the preferred size should be for a GRUB /boot
>> partition, I decided to let Guided Partioning use its defaults for
>> /dev/sda. As I recall, the partitioner warned that the number of
>> cylinders on the disk exceeded the maximum of 65536, but the creation of
>> filesystems and the rest of the installation proceeded anyway, without
>> any other noticeable errors.
>>
>> The layout for /dev/sda is as follows:
>>
>> # fdisk -l /dev/sda
>> Disk /dev/sda: 136.73 GiB, 146815737856 bytes, 286749488 sectors
>> Disk model: ST3146807LC
>> Geometry: 255 heads, 2 sectors/track, 37965 cylinders
>> Units: sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disklabel type: sun
>>
>> Device Start   End   Sectors   Size Id Type Flags
>> /dev/sda1  0   1000109   1000110 488.3M  1 Boot
>> /dev/sda21000110 284748299 283748190 135.3G 83 Linux native
>> /dev/sda3  0 286749029 286749030 136.7G  5 Whole disk
>> /dev/sda4  284748300 286749029   2000730 976.9M 82 Linux swap
>>
>> -> Question 1: If I don't plan to install Solaris, is it safe to remove
>> the "Whole disk" partition (/dev/sda3)?
> I think so.

Yes, I've confirmed this in testing.

>
>> -> Question 2: What is the best size for /boot (/dev/sda1)? After
>> installation, the /boot partition had only about 57 MB of files.
> It should be at least 150 MB as you can easily run out of disk space
> there when multiple kernels are installed. You can also live with 100 MB
> or less, but then you always need to make sure to purge old kernels
> before installing a new one.
>
> I have often run into the situation that I ran out of disk space when
> /boot was small, so we eventually decided to raise the minimum size
> for automatic partitioning.

Thanks.  I've also confirmed that the Boot partition doesn't have to be
mounted as /boot (see my reply to Hermann Lauer).  But it can be, and in
that case, it would need to be large enough to hold all of the kernels
that may be needed.

>
>> After installation, at every boot, I see this:
>> -
>> GRUB Loading kernel
>> Welcome to GRUB!
>>
>> error: out of memory.
>> error: no suitable video mode found.
>> error: no video mode activated.
>> -
> There are some limitations with GRUB on older machines, unfortunately.


So is the "out of memory" error above not a problem? The video errors
are probably related to the video mode needed by my monitor not being
recognized by GRUB -- not really a GRUB bug, but it would be nice to be
able to specify a video mode in GRUB (there probably is a way to do that).


>
>> Then the GRUB menu is displayed, and I am able to scroll through the
>> options using the "v" and "^" keys (but not the up and down arrow keys).
> I think that applies to all systems which basically use a (virtual) serial
> console where arrow keys aren't necessarily available.
>
>> After selecting the new Debian SID (or allowing it to be selected by
>> default), the X login eventually comes up, but it seems to be off the
>> screen. If I login anyway, the Xfce desktop comes up, but it seems to be
>> larger than the screen. This problem, which is similar to a problem I
>> had with Debian 7.8, can probably be fixed with an appropriate xorg.conf
>> file.
>> But UUID=052feb55-ef72-4a8a-8f6d-2d63390e76ff doesn't exist.
>>
>> So this line:
>>
>> linux /boot/vmlinux-5.14.0-1-sparc64
>> root=UUID=052feb55-ef72-4a8a-8f6d-2d63390e76ff ro quiet
>>
>> should be:
>>
>> linux /boot/vmlinux-5.14.0-1-sparc64
>> root=UUID=1ca6137b-dcb8-4e76-b3c5-794d453723ca ro quiet
>>
>> as shown by blkid:
>>
>> # blkid /dev/sdb1
>> /dev/sdb1: UUID="1ca6137b-dcb8-4e76-b3c5-794d453723ca" BLOCK_SIZE="4096"
>> TYPE="ext3" PTTYPE="sun"
>>
>> After making that change, I'm able to boot into my backup Debian SID
>> installation.
> Might be an issue with os-prober that is part of GRUB.


I don't have the expertise to know what needs to be fixed, but there
does appear to be a bug somewhere. And for me, that bug means GRUB is
not ready for use on Sparc systems with multiple operating systems. Of
course, YMMV and you should use whatever works for you.


>
>> So my choices at this point are to return to SILO or follow through with
>> a bug report for GRUB (I would need help submitting upstream bug reports
>> for GRUB).
> Bear in mind that SILO is basically dead upstream and might have issue with
> certain filesystems used for /boot.

I don't think I care.  Old Sparc workstations are also dead, but they
continue to work, after manual intervention at every boot to account for
the bad design of having a now-dead battery embedded in the NVRAM chip. 
SILO, once installed in the boot block of the Boot ext2 partition,
should continue working.

I would prefer to use GRUB, but GRUB doesn't appear to work well with
multip

Re: Debian Installation on Ultra 30 (was Re: Updated Debian Ports installation images 2021-09-23)

2021-09-27 Thread Stan Johnson
Hi Hermann,

On 9/27/21 1:56 AM, hermann.la...@uni-heidelberg.de wrote:
> Hi Stan,
>
> On Sat, Sep 25, 2021 at 11:34:59PM -0600, Stan Johnson wrote:
>> Not knowing what the preferred size should be for a GRUB /boot
>> partition, I decided to let Guided Partioning use its defaults for
>> /dev/sda. As I recall, the partitioner warned that the number of
>> cylinders on the disk exceeded the maximum of 65536, but the creation of
>> filesystems and the rest of the installation proceeded anyway, without
>> any other noticeable errors.
>>
>> The layout for /dev/sda is as follows:
>>
>> # fdisk -l /dev/sda
>> Disk /dev/sda: 136.73 GiB, 146815737856 bytes, 286749488 sectors
>> Disk model: ST3146807LC
>> Geometry: 255 heads, 2 sectors/track, 37965 cylinders
>> Units: sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disklabel type: sun
>>
>> Device Start   End   Sectors   Size Id Type Flags
>> /dev/sda1  0   1000109   1000110 488.3M  1 Boot
>> /dev/sda21000110 284748299 283748190 135.3G 83 Linux native
>> /dev/sda3  0 286749029 286749030 136.7G  5 Whole disk
>> /dev/sda4  284748300 286749029   2000730 976.9M 82 Linux swap
> this is a sun disk partitioning scheme - not shure, if this is well supported
> with grub.

Having the above partitioning scheme seems to work ok with GRUB; the
reason I asked about the "Whole disk" partition is that some
partitioning tools (specifically fdisk, as I recall), refuse to create
additional partitions once "Whole disk" has claimed all of the sectors. 
In addition, there is an oddity (I think with parted, but I don't recall
now) where the "Whole disk" partition needed to exist, otherwise the
partitioner only recognized 1 GB. Perhaps this is related to parted
complaining during installation that the number of cylinders on the disk
exceeded the maximum of 65536 cylinders? Maybe parted is reading the
disk geometry from the third partition on the disk regardless of what's
there?

So I ended up using this partitioning scheme; note that parted complains
(but fdisk does not):

# parted /dev/sda
GNU Parted 3.4
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print   
Warning: The disk CHS geometry (562253,255,2) reported by the operating
system does not match the geometry stored on the disk label
(17849,255,63).
Ignore/Cancel? C 
Model: SEAGATE ST3146807LC (scsi)
Disk /dev/sda: 147GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
(parted) quit

# fdisk -l /dev/sda
Disk /dev/sda: 136.73 GiB, 146815737856 bytes, 286749488 sectors
Disk model: ST3146807LC
Geometry: 255 heads, 63 sectors/track, 17849 cylinders
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: sun

Device    Start   End   Sectors   Size Id Type Flags
/dev/sda1 0   1048575   1048576   512M  1 Boot
/dev/sda2   1060290  17837505  16777216 8G 83 Linux native
/dev/sda3  17848215  34625430  16777216 8G 83 Linux native
/dev/sda4  34636140  68190571  33554432    16G 83 Linux native
/dev/sda5  68195925  70293076   2097152 1G 82 Linux swap  u
/dev/sda6  70300440 286744184 216443745 103.2G 83 Linux native


>
>> -> Question 1: If I don't plan to install Solaris, is it safe to remove
>> the "Whole disk" partition (/dev/sda3)?
> AFAIR sun disklabels allows up to 8 entries - so there is no advantage in
> removing the solaris standard whole disk entry.
>
>> -> Question 2: What is the best size for /boot (/dev/sda1)? After
>> installation, the /boot partition had only about 57 MB of files.
> What's on this partition? Only Grub files or also the kernel stuff?
> AFAIR I used around 100-200MB years ago, but this was with SILO.

My experience is mostly with m68k and powerpc Macs, so please excuse my
lack of Sun Sparc knowledge. I recall from many years ago that there is
a "bootblk" on Sparc systems. I learned this after finally reading the
manual when a full restore of Solaris on a new disk failed to boot
because the bootblk was missing.

It appears that SILO and GRUB do something similar -- they appear to be
installed in the 1024-byte "boot block" of an ext2 filesystem; for more
information, see this link for ext2 filesystem structure:

http://www.science.smith.edu/~nhowe/teaching/csc262/oldlabs/ext2.html

At appears that at least SILO wants the "Boot" partition to be ext2.
These are the only files that I have in my "Boot" partition:

# ls -l
total 172
lrwxrwxrwx 1 root root 1 Oct 22  2020 boot -> .
lrwxrwxrwx 1 root root 1 Oct 22  2020 etc -> .
-rw-r--r-- 1 root root  1024 Aug 19  2012 fd.b
-rw-r--r-- 1 root root   512 Aug 19  2012 first.b
-rw-r--r-- 1 root root  1024 Aug 19 

Re: Debian Installation on Ultra 30 (was Re: Updated Debian Ports installation images 2021-09-23)

2021-09-27 Thread Dennis Clarke
On 9/27/21 03:56, hermann.la...@uni-heidelberg.de wrote:
> Hi Stan,
> 
> On Sat, Sep 25, 2021 at 11:34:59PM -0600, Stan Johnson wrote:
>> Not knowing what the preferred size should be for a GRUB /boot
>> partition, I decided to let Guided Partioning use its defaults for
>> /dev/sda. As I recall, the partitioner warned that the number of
>> cylinders on the disk exceeded the maximum of 65536, but the creation of
>> filesystems and the rest of the installation proceeded anyway, without
>> any other noticeable errors.
>>
>> The layout for /dev/sda is as follows:
>>
>> # fdisk -l /dev/sda
>> Disk /dev/sda: 136.73 GiB, 146815737856 bytes, 286749488 sectors
>> Disk model: ST3146807LC
>> Geometry: 255 heads, 2 sectors/track, 37965 cylinders
>> Units: sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disklabel type: sun
>>
>> Device Start   End   Sectors   Size Id Type Flags
>> /dev/sda1  0   1000109   1000110 488.3M  1 Boot
>> /dev/sda21000110 284748299 283748190 135.3G 83 Linux native
>> /dev/sda3  0 286749029 286749030 136.7G  5 Whole disk
>> /dev/sda4  284748300 286749029   2000730 976.9M 82 Linux swap
> 
> this is a sun disk partitioning scheme - not shure, if this is well supported
> with grub.
> 
>> -> Question 1: If I don't plan to install Solaris, is it safe to remove
>> the "Whole disk" partition (/dev/sda3)?
> 
> AFAIR sun disklabels allows up to 8 entries - so there is no advantage in
> removing the solaris standard whole disk entry.
> 

I have had no issues with GRUB and Sun type disk labels and "vtoc" data.
Also there are four bits used to count the disk "slices" but it depends
on if one is on Sparc or x86 to get all four bits. So really one may
have 16 separate entries in the disk vtoc but it won't be portable
across architectures. I don't even know if that was ever documented. I
have not even tried that for a few decades.

I am quite sure that one may have eight disk regions without issue and
they may overlap one another. That results in the old "backup" slice.


-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional







Re: Debian Installation on Ultra 30 (was Re: Updated Debian Ports installation images 2021-09-23)

2021-09-27 Thread John Paul Adrian Glaubitz
Hello!

On 9/26/21 07:34, Stan Johnson wrote:
> Not knowing what the preferred size should be for a GRUB /boot
> partition, I decided to let Guided Partioning use its defaults for
> /dev/sda. As I recall, the partitioner warned that the number of
> cylinders on the disk exceeded the maximum of 65536, but the creation of
> filesystems and the rest of the installation proceeded anyway, without
> any other noticeable errors.
> 
> The layout for /dev/sda is as follows:
> 
> # fdisk -l /dev/sda
> Disk /dev/sda: 136.73 GiB, 146815737856 bytes, 286749488 sectors
> Disk model: ST3146807LC
> Geometry: 255 heads, 2 sectors/track, 37965 cylinders
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: sun
> 
> Device Start   End   Sectors   Size Id Type Flags
> /dev/sda1  0   1000109   1000110 488.3M  1 Boot
> /dev/sda21000110 284748299 283748190 135.3G 83 Linux native
> /dev/sda3  0 286749029 286749030 136.7G  5 Whole disk
> /dev/sda4  284748300 286749029   2000730 976.9M 82 Linux swap
> 
> -> Question 1: If I don't plan to install Solaris, is it safe to remove
> the "Whole disk" partition (/dev/sda3)?

I think so.

> -> Question 2: What is the best size for /boot (/dev/sda1)? After
> installation, the /boot partition had only about 57 MB of files.

It should be at least 150 MB as you can easily run out of disk space
there when multiple kernels are installed. You can also live with 100 MB
or less, but then you always need to make sure to purge old kernels
before installing a new one.

I have often run into the situation that I ran out of disk space when
/boot was small, so we eventually decided to raise the minimum size
for automatic partitioning.

> After installation, at every boot, I see this:
> -
> GRUB Loading kernel
> Welcome to GRUB!
> 
> error: out of memory.
> error: no suitable video mode found.
> error: no video mode activated.
> -

There are some limitations with GRUB on older machines, unfortunately.

> Then the GRUB menu is displayed, and I am able to scroll through the
> options using the "v" and "^" keys (but not the up and down arrow keys).

I think that applies to all systems which basically use a (virtual) serial
console where arrow keys aren't necessarily available.

> After selecting the new Debian SID (or allowing it to be selected by
> default), the X login eventually comes up, but it seems to be off the
> screen. If I login anyway, the Xfce desktop comes up, but it seems to be
> larger than the screen. This problem, which is similar to a problem I
> had with Debian 7.8, can probably be fixed with an appropriate xorg.conf
> file.
> But UUID=052feb55-ef72-4a8a-8f6d-2d63390e76ff doesn't exist.
> 
> So this line:
> 
> linux /boot/vmlinux-5.14.0-1-sparc64
> root=UUID=052feb55-ef72-4a8a-8f6d-2d63390e76ff ro quiet
> 
> should be:
> 
> linux /boot/vmlinux-5.14.0-1-sparc64
> root=UUID=1ca6137b-dcb8-4e76-b3c5-794d453723ca ro quiet
> 
> as shown by blkid:
> 
> # blkid /dev/sdb1
> /dev/sdb1: UUID="1ca6137b-dcb8-4e76-b3c5-794d453723ca" BLOCK_SIZE="4096"
> TYPE="ext3" PTTYPE="sun"
> 
> After making that change, I'm able to boot into my backup Debian SID
> installation.

Might be an issue with os-prober that is part of GRUB.

> So my choices at this point are to return to SILO or follow through with
> a bug report for GRUB (I would need help submitting upstream bug reports
> for GRUB).

Bear in mind that SILO is basically dead upstream and might have issue with
certain filesystems used for /boot.

> -> Question 3: If I return to SILO, is there anything special about
> /dev/sda1 other than it needing to be ext2? For example, are there any
> special flags or other attributes needed for that partition? Is
> /dev/sda1 also ext2 when using GRUB or can it be ext3 or ext4?

The point with /boot being small and using an older, simpler filesystem is
because the bootloader accesses the kernel and initrd files using blocklists,
i.e. by ignoring the actual filesystem.

If you have a filesystem with a complicated on-disk format, both GRUB and
SILO might have trouble finding the blocks of kernel and initrd and loading
them.

So, for the sake of compatibility, I recommend not using anything newer than
ext3 for /boot.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: Debian Installation on Ultra 30 (was Re: Updated Debian Ports installation images 2021-09-23)

2021-09-27 Thread John Paul Adrian Glaubitz
Hello Hermann!

On 9/27/21 09:56, hermann.la...@uni-heidelberg.de wrote:
>> The layout for /dev/sda is as follows:
>>
>> # fdisk -l /dev/sda
>> Disk /dev/sda: 136.73 GiB, 146815737856 bytes, 286749488 sectors
>> Disk model: ST3146807LC
>> Geometry: 255 heads, 2 sectors/track, 37965 cylinders
>> Units: sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disklabel type: sun
>>
>> Device Start   End   Sectors   Size Id Type Flags
>> /dev/sda1  0   1000109   1000110 488.3M  1 Boot
>> /dev/sda21000110 284748299 283748190 135.3G 83 Linux native
>> /dev/sda3  0 286749029 286749030 136.7G  5 Whole disk
>> /dev/sda4  284748300 286749029   2000730 976.9M 82 Linux swap
> 
> this is a sun disk partitioning scheme - not shure, if this is well supported
> with grub.

Yes, it's supported by both debian-installer and GRUB. However, you must use a
separate /boot partition or make sure that the root partition isn't too big
as GRUB uses blocklists on systems with Sun partition tables.

>> -> Question 2: What is the best size for /boot (/dev/sda1)? After
>> installation, the /boot partition had only about 57 MB of files.
> 
> What's on this partition? Only Grub files or also the kernel stuff?
> AFAIR I used around 100-200MB years ago, but this was with SILO.

Since the kernel package installs into /boot, the partition should be at least
150-250 MB. I'm surprised that the installer would make it so small as 
partman-auto
has a minimum size for /boot configured.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: Debian Installation on Ultra 30 (was Re: Updated Debian Ports installation images 2021-09-23)

2021-09-27 Thread Hermann . Lauer
Hi Stan,

On Sat, Sep 25, 2021 at 11:34:59PM -0600, Stan Johnson wrote:
> Not knowing what the preferred size should be for a GRUB /boot
> partition, I decided to let Guided Partioning use its defaults for
> /dev/sda. As I recall, the partitioner warned that the number of
> cylinders on the disk exceeded the maximum of 65536, but the creation of
> filesystems and the rest of the installation proceeded anyway, without
> any other noticeable errors.
> 
> The layout for /dev/sda is as follows:
> 
> # fdisk -l /dev/sda
> Disk /dev/sda: 136.73 GiB, 146815737856 bytes, 286749488 sectors
> Disk model: ST3146807LC
> Geometry: 255 heads, 2 sectors/track, 37965 cylinders
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: sun
> 
> Device Start   End   Sectors   Size Id Type Flags
> /dev/sda1  0   1000109   1000110 488.3M  1 Boot
> /dev/sda21000110 284748299 283748190 135.3G 83 Linux native
> /dev/sda3  0 286749029 286749030 136.7G  5 Whole disk
> /dev/sda4  284748300 286749029   2000730 976.9M 82 Linux swap

this is a sun disk partitioning scheme - not shure, if this is well supported
with grub.

> -> Question 1: If I don't plan to install Solaris, is it safe to remove
> the "Whole disk" partition (/dev/sda3)?

AFAIR sun disklabels allows up to 8 entries - so there is no advantage in
removing the solaris standard whole disk entry.

> -> Question 2: What is the best size for /boot (/dev/sda1)? After
> installation, the /boot partition had only about 57 MB of files.

What's on this partition? Only Grub files or also the kernel stuff?
AFAIR I used around 100-200MB years ago, but this was with SILO.

> 
> Then the GRUB menu is displayed, and I am able to scroll through the
> options using the "v" and "^" keys (but not the up and down arrow keys).
> After selecting the new Debian SID (or allowing it to be selected by
> default), the X login eventually comes up, but it seems to be off the
> screen. If I login anyway, the Xfce desktop comes up, but it seems to be
> larger than the screen. This problem, which is similar to a problem I
> had with Debian 7.8, can probably be fixed with an appropriate xorg.conf
> file.

Congrats, sounds good!

Good luck,
  greetings
   Hermann