linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PROBLEM: mkfs wrote to wrong partition
@ 2001-08-05 16:50 C. Linus Hicks
  2001-08-07  0:59 ` Guest section DW
  0 siblings, 1 reply; 3+ messages in thread
From: C. Linus Hicks @ 2001-08-05 16:50 UTC (permalink / raw)
  To: Remy.Card; +Cc: linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PROBLEM: mkfs wrote to wrong partition
  2001-08-05 16:50 PROBLEM: mkfs wrote to wrong partition C. Linus Hicks
@ 2001-08-07  0:59 ` Guest section DW
  0 siblings, 0 replies; 3+ messages in thread
From: Guest section DW @ 2001-08-07  0:59 UTC (permalink / raw)
  To: C. Linus Hicks, Remy.Card; +Cc: linux-kernel

On Sun, Aug 05, 2001 at 12:50:16PM -0400, C. Linus Hicks wrote:

> 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.

Note that this does not mean a thing:
If /etc/mtab is a link to /proc/mounts (bad idea) then the root fs is
usually just called /dev/root. Otherwise, mount will guess at the
appropriate name for the root filesystem by taking the one in /etc/fstab.

So, when mount showed /dev/sdb2 as root, this meant that you had
changed the root entry in /etc/fstab.

Probably you forgot to run lilo and booted the old kernel.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* PROBLEM: mkfs wrote to wrong partition
@ 2001-08-06 15:15 C. Linus Hicks
  0 siblings, 0 replies; 3+ messages in thread
From: C. Linus Hicks @ 2001-08-06 15:15 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-08-07  0:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-05 16:50 PROBLEM: mkfs wrote to wrong partition C. Linus Hicks
2001-08-07  0:59 ` Guest section DW
2001-08-06 15:15 C. Linus Hicks

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 NNTP newsgroup(s).