Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

E Pluribus Unix


computers / alt.os.linux.slackware / When your boot sector has been wiped

SubjectAuthor
* When your boot sector has been wipedroot
+* Re: When your boot sector has been wipedLew Pitcher
|`* Re: When your boot sector has been wipedHenrik Carlqvist
| `* Re: When your boot sector has been wipedGrant Taylor
|  +* Re: When your boot sector has been wipedLew Pitcher
|  |+- Re: When your boot sector has been wipedAlexander Grotewohl
|  |+- Re: When your boot sector has been wipedGrant Taylor
|  |`- Re: When your boot sector has been wipedMike Small
|  `- Re: When your boot sector has been wipedJoseph Rosevear
`* Re: When your boot sector has been wipedJoseph Rosevear
 `* Re: When your boot sector has been wipedHenrik Carlqvist
  +- Re: When your boot sector has been wipedRinaldiJ
  `- Re: When your boot sector has been wipedJoseph Rosevear

1
When your boot sector has been wiped

<uld700$10ish$4@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2115&group=alt.os.linux.slackware#2115

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: NoEM...@home.org (root)
Newsgroups: alt.os.linux.slackware
Subject: When your boot sector has been wiped
Date: Wed, 13 Dec 2023 21:16:49 -0000 (UTC)
Organization: Linux Advocacy
Lines: 17
Message-ID: <uld700$10ish$4@dont-email.me>
Injection-Date: Wed, 13 Dec 2023 21:16:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b6ccb06fa61dfbd19b4f40cb9ee63d23";
logging-data="1067921"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183ChlwW4qmdTCycmkLwDjMJOvXkyIppB4="
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:HF1i1H2Gs3toOMJpXsxvYa0c9A4=
Mail-Copies-To: nobody
 by: root - Wed, 13 Dec 2023 21:16 UTC

My son taught me an easy way to rebuild the boot
sector when it has been wiped (always because my error).

Using another system, such as LiveSlack, load the
drive with the damaged sector into, say, mountpoint.

cd mountpoint
mount --bind /sys sys
mount --bind /proc proc
mount --bind /dev dev
chroot mountpoint
lilo

or grub-install, whatever.

I added the three mount lines to live slack usb.

Re: When your boot sector has been wiped

<uldegi$sopg$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2117&group=alt.os.linux.slackware#2117

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Wed, 13 Dec 2023 23:25:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uldegi$sopg$2@dont-email.me>
References: <uld700$10ish$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Dec 2023 23:25:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="769c4a117f591370909017deb8ad364c";
logging-data="942896"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+W/zGD2xSrQzQ6Vs7qdXKKny/c31zvnnM="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:VGMWDrPn6OcFPGHbKz/kyHByjtc=
 by: Lew Pitcher - Wed, 13 Dec 2023 23:25 UTC

On Wed, 13 Dec 2023 21:16:49 +0000, root wrote:

> My son taught me an easy way to rebuild the boot
> sector when it has been wiped (always because my error).
>
> Using another system, such as LiveSlack, load the
> drive with the damaged sector into, say, mountpoint.
>
> cd mountpoint
> mount --bind /sys sys
> mount --bind /proc proc
> mount --bind /dev dev
> chroot mountpoint
> lilo

That seems a bit overly complicated.

I've used a similar, but trimmed down, procedure
1) live boot
2) mount your host directories under the live boot /mnt directory
3) cd /mnt && chroot .
4) lilo

You don't need the bind mounts.

--
Lew Pitcher
"In Skills We Trust"

Re: When your boot sector has been wiped

<ule8mc$19e5q$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2119&group=alt.os.linux.slackware#2119

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Henrik.C...@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Thu, 14 Dec 2023 06:51:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <ule8mc$19e5q$1@dont-email.me>
References: <uld700$10ish$4@dont-email.me> <uldegi$sopg$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Dec 2023 06:51:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="83135ec64360bcb3844377c21a2b58c1";
logging-data="1358010"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ibS5h7pDQulebCw/0ZiiK"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:dHujCR+8iv9My4IgrYbyCaKJ7vM=
 by: Henrik Carlqvist - Thu, 14 Dec 2023 06:51 UTC

On Wed, 13 Dec 2023 23:25:07 +0000, Lew Pitcher wrote:

> On Wed, 13 Dec 2023 21:16:49 +0000, root wrote:
>
>> My son taught me an easy way to rebuild the boot sector when it has
>> been wiped (always because my error).
>>
>> Using another system, such as LiveSlack, load the drive with the
>> damaged sector into, say, mountpoint.
>>
>> cd mountpoint
>> mount --bind /sys sys
>> mount --bind /proc proc
>> mount --bind /dev dev
>> chroot mountpoint
>> lilo
>
> That seems a bit overly complicated.
>
> I've used a similar, but trimmed down, procedure
> 1) live boot
> 2) mount your host directories under the live boot /mnt directory
> 3) cd /mnt && chroot .
> 4) lilo
>
> You don't need the bind mounts.

Or even easier:

1) live boot
2) below /mnt mount / partition and possibly any /boot partition
3) lilo -r /mnt

Now, looking at the manual page of lilo it seems as if the dev directory
also would be needed, but I don't have any memory of doing a bind mount
of dev in such situations. However it might have been some years since I
did this the last time.

regards Henrik

Re: When your boot sector has been wiped

<ulf495$a33$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2121&group=alt.os.linux.slackware#2121

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.198.18.1.140!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Thu, 14 Dec 2023 08:42:45 -0600
Organization: TNet Consulting
Message-ID: <ulf495$a33$1@tncsrv09.home.tnetconsulting.net>
References: <uld700$10ish$4@dont-email.me> <uldegi$sopg$2@dont-email.me>
<ule8mc$19e5q$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 14 Dec 2023 14:42:45 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="198.18.1.140";
logging-data="10339"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <ule8mc$19e5q$1@dont-email.me>
 by: Grant Taylor - Thu, 14 Dec 2023 14:42 UTC

On 12/14/23 00:51, Henrik Carlqvist wrote:
> Now, looking at the manual page of lilo it seems as if the dev directory
> also would be needed,

That's been my experience.

But it's been a long time and the need for /dev may be handled by if
Slackware is using devfs or static dev files.

If the static dev files exist in the /dev directory of the root file
system, they would become available under /mnt/dev and probably suffice
for what lilo wants.

chrooting probably also needs /proc.

I'm not sure how GRUB changes any of this.

--
Grant. . . .

Re: When your boot sector has been wiped

<ulhnfg$1u26a$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2124&group=alt.os.linux.slackware#2124

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Fri, 15 Dec 2023 14:22:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <ulhnfg$1u26a$1@dont-email.me>
References: <uld700$10ish$4@dont-email.me> <uldegi$sopg$2@dont-email.me>
<ule8mc$19e5q$1@dont-email.me>
<ulf495$a33$1@tncsrv09.home.tnetconsulting.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Dec 2023 14:22:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5516608d87c7c51c76b5593d770e78fe";
logging-data="2033866"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rbDOn0M9URu1xPYRoPyLeKBIEAmHk7zc="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:QGDTZZxZwlwXR/bIu7voMFcfUqI=
 by: Lew Pitcher - Fri, 15 Dec 2023 14:22 UTC

On Thu, 14 Dec 2023 08:42:45 -0600, Grant Taylor wrote:

> On 12/14/23 00:51, Henrik Carlqvist wrote:
>> Now, looking at the manual page of lilo it seems as if the dev directory
>> also would be needed,
>
> That's been my experience.
>
> But it's been a long time and the need for /dev may be handled by if
> Slackware is using devfs or static dev files.
>
> If the static dev files exist in the /dev directory of the root file
> system, they would become available under /mnt/dev and probably suffice
> for what lilo wants.
>
> chrooting probably also needs /proc.

You may be right, but then again....

Long ago, I settled on a system recovery process that involved booting
from a Slackware "live" install disk, and using chroot to gain root fs
access to my hard disks. I've used this on and off over the last 20
years. It never occurred to me that such a chroot()ed environment might
also require bind mounts to fix up /proc, /sys, and especially /dev.
In my experience, I've never needed to do so.

/proc and /sys are simple: for most things, you don't need them in the
chrooted environment. Or, perhaps, you only need them when something
/explicitly/ references /proc or /sys; implicit references, such as
mount() calls, work because the overall system still supplies a
referencible source, under the covers.

But /dev is a different kettle of fish. You need the files in /dev
in your chroot()ed environment in order to run lilo (or any other
boot-loader setup tool).

In my recovery process, I've never had to bind mount /dev before
chrooting. And, with your post, I started to wonder why.

I've come to the conclusion that, because of my upgrade process,
I've got a pre-populated /dev that udev then mounts it's tmpfs
over top of. When I installed my first systems, a requisite
package (in 14.1, it is devs-2.3.1-noarch-25.txz) contains both
static /dev entries, and a script to recreate those entries. My
upgrade process has carried this (hidden by udev) /dev directory
forward all these years, giving me a prepopulated /static/ /dev
directory when I chroot from the "live media" boot.

And, that solves that quandry.
:-)
--
Lew Pitcher
"In Skills We Trust"

Re: When your boot sector has been wiped

<ulil5a$2355v$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2125&group=alt.os.linux.slackware#2125

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex...@gmail.com (Alexander Grotewohl)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Fri, 15 Dec 2023 22:49:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ulil5a$2355v$1@dont-email.me>
References: <uld700$10ish$4@dont-email.me> <uldegi$sopg$2@dont-email.me>
<ule8mc$19e5q$1@dont-email.me>
<ulf495$a33$1@tncsrv09.home.tnetconsulting.net>
<ulhnfg$1u26a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Dec 2023 22:49:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5aa3c8cc3af5ab3e2cf0477bb1651710";
logging-data="2200767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/AQR1A0iKDLfv1nMRcfYmn"
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:Yd89VP3UZ0aLIfChFyZV6kawa4w=
 by: Alexander Grotewohl - Fri, 15 Dec 2023 22:49 UTC

On Fri, 15 Dec 2023 14:22:40 -0000 (UTC), Lew Pitcher wrote:

> I've come to the conclusion that, because of my upgrade process,
> I've got a pre-populated /dev that udev then mounts it's tmpfs over top
> of. When I installed my first systems, a requisite package (in 14.1, it
> is devs-2.3.1-noarch-25.txz) contains both static /dev entries, and a
> script to recreate those entries. My upgrade process has carried this
> (hidden by udev) /dev directory forward all these years, giving me a
> prepopulated /static/ /dev directory when I chroot from the "live media"
> boot.

https://www.baeldung.com/linux/bind-mounts

under heading 4.1

i did this on my slackware 15 machine (i think it was a slackware 15 beta
initially not a 14.2)

mount --bind / /mnt/hd
cd /mnt/hd/dev
ls

and there are 2607 lines output from ls -al !! :)

Re: When your boot sector has been wiped

<ulkuk0$qcr$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2126&group=alt.os.linux.slackware#2126

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.198.18.1.140!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Sat, 16 Dec 2023 13:42:56 -0600
Organization: TNet Consulting
Message-ID: <ulkuk0$qcr$1@tncsrv09.home.tnetconsulting.net>
References: <uld700$10ish$4@dont-email.me> <uldegi$sopg$2@dont-email.me>
<ule8mc$19e5q$1@dont-email.me>
<ulf495$a33$1@tncsrv09.home.tnetconsulting.net>
<ulhnfg$1u26a$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 16 Dec 2023 19:42:56 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="198.18.1.140";
logging-data="27035"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <ulhnfg$1u26a$1@dont-email.me>
 by: Grant Taylor - Sat, 16 Dec 2023 19:42 UTC

On 12/15/23 08:22, Lew Pitcher wrote:
> Long ago, I settled on a system recovery process that involved booting
> from a Slackware "live" install disk, and using chroot to gain root fs
> access to my hard disks.

N.B. chroot isn't required to access the files on the system being
rescued from the rescue media.

Simply mounting the file system somewhere and then `cd`ing to it is
sufficient to access the files.

`chroot`ing gives a different type of access that seems much more like
the system being recovered normally has. At least from a file path
perspective.

> I've used this on and off over the last 20 years. It never occurred to
> me that such a chroot()ed environment might also require bind mounts
> to fix up /proc, /sys, and especially /dev. In my experience, I've
> never needed to do so.

It's not that chroot needs the bind mount. It is that things used
inside the chroot (and maybe the chroot process itself) need access to
specific files inside of /dev in the chroot.

Those files can easily be provided by static files or even another devfs
(like) mount.

It's just that it's often viewed as easiest to inherit the files from
the real /dev inside of the chroot via a bind mount.

> /proc and /sys are simple: for most things, you don't need them in the
> chrooted environment. Or, perhaps, you only need them when something
> /explicitly/ references /proc or /sys; implicit references, such as
> mount() calls, work because the overall system still supplies a
> referencible source, under the covers.

Yep.

I've gotten away with `chroot`ing many times without anything in /proc
or /sys in the chroot. It is highly dependent on what you are wanting
to do inside of the chroot.

> But /dev is a different kettle of fish. You need the files in /dev
> in your chroot()ed environment in order to run lilo (or any other
> boot-loader setup tool).

Yep. You need the contents. How the contents get there / are created
doesn't matter as long as things can find needed files at the dev<file>
name that they are expecting.

I'm I-remember-using-mknod-in-dev-to-get-new-hardware-to-work old.

> In my recovery process, I've never had to bind mount /dev before
> chrooting. And, with your post, I started to wonder why.

For a very long time Slackware had (enough) static files in dev to bring
a system up to single user mode. For much of it's history it was all
static files in dev. I don't know Slackware's current state about files
in dev.

> I've come to the conclusion that, because of my upgrade process,
> I've got a pre-populated /dev that udev then mounts it's tmpfs
> over top of.

That seems reasonable to me.

> When I installed my first systems, a requisite package (in 14.1, it
> is devs-2.3.1-noarch-25.txz) contains both static /dev entries, and a
> script to recreate those entries. My upgrade process has carried this
> (hidden by udev) /dev directory forward all these years, giving me
> a prepopulated /static/ /dev directory when I chroot from the "live
> media" boot.

Yep.

> And, that solves that quandry.
> :-)

:-)

--
Grant. . . .

Re: When your boot sector has been wiped

<jpkil4v2c20.fsf@panix5.panix.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2128&group=alt.os.linux.slackware#2128

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix5-v6.panix.com!not-for-mail
From: sma...@panix.com (Mike Small)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Mon, 18 Dec 2023 20:52:55 -0500
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <jpkil4v2c20.fsf@panix5.panix.com>
References: <uld700$10ish$4@dont-email.me> <uldegi$sopg$2@dont-email.me>
<ule8mc$19e5q$1@dont-email.me>
<ulf495$a33$1@tncsrv09.home.tnetconsulting.net>
<ulhnfg$1u26a$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader2.panix.com; posting-host="panix5-v6.panix.com:2001:470:30::a654:105";
logging-data="4676"; mail-complaints-to="abuse@panix.com"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)
Cancel-Lock: sha1:Wpq9zu42KjSrJDQg6WvqGNt9LOg=
 by: Mike Small - Tue, 19 Dec 2023 01:52 UTC

Lew Pitcher <lew.pitcher@digitalfreehold.ca> writes:
> I've come to the conclusion that, because of my upgrade process,
> I've got a pre-populated /dev that udev then mounts it's tmpfs

udev no longer mounts any dev or tmp file systems, unless I'm mistaken
(quite possible). I think it has been demoted to only adjusting
permissions, renaming network interface names, and whatever else its
udev rules can do. Now there is devtmpfs, and it's only the kernel
that's involved in mounting a tmpfs and populating it with device nodes,
that done early in boot to avoid a "cold plug" or chicken and egg
between what userland udevd needs and provides:

https://lwn.net/Articles/330985/
https://lwn.net/Articles/331818/

Re: When your boot sector has been wiped

<um2l4d$179ol$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2129&group=alt.os.linux.slackware#2129

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mai...@JoesLife.org (Joseph Rosevear)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Fri, 22 Dec 2023 00:26:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 111
Message-ID: <um2l4d$179ol$1@dont-email.me>
References: <uld700$10ish$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Dec 2023 00:26:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="31ffa92fc7761122ad392333e8bac9af";
logging-data="1287957"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/omfW6Rov/4mVOSEBMgIZ60Z04iKEYZpk="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:5O84QBnDTsrqsRLEag+JZnfw3oU=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAB3RJTUUH5wISBRox
oH115AAA ABV0RVh0U29mdHdhcmUAWFBhaW50ID
MuMS40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mV/
_gasyKufijg+uRsnSeZkZK//jppieaacrUp5RTIVpDlhYe+kvfXwA0XQi
wFRqkt
yJOtOaFUs7TYtXY9o5W6mksZ6k4dFSstBg4/uyUt1TRSr1mMB7XebFoJJVRe5Py
+So K406qYuYythbq63Udr7xWngwhh62W5Ls9RJ
qB/N+l0XJUnYwWhRQZFmcqHk
_nWml0NjY2J42c PNweJ/N3RqPKNKUn4dwYtRpZp
ym7Z+GuaQ5vjWpJ59qbkzbO/
_y+GfZG1g8r7UtSxzOSlwUEq 8A4FJvXUqx+dG3X
eeu299mTeA1bNOJp3nnd6q1K
_VSm8h6B00Gke5JJl6qvbexqhxcGMsK+H8 mkfSP
N+yYGuvKSv81BuTrh5clCfm+
_KPy8cqNUS9oT39yeJCmqZ+Do2RwKNyf78Fob+fRCVHz
7+M87HeyXrLSGh1ODzg
_9PEnebP5XJj7wszHYaaxLrLPCIt77N3m1EtQ2Jfv3muPPafved3L5
5yJ5fKrYv Yz4P1Ypm+8jxpaGAAAAAElFTkSuQmCC
 by: Joseph Rosevear - Fri, 22 Dec 2023 00:26 UTC

On Wed, 13 Dec 2023 21:16:49 -0000 (UTC), root wrote:

> or grub-install, whatever.

Since I almost always use Grub, I would likely try this:

grub-install --recheck --boot-directory <path to root> <boot device>

Here's a scenario:

-You have a Slackware installation which no longer boots. You believe
this to be due to a damaged boot sector.

-You boot a different Slackware installation in such a way that you
can "see" the device of the broken Slackware. I would do this using
Slackware on a bootable flashdrive, but I imagine this could be done in
other ways.

-You find your broken Slackware installation at /dev/sda1, and you
mount it at /mnt/to.

-Wipe the boot sector. This is a precaution and may not be needed:

dd if=/dev/zero of=/dev/sda bs=512 count=1

-This will install Grub to the MBR of /dev/sda (not /dev/sda1 !):

grub-install --recheck --boot-directory /mnt/to /dev/sda

Here is some discussion:

-I'm using "--boot-directory /mnt/to" instead of
"--boot-directory=/mnt/to". I think the syntax you will find in
documentation is the latter, but it seems I have been successful in using
a different syntax.

-I think you can actually use "/dev/sda1" for <boot device>, but I'm
not sure. I don't ever do that, and I think there is a reason. I think
if you did, then your BIOS wouldn't see the boot instructions when it
boots your system. Perhaps the use of /dev/sda1 would be useful for
"boot chaining".

-For this to work in a "turn key" fashion you will need a Grub
configuration file. Grub exects to find it in the directory named by
"--boot-directory" at "boot/grub/grub.cfg". For example, in the above
scenario that would be here:

/mnt/to/boot/grub/grub.cfg

I think you can still boot without a grub.cfg file, but you will need to
know what to type at the Grub command line. That is a very interesting
and useful subject, but I will not address it here.

Here is a sample grub.cfg file with one stanza (0):

default='0'
timeout='3'
menuentry 'Slackware Linux on prodesk'{
ROOT=220506aa1Drive

search --label --set root $ROOT
echo 'Loading Linux kernel ...'
linux /boot/vmlinuz-generic ro root=LABEL=$ROOT \
rootfs=ext4 quiet
echo 'Loading initial ramdisk ...'
echo 'Starting Slackware Linux ...'
initrd /boot/initrd.gz
}

This assumes the root that you are booting has an ext4 filesystem and a
LABEL of "220506aa1Drive". And it assumes you have a suitable initrd.gz
at (per the above scenario) /mnt/to/boot/initrd.gz. Of course the use of
an initrd.gz is not always needed--this is the subject of another
discussion. If yours is not needed, just omit that line from the
corresponding stanza.

Also I recommend, although it isn't always needed, that your fstab (at /
mnt/to/etc/fstab in the above scenario) refers to the devices to mount
and use as swap by LABEL= names like this:

LABEL=220506aa1Drive / ext4 defaults,noatime,errors=panic 0 1
LABEL=220506aa2Swap swap swap defaults,noatime 0 0

Per this example, you will need to give your swap partition a label of
"220506aa2Swap", and I already mentioned above that you need to give the
root partition a LABEL also. The other details of your fstab are, of
course, up to you!

Note that the LABEL syntax is not always needed in either of the fstab
file nor the grub stanza, but I will not discuss the exceptions here.
What I have described is not always the least work to setup, but for me
it is the most robust and understandable way.

If you're going to use Grub you will beneifit from knowing:

-The above scenario defines a 3 second timeout. That means when
booting you have 3 seconds to press a key to interupt the booting.

-Once interupted you can:

-Use the up and down arrows to choose other stanzas, if any.

-Press "e" to make temporary edits to the booting instructions or
"c" to get a Grub command line. The "escape" key returns you to the Grub
menu.

-Press the "enter" key to run the selected stanza.

I hope this helps!

-Joe

Re: When your boot sector has been wiped

<um39ec$179ol$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2130&group=alt.os.linux.slackware#2130

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mai...@JoesLife.org (Joseph Rosevear)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Fri, 22 Dec 2023 06:13:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <um39ec$179ol$2@dont-email.me>
References: <uld700$10ish$4@dont-email.me> <uldegi$sopg$2@dont-email.me>
<ule8mc$19e5q$1@dont-email.me>
<ulf495$a33$1@tncsrv09.home.tnetconsulting.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Dec 2023 06:13:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="31ffa92fc7761122ad392333e8bac9af";
logging-data="1287957"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3WZ7Au/RFK6JYZyTcbjQBnAVvWEDpJL4="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:dRdL83MXv47qcdAHaBpo/uE8Sic=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAB3RJTUUH5wISBRox
oH115AAA ABV0RVh0U29mdHdhcmUAWFBhaW50ID
MuMS40FRQqnAAAB39JREFUWI
_Vl2NuOG1d2BuBv7zrw oFZ3W5IlWbYnA2SAzOQi
mOQd8nS5yUsFCAIMnIkxQRLb
_k8T2WHLr1N1kkyxW1d65qF3sHoS8 YRWLa6/Dv/
71L4Z/+EeCLArlnQWVpNVgIV
_iICJKkM+gdHYwGWZYNBgkZSZKM5V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cqHk
_nWml0NjY2J42c PNweJ/N3RqPKNKUn4dwYtRpZp
ym7Z+GuaQ5vjWpJ59qbkzbO/
_y+GfZG1g8r7UtSxzOSlwUEq 8A4FJvXUqx+dG3X
eeu299mTeA1bNOJp3nnd6q1K
_VSm8h6B00Gke5JJl6qvbexqhxcGMsK+H8 mkfSP
N+yYGuvKSv81BuTrh5clCfm+
_KPy8cqNUS9oT39yeJCmqZ+Do2RwKNyf78Fob+fRCVHz
7+M87HeyXrLSGh1ODzg
_9PEnebP5XJj7wszHYaaxLrLPCIt77N3m1EtQ2Jfv3muPPafved3L5
5yJ5fKrYv Yz4P1Ypm+8jxpaGAAAAAElFTkSuQmCC
 by: Joseph Rosevear - Fri, 22 Dec 2023 06:13 UTC

On Thu, 14 Dec 2023 08:42:45 -0600, Grant Taylor wrote:

> I'm not sure how GRUB changes any of this.

Hello,

I guess I'm late to the party.

I posted a message--as a reply to the O.P.--explaining how I would use
Grub.

-Joe

Re: When your boot sector has been wiped

<um3a30$1fcfk$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2131&group=alt.os.linux.slackware#2131

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Henrik.C...@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Fri, 22 Dec 2023 06:24:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <um3a30$1fcfk$1@dont-email.me>
References: <uld700$10ish$4@dont-email.me> <um2l4d$179ol$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Dec 2023 06:24:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fda2f47711e1889a3d785fa68f6ed868";
logging-data="1552884"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BUGJBaHtXiYt4qAbmxRsV"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:/jkBpFF3cW9YotKmwP/3kxwFOzk=
 by: Henrik Carlqvist - Fri, 22 Dec 2023 06:24 UTC

On Fri, 22 Dec 2023 00:26:54 +0000, Joseph Rosevear wrote:
> dd if=/dev/zero of=/dev/sda bs=512 count=1

Be careful with that one, at least with good old MBR partition style
those first 512 bytes will not only contain the MBR code to boot but also
the partition table. However, with a GPT partition table the first 512
bytes will only contain boot code.

regards Henrik

Re: When your boot sector has been wiped

<e2a7181d-5b7b-47d9-967c-f0e9c100b24c@invalid.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2132&group=alt.os.linux.slackware#2132

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rinal...@nunya.com (RinaldiJ)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Fri, 22 Dec 2023 13:08:31 -0600
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <e2a7181d-5b7b-47d9-967c-f0e9c100b24c@invalid.com>
References: <uld700$10ish$4@dont-email.me> <um2l4d$179ol$1@dont-email.me>
<um3a30$1fcfk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="d1f64dfb20fa6520ae655f82c2e66d00";
logging-data="1775963"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183/XdP5kbXUuYGljN0lVk2XMUIfQoHVk4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mQ1UjQGcyAna3lzS/NeQYdi8BVo=
In-Reply-To: <um3a30$1fcfk$1@dont-email.me>
Content-Language: en-US
 by: RinaldiJ - Fri, 22 Dec 2023 19:08 UTC

On 12/22/23 00:24, Henrik Carlqvist wrote:
> On Fri, 22 Dec 2023 00:26:54 +0000, Joseph Rosevear wrote:
>> dd if=/dev/zero of=/dev/sda bs=512 count=1
>
> Be careful with that one, at least with good old MBR partition style
> those first 512 bytes will not only contain the MBR code to boot but also
> the partition table. However, with a GPT partition table the first 512
> bytes will only contain boot code.

I thought that:

dd if=/boot/boot.0800 of=/dev/sda bs=512 count=1

was supposed to recover a borked boot sector.

Rinaldi

Re: When your boot sector has been wiped

<um5gs2$1p56j$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2133&group=alt.os.linux.slackware#2133

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mai...@JoesLife.org (Joseph Rosevear)
Newsgroups: alt.os.linux.slackware
Subject: Re: When your boot sector has been wiped
Date: Sat, 23 Dec 2023 02:32:35 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <um5gs2$1p56j$1@dont-email.me>
References: <uld700$10ish$4@dont-email.me> <um2l4d$179ol$1@dont-email.me>
<um3a30$1fcfk$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Dec 2023 02:32:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6e62c7d2596ce39c08f86c867a3c207b";
logging-data="1873107"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195n6PZJa5u2g9BY79Nr1o9zpqmZRM/8Tc="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:hAzbyCNCZiLJyDg2+Dd8PbZGJSk=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAB3RJTUUH5wISBRox
oH115AAA ABV0RVh0U29mdHdh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Mv96oS3
XmOYlO2dF4KslmV/
_gasyKufijg+uRsnSeZkZK//jppieaacrUp5RTIVpDlhYe+kvfXwA0XQi
wFRqkt
yJOtOaFUs7TYtXY9o5W6mksZ6k4dFSstBg4/uyUt1TRSr1mMB7XebFoJJVRe5Py
+So K406qYuYythbq63Udr7xWngwhh62W5Ls9RJ
qB/N+l0XJUnYwWhRQZFmcqHk
_nWml0NjY2J42c PNweJ/N3RqPKNKUn4dwYtRpZp
ym7Z+GuaQ5vjWpJ59qbkzbO/
_y+GfZG1g8r7UtSxzOSlwUEq 8A4FJvXUqx+dG3X
eeu299mTeA1bNOJp3nnd6q1K
_VSm8h6B00Gke5JJl6qvbexqhxcGMsK+H8 mkfSP
N+yYGuvKSv81BuTrh5clCfm+
_KPy8cqNUS9oT39yeJCmqZ+Do2RwKNyf78Fob+fRCVHz
7+M87HeyXrLSGh1ODzg
_9PEnebP5XJj7wszHYaaxLrLPCIt77N3m1EtQ2Jfv3muPPafved3L5
5yJ5fKrYv Yz4P1Ypm+8jxpaGAAAAAElFTkSuQmCC
 by: Joseph Rosevear - Sat, 23 Dec 2023 02:32 UTC

On Fri, 22 Dec 2023 06:24:32 -0000 (UTC), Henrik Carlqvist wrote:

> On Fri, 22 Dec 2023 00:26:54 +0000, Joseph Rosevear wrote:
>> dd if=/dev/zero of=/dev/sda bs=512 count=1
>
> Be careful with that one, at least with good old MBR partition style
> those first 512 bytes will not only contain the MBR code to boot but
> also the partition table. However, with a GPT partition table the first
> 512 bytes will only contain boot code.
>
> regards Henrik

Thank you!

I apologize for posting something that could cause someone to lose data.

On reviewing my notes I did, in fact, find words that warn of the above
deleting the partition table. Generally, I use the above when preparing
a new drive for a cloned installation of Slackware. I don't remember the
sequence of steps, but it seems I would follow the above with the making
of partitions. Now I'm curious regarding the details of my use of the
above. I'll have to examine my scripts to see what they do.

I also found in my notes a reference to having to remake my partions
after doing the above. I knew how to remake them exactly as before, and
no data was lost.

The reason I suggested the optional use of the above is that, for reasons
I don't understand, the above wipe has sometimes been needed to make a
device bootable. The grub-install command alone wasn't always
sufficient. Generally, I think this happened when I was reusing a drive
that had previously been used in some capacity, perhaps as a bootable
drive--I don't remember.

I would like to understand this better.

I did find, just now, in my notes that the partition information begins
*after* the first 446 bytes which is for the bootstrap code. And I have
in the past used a wipe like the above, but using "bs=446". It seems
that that is what I *should* have written in my post. So I'll give it
here:

dd if=/dev/zero of=/dev/sda bs=446 count=1

Understand that I provided the wiping step as precaution that "may not be
needed".

Please, any who tries this, be careful and backup your MBR first.

Also--thanks for the information, I didn't know that (as you wrote) a GPT
partition has only boot code in the first 512 bytes. So it seems that my
original instructions are OK in that case. (I didn't expect this to be
so complex!)

-Joe

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor