From: "C. Linus Hicks" <lhicks@nc.rr.com>
To: <Remy.Card@linux.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: PROBLEM: mkfs wrote to wrong partition
Date: Sun, 5 Aug 2001 12:50:16 -0400 [thread overview]
Message-ID: <006a01c11dce$b4338bb0$0a0a0a0a@k-6_iii-400.mindspring.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2399 bytes --]
I am running Redhat 7.1 with the following:
Software:
kernel 2.4.6 smp
Gnu C 2.91.66 (It's a Redhat system but I use kgcc)
Gnu make 3.79.1
binutils 2.10.91.0.2
util-linux 2.10s
mount 2.10r
modutils 2.4.2
e2fsprogs 1.19
reiserfsprogs 3.x.0j
Linux C Library 2.2.2
Dynamic linker (ldd) 2.2.2
Procps 2.0.7
Net-tools 1.57
Console-tools 0.3.3
Sh-utils 2.0
Hardware:
Asus P2B-DS with 2 600Mhz P III Intel
1gb memory
3 SCSI disks using the new AIC7XXX driver
The point of the following exercise was to move from a single CPU 400Mhz
system to a dual 600Mhz and from an IDE disk to SCSI. I already had Redhat
7.1 with a 2.4.6 kernel running on the dual 600 and was replacing it with
the system from the 400Mhz IDE system. All operations were performed on the
dual 600.
While running the system booted with root=/dev/sda2 I made partitions on
/dev/sdb just like on /dev/sda, then copied all files over. I modified the
lilo.conf in /etc on /dev/sda2 to have boot=/dev/sdb and set the
root=/dev/sdb2 for each image. I ran lilo then booted the system.
The system looked like I expected it to: mount showed /dev/sdb2 mounted as
the root filesystem.
Next I did mkfs on the partitions on /dev/sda, starting with the higher
partitions and working down, and copied data from hda. By the way, the
P2B-DS BIOS allows me to choose whether IDE or SCSI comes first, therefore I
can boot from SCSI even though an IDE disk is attached. Current setting was
SCSI first. When I got to /dev/sda2 I tried to format it reiserfs, but it
complained about the filesystem being mounted. Not quite realizing what was
going on yet, I tried mkfs -t ext2 and it worked. Shortly after that, I
noticed that df showed /dev/sdb2 as looking nearly empty. I looked with ls
and no files showed up. And I started having problems running most commands,
as you can imagine.
The system seemed to be getting /dev/sda2 confused with /dev/sdb2. This
seems like a bug to me, and I wonder if I tried to do something that isn't
supported.
Keywords: filesystem ext2 reiserfs
I've been using Linux for several years now, but have never submitted a bug
report before.
If you need additional information, please let me know.
Linus Hicks
lhicks@nc.rr.com
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 2880 bytes --]
next reply other threads:[~2001-08-05 16:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-05 16:50 C. Linus Hicks [this message]
2001-08-07 0:59 ` Guest section DW
2001-08-06 15:15 C. Linus Hicks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='006a01c11dce$b4338bb0$0a0a0a0a@k-6_iii-400.mindspring.com' \
--to=lhicks@nc.rr.com \
--cc=Remy.Card@linux.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®