* boot block
@ 2002-05-31 19:34 Marcel Pol
2002-06-01 11:02 ` Måns Rullgård
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Pol @ 2002-05-31 19:34 UTC (permalink / raw)
Hello,
I am using Mandrake for Alpha on a NoName Alpha machine.
It's a 166 Mhz machine.
Currently I boot with srm and aboot from a floppy, to a / filesystem at
/dev/sda2.
I also have 20 Mb at the start of the disk. Currently I have there a ext2
filesystem with a kernel and a aboot.conf.
It uses a Dos disklabel.
I'm trying to set it up to boot from scsi disk, but I got lost somewhere.
At boot I get this error for my scsi disk:
Block 0 not valid boot block
I am not sure how to give it a valid bootblock.
Would using a BSD disklabel solve this problem?
It involves some work, so I'd like to be sure if this error is related.
Here are a few things I've tried so far:
$/sbin/swriteboot /dev/sda /boot/bootlx
Existing disk label is corrupt
Couldn't get a valid disk label, exiting
$/sbin/e2writeboot /dev/sda /boot/bootlx
ext2 bad magic 0x0
Oh, and this last command, is that the right way to use it?
Or should I specify another file instead of /boot/bootlx
Any help appreciated.
--
Marcel Pol
Linux 2.4.18-6mdksmp, up 5 days, 21:21
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: boot block
2002-05-31 19:34 boot block Marcel Pol
@ 2002-06-01 11:02 ` Måns Rullgård
2002-06-01 16:49 ` Marcel Pol
0 siblings, 1 reply; 4+ messages in thread
From: Måns Rullgård @ 2002-06-01 11:02 UTC (permalink / raw)
Marcel Pol <devnull@chaosmongers.org> writes:
> Hello,
> I am using Mandrake for Alpha on a NoName Alpha machine.
> It's a 166 Mhz machine.
>
> Currently I boot with srm and aboot from a floppy, to a / filesystem at
> /dev/sda2.
> I also have 20 Mb at the start of the disk. Currently I have there a ext2
> filesystem with a kernel and a aboot.conf.
> It uses a Dos disklabel.
You can only boot from osf disklabel disks. You might be able to
convert it without destroying anything.
--
M�ns Rullg�rd
mru@users.sf.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: boot block
2002-06-01 11:02 ` Måns Rullgård
@ 2002-06-01 16:49 ` Marcel Pol
2002-06-01 18:27 ` Michal Jaegermann
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Pol @ 2002-06-01 16:49 UTC (permalink / raw)
Mᅵns Rullgᅵrd wrote:
> Marcel Pol <devnull@chaosmongers.org> writes:
>
>> Hello,
>> I am using Mandrake for Alpha on a NoName Alpha machine.
>> It's a 166 Mhz machine.
>>
>> Currently I boot with srm and aboot from a floppy, to a / filesystem at
>> /dev/sda2.
>> I also have 20 Mb at the start of the disk. Currently I have there a ext2
>> filesystem with a kernel and a aboot.conf.
>> It uses a Dos disklabel.
>
> You can only boot from osf disklabel disks. You might be able to
> convert it without destroying anything.
Ok, thanks.
I'll see what I can do then.
I will need to backup for sure then.
--
Marcel Pol
Linux 2.4.18-6mdksmp, up 6 days, 18:21
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: boot block
2002-06-01 16:49 ` Marcel Pol
@ 2002-06-01 18:27 ` Michal Jaegermann
0 siblings, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 2002-06-01 18:27 UTC (permalink / raw)
Marcel Pol <devnull@chaosmongers.org> wrote:
> M�ns Rullg�rd wrote:
>> Marcel Pol <devnull@chaosmongers.org> writes:
>>
>>> Currently I boot with srm and aboot from a floppy, to a / filesystem at
>>> /dev/sda2.
>>> I also have 20 Mb at the start of the disk.
Do you mean a free space? 'aboot' takes around 80 K of that space
plus a bit of an "overhead" (layout, a partition table itself) and a
general advice is "leave the first cylinder free" which leaves you
with a lot of a "safety zone". More precisely you can include this
space in a partition of an "unused" type (BSD label partition allows
for overlapping partitions) which is harmless but ignored by Linux
and may be needed if you need partitioning backward compatibility
for some reasons.
>>> It uses a Dos disklabel.
SRM firmware will not boot from that. OTOH you do not need to boot from
a disk, or any other device, with your root file system on it (see your
experience above :-) and as far as Linux is concerned you can freely mix
disks with different supported partitioning schemes on one system.
>> You can only boot from osf disklabel disks. You might be able to
>> convert it without destroying anything.
> Ok, thanks.
> I'll see what I can do then.
You have to write a new partioning table using old data precise to a
sector level. 'fdisk' will allow you to do that and you can try a
number of times if something went wrong. Changing partition table does
NOT affect your data in any way but keep a hard copy of your original
partition table and also save a dump of it done with 'sfdisk' ('sfdisk'
unfortunately understands only FAT-type partition tables).
It is better not to reboot until you are satisfied but even after
a reboot it is possbile to recover from a bad partition table if you
kept data above. It can be a PITA though. Doable, not even very
hard, but definitely not for anxious types. :-)
Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-06-01 18:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-31 19:34 boot block Marcel Pol
2002-06-01 11:02 ` Måns Rullgård
2002-06-01 16:49 ` Marcel Pol
2002-06-01 18:27 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox