Re: Can't run quik...


doctor@fruitbat.org
Sat, 4 Sep 1999 13:34:06 -0700 (PDT)


Jordan, Michael said ...
>
> I installed via ftp to an internal Seagate drive using Scott R. Every's
> installer.1999.coff (from 8/17, I think) and then booted from a floppy with
> vmlinux.coff (8/23) using /dev/sda1 as my root partition.
>
> I copied the vmlinux and System.map files to my /boot directory along with a
> copy of /etc/quik.conf. I edited /boot/quik.conf to the following:
>
> # My quik.conf
> timeout = 50
> image = /vmlinux
> label = linux
> root = /dev/sda1
>
> Here's what I get when I try to run quik:
>
> /sbin/quik -v -C /boot/quik.conf
> Second-stage loader is on /dev/sda8
> Config file is on partition 8
> Fatal error: /dev/sda is not a mac-formatted disk
>
> I have gone back and formatted the drive in a Mac and after doing so and
> installing LinuxPPC again, I could not boot even from a floppy with vmlinux on
> it.
>
> Currently, my partitions are configured like this:
>
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/sda1 1388711 28996 1287957 2% /
> /dev/sda8 40182 2007 36100 5% /boot
> /dev/sda7 72360 13 68610 0% /extra
> /dev/sda5 398107 277616 99931 74% /usr
>
> I am at my limit for troubleshooting this and I welcome any advice I can get.

Hmm... I think the problem might be that sda1 is really the *partition
map* and you've effectively destroyed by using it as your root partition.
I believe that the first usable partition should be sda2 (if you've
allocated the partitions sequentially). Here's my layout for comparison:

[[root@netapple /]# pdisk /dev/sda
Edit /dev/sda -
Command (? for help): p

Partition map (with 512 byte blocks) on '/dev/sda'
 #: type name length base ( size )
 1: Apple_partition_map Apple 63 @ 1
 2: Apple_UNIX_SVR2 boot 86016 @ 64 ( 42.0M)
 3: Apple_UNIX_SVR2 root 212992 @ 86080 (104.0M)
 4: Apple_UNIX_SVR2 usr 4360192 @ 299072 ( 2.1G)
 5: Apple_UNIX_SVR2 var 1101824 @ 4659264 (538.0M)
 6: Apple_UNIX_SVR2 swap 262144 @ 5761088 (128.0M)
 7: Apple_UNIX_SVR2 tmp 1101824 @ 6023232 (538.0M)
 8: Apple_UNIX_SVR2 home 1260944 @ 7125056 (615.7M)

Device block size=512, Number of Blocks=8386000 (4.0G)
DeviceType=0x0, DeviceId=0x0

Unlike the fine instructions on the web site, I installed from CD-ROM
instead of copying the CD-ROM image to the harddisk. The CD-ROM on the
ANS is a 4x and the install goes very quickly. Also, when I booted the
installer (before it for to the section asking about disk partitons), I
switched to console #2 and ran 'pdisk -i' to partition the HD instead of
doing it on a Mac (I didn't have a Mac available). Give it the device
name (eg: /dev/sda) and choose the 'e' (edit) option and specify the
blocks sizes for the disk. Physical block size will be 512 bytes,
logical block size will be 512, and max number of blocks should be given
in the prompt. Then initialize a new map and create your partitions.
Don't specify the 'boot' partition to be mounted for the installation.

If pdisk complains about not being able to write the partition table or
other strange errors, then the disk partition map is messed up and you
need to zero out the first 64 blocks on the disk. This can be done with
the command:

# dd if=/dev/zero of=/dev/sda bs=512 count=64

Then run 'pdisk -i' again. At this point in should say the partition map
isn't recognizable. Simply initialize a new map, partition it as you
like, and write it out. Then just to make sure it's OK, run 'pdisk /dev/sda'
again. This time it shouldn't complain about the map and you should be
able to display your partition map.

Here's a section of my /boot/quik.conf and a directory listing:

# The default is the first bootable (probably where this file is).
partition=2
timeout=300
read-only
#
default=linux
# boot image for 2.2.11 kernel
image=/vmlinux-2.2.11
        root=/dev/sda3
        append="ncr53c8xx=disc:n,ultra:n,sync:255,tags:0,verb:2"
        label=linux2211
        alias=linux
image=/vmlinux-2.2.11
        root=/dev/sda3
        append="ncr53c8xx=disc:n,ultra:n,sync:255,tags:0,verb:2"
        label=single2211
        alias=single

[[root@netapple /]# ls -al /boot
total 16840
drwxr-xr-x 3 root root 1024 Sep 1 13:22 .
drwxr-xr-x 22 root root 1024 Sep 3 14:30 ..
-rw-r--r-- 1 root root 328666 Aug 24 22:07 System.map-2.2.11
-rw-r--r-- 1 root root 325578 Aug 24 21:40 System.map-2.2.11.old
-rw-r--r-- 1 root root 9148 Aug 24 22:08 config-2.2.11
-rw-r--r-- 1 root root 9170 Aug 24 21:40 config-2.2.11.old
-r--r--r-- 1 root root 1024 Apr 18 20:18 first.b
drwxr-xr-x 2 root root 12288 Aug 27 1956 lost+found
-rw-r--r-- 1 root root 1024 Aug 6 10:12 old.b
-rw-r--r-- 1 root root 1939 Aug 23 14:48 quik.conf
-r--r--r-- 1 root root 39424 Apr 18 20:18 second.b
-rwxr-xr-x 1 root root 2113023 Aug 24 22:07 vmlinux-2.2.11
-rwxr-xr-x 1 root root 2080602 Aug 24 21:40 vmlinux-2.2.11.old

In my example, /boot is partition #2 (/dev/sda2), while my root partition
is partition #3 (/dev/sda3).

Hope this helps. Good luck!

> --
> Michael

-- 
Peter A. Castro (doctor@fruitbat.org) or (pcastro@us.oracle.com)



This archive was generated by hypermail 2.0b3 on Sat Sep 04 1999 - 20:36:17 GMT