* Linux Parted question (fwd)
@ Karen Lewellen
` Joseph C. Lininger
0 siblings, 1 reply; 5+ messages in thread
From: Karen Lewellen @ UTC (permalink / raw)
To: blind Linux discussion list; +Cc: Speakup is a screen review system for Linux.
>From another list, a person with a problem? I can share any ideas with them
hem.
Karen
---------- Forwarded message ----------
Date: Tue, 12 Jan 2010 09:40:44 -0600
From: "Ervin, Glenn" <glenn.ervin@NEBRASKA.GOV>
To: BLIND-L@LISTSERV.UARK.EDU
Subject: Linux Parted question
Hi All,
I know this is not the best list for this question, but I am not subscribed to a Linux group from this computer.
Anyway, I need to rewrite the MBR of a computer that is running windows, and rather than making a boot CD for this using DOS, I have a Linux Ubuntu live CD, and I was wondering if one of two options will help.
* If I install Ubuntu, as a dual-boot system, and there is a virus on the boot partition, will Grub rewrite the entire MBR partition thus removing the virus?
Or,
Does the partition editor in Linux called Parted have the equivalent to the dos command:
fDisk /MBR
?
I plan on reinstalling windows, but if there is a virus on the MBR, it will just reappear, and although there are other options, this one would be the best for now.
Thanks.
Glenn
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Linux Parted question (fwd)
Linux Parted question (fwd) Karen Lewellen
@ ` Joseph C. Lininger
` Glenn Ervin
0 siblings, 1 reply; 5+ messages in thread
From: Joseph C. Lininger @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Karen,
What I would do is the following. First, I would 0 the mbr of the drive
in question. Like this.
dd if=/dev/zero of=/dev/<disk name> bs=512 count=1
Then use the mklabel command in the parted program to initialize the
mbr. This will cause all data on a drive to be lost, so make sure to do
backups if preserving the data is necessary. If you copy the partition
table using print and recreate it exactly you might be able to keep the
data from being lost, but it's an advanced thing and I won't go into
detail on exactly how to do it in this post. If you want that
information, let me know.
- --
Yes means no and no means yes. Delete all files [Y]?
Joseph C. Lininger, <jbahm@pcdesk.net>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
iQEbBAEBCAAGBQJLTSzYAAoJEMh8jNraUiwqftoH9ibIRC+TN7NH+K6kM2AobAIQ
FWCWTVHA1vGxm9Snlulpk5IeWSa9+rNGJonahKaAXjtR6HSBP6V9otV292i6sJLu
BEO9ks3yMCGtD7h5nKmtf/xvksM/5YMMKDFtbrSGkoYosvgF96J4nTQZizyYhDbI
+MtQ1HouaQHE23nn5ja8bXp5BktfdpksieX1GQpFn88lVwd5D4bNR+MSvKycWH7c
uIaCt+G8qYLHubPN7tPecnbejl6ODz5bqD7T5/EoSER5sHDZBF+LFkYKYhKXtVFa
Bc2Wz/gIDgC0K8E1GNvTlTUoT9wRqS+zga4EbVOlL/oRDCJHB1E1q/tgPpdcBw==
=lnZ0
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Linux Parted question (fwd)
` Joseph C. Lininger
@ ` Glenn Ervin
` Georgina Joyce
` Joseph C. Lininger
0 siblings, 2 replies; 5+ messages in thread
From: Glenn Ervin @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Hi Joseph,
There are two other partitions which I would prefer to not lose the data
from. I have not yet ran Ubuntu on this system, but when I do, I am sure
that it is SDA2 & SDA3 that I don't wish to damage. SDA1 may be erased, as
it is likely the infected partition, but one of the other partitions is
hidden, and it may be SDA3. But I don't know how this will effect the
partitions other than SDA1.
Thanks.
Glenn
----- Original Message -----
From: "Joseph C. Lininger" <jbahm@pcdesk.net>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Sent: Tuesday, January 12, 2010 8:15 PM
Subject: Re: Linux Parted question (fwd)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Karen,
What I would do is the following. First, I would 0 the mbr of the drive
in question. Like this.
dd if=/dev/zero of=/dev/<disk name> bs=512 count=1
Then use the mklabel command in the parted program to initialize the
mbr. This will cause all data on a drive to be lost, so make sure to do
backups if preserving the data is necessary. If you copy the partition
table using print and recreate it exactly you might be able to keep the
data from being lost, but it's an advanced thing and I won't go into
detail on exactly how to do it in this post. If you want that
information, let me know.
- --
Yes means no and no means yes. Delete all files [Y]?
Joseph C. Lininger, <jbahm@pcdesk.net>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
iQEbBAEBCAAGBQJLTSzYAAoJEMh8jNraUiwqftoH9ibIRC+TN7NH+K6kM2AobAIQ
FWCWTVHA1vGxm9Snlulpk5IeWSa9+rNGJonahKaAXjtR6HSBP6V9otV292i6sJLu
BEO9ks3yMCGtD7h5nKmtf/xvksM/5YMMKDFtbrSGkoYosvgF96J4nTQZizyYhDbI
+MtQ1HouaQHE23nn5ja8bXp5BktfdpksieX1GQpFn88lVwd5D4bNR+MSvKycWH7c
uIaCt+G8qYLHubPN7tPecnbejl6ODz5bqD7T5/EoSER5sHDZBF+LFkYKYhKXtVFa
Bc2Wz/gIDgC0K8E1GNvTlTUoT9wRqS+zga4EbVOlL/oRDCJHB1E1q/tgPpdcBw==
=lnZ0
-----END PGP SIGNATURE-----
_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Linux Parted question (fwd)
` Glenn Ervin
@ ` Georgina Joyce
` Joseph C. Lininger
1 sibling, 0 replies; 5+ messages in thread
From: Georgina Joyce @ UTC (permalink / raw)
To: Glenn Ervin, Speakup is a screen review system for Linux.
Hi
We just discussed using dd on a mbr. writing to 512 bytes destroys the
partition table as well as the MBR. Kerry suggests 446. But this would
make your MS OS unbootable. From memory of your question. If you
install a linux distro and putting the grub signature in the master boot
record, this will overwrite any virus residing there.
Gena
On Tue, 2010-01-12 at 20:26 -0600, Glenn Ervin wrote:
> Hi Joseph,
> There are two other partitions which I would prefer to not lose the data
> from. I have not yet ran Ubuntu on this system, but when I do, I am sure
> that it is SDA2 & SDA3 that I don't wish to damage. SDA1 may be erased, as
> it is likely the infected partition, but one of the other partitions is
> hidden, and it may be SDA3. But I don't know how this will effect the
> partitions other than SDA1.
> Thanks.
> Glenn
> ----- Original Message -----
> From: "Joseph C. Lininger" <jbahm@pcdesk.net>
> To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
> Sent: Tuesday, January 12, 2010 8:15 PM
> Subject: Re: Linux Parted question (fwd)
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Karen,
> What I would do is the following. First, I would 0 the mbr of the drive
> in question. Like this.
>
> dd if=/dev/zero of=/dev/<disk name> bs=512 count=1
>
> Then use the mklabel command in the parted program to initialize the
> mbr. This will cause all data on a drive to be lost, so make sure to do
> backups if preserving the data is necessary. If you copy the partition
> table using print and recreate it exactly you might be able to keep the
> data from being lost, but it's an advanced thing and I won't go into
> detail on exactly how to do it in this post. If you want that
> information, let me know.
> - --
> Yes means no and no means yes. Delete all files [Y]?
> Joseph C. Lininger, <jbahm@pcdesk.net>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
>
> iQEbBAEBCAAGBQJLTSzYAAoJEMh8jNraUiwqftoH9ibIRC+TN7NH+K6kM2AobAIQ
> FWCWTVHA1vGxm9Snlulpk5IeWSa9+rNGJonahKaAXjtR6HSBP6V9otV292i6sJLu
> BEO9ks3yMCGtD7h5nKmtf/xvksM/5YMMKDFtbrSGkoYosvgF96J4nTQZizyYhDbI
> +MtQ1HouaQHE23nn5ja8bXp5BktfdpksieX1GQpFn88lVwd5D4bNR+MSvKycWH7c
> uIaCt+G8qYLHubPN7tPecnbejl6ODz5bqD7T5/EoSER5sHDZBF+LFkYKYhKXtVFa
> Bc2Wz/gIDgC0K8E1GNvTlTUoT9wRqS+zga4EbVOlL/oRDCJHB1E1q/tgPpdcBw==
> =lnZ0
> -----END PGP SIGNATURE-----
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
--
Gena
four kinds of freedom, for the users of the software:
* The freedom to run the program, for any purpose (freedom 0).
* The freedom to study how the program works, and adapt it to your
needs (freedom 1). Access to the source code is a precondition for this.
* The freedom to redistribute copies so you can help your neighbor
(freedom 2).
* The freedom to improve the program, and release your improvements
to the public, so that the whole community benefits (freedom 3). Access
to the source code is a precondition for this.
Richard Matthew Stallman
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Linux Parted question (fwd)
` Glenn Ervin
` Georgina Joyce
@ ` Joseph C. Lininger
1 sibling, 0 replies; 5+ messages in thread
From: Joseph C. Lininger @ UTC (permalink / raw)
To: Glenn Ervin, Speakup is a screen review system for Linux.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Glen,
In that case, what you want to do is to first use print to print out
your partition table. Make sure you have parted set to print in sectors.
Then do the steps I talked about. Immediately after using mklabel,
recreate the partitions exactly as they were, again making sure the
start and end sectors match. That will destroy the MBR and anything else
that might have that virus, as well as preserving the data. Also make
sure to recreate the filesystems on any partitions where you think the
virus may have been so that the boot sectors on those partitions will
get overwritten. Viruses can sometimes hide there too.
- --
Yes means no and no means yes. Delete all files [Y]?
Joseph C. Lininger, <jbahm@pcdesk.net>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
iQEcBAEBCAAGBQJLTi5BAAoJEMh8jNraUiwqJ9QH/RD1W6wWndJ+H+TndSdXyQxV
6u1OOYCdn0ZJup2fcT6NnYEG/4T0zJoBlS1URRBx9rFHK2LWFwPqKRuuZ16oUHqW
TdLyJMAus1dfj8Ku1fbWnKaB6ISjeWSifFkjbLXqS8ahmEWZrwNjF2sjRvvc80f7
dsKaEOyXdcWvpRSsrQ10nSH+FOGUGKb24b+OXFxkrMgSlW4n8Hq2LYtsXc5cIJAH
oa6+8DGIf53T6UAsE1Fyj+EdQF5ljbLA/WdGjlIcwYLAYv3kyQi5df+NK5A2JVjz
pW5ov764OKRFE1gaA2LYNLlilWcm++4neRW+mZQScga++if5nmUR8caDVTu2q/I=
=j20g
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
Linux Parted question (fwd) Karen Lewellen
` Joseph C. Lininger
` Glenn Ervin
` Georgina Joyce
` Joseph C. Lininger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).