linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Linux can't find partitions , again
@ 2001-08-03 11:12 Andries.Brouwer
  0 siblings, 0 replies; 3+ messages in thread
From: Andries.Brouwer @ 2001-08-03 11:12 UTC (permalink / raw)
  To: david.balazic, linux-kernel, testers-list

> Yesterday I did "nothing" (*) and then linux didn't boot anymore.
> * - I created a partition on the free part of the disk, but after a minute
> I changed my mind an deleted it.
> I used the Disk Administrator tools undwr win2000

Always interesting. Why don't you run

	sfdisk -l -uS -x /dev/hda

? You might teach us something about how win2000 handles partitions.

Andries



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

* Re: Linux can't find partitions , again
  2001-08-03  9:49 David Balazic
@ 2001-08-03 10:41 ` David Balazic
  0 siblings, 0 replies; 3+ messages in thread
From: David Balazic @ 2001-08-03 10:41 UTC (permalink / raw)
  To: david.balazic

Please, LKML people only reply to LKML ( and me ),
ignore the redhat address.
Redhat people , do the opposite.

Seems that my mail server discloses "BCC:" fields if there is no "To:" field ...
Sorry.

David Balazic wrote:
> 
> Hi!
> 
> Yesterday I did "nothing" (*) and then linux didn't boot anymore.
> It couldn't mount the root FS.
> After I fixed that , it couldn't turn on the swap partition.
> 
> This really pisses me off ! ( I am cool now, you should see me yesterday )
> 
> The problem was that the partitions were renumbered "randomly"
> and linux just can not deal with that. Before linux named the root FS
> partition hda6, but now he names it hda7. Off course the kernel still looks
> for hda6 and fails. After I fix LILO , it boots, but fails to turn on the swap
> as it was renamed from hda7 to hda5. I edit /etc/fstab and all is well.
> Until next time.
> 
> This has bitten me and my neighbour enough times that I wrote a kernel patch
> to fix ( 99% fix ) the first problem ( root-FS ) and I don't write kernel patches
> every week !
> I didn't address the second problem ( swap ).
> 
> The patch works by scanning all known partitions for a matching ext2 UUID ( or label ).
> Maybe a simpler solution would be to search the partition list for a particular
> disk ( hda ) for a partition which has a particular (start,size) pair ? ( less disk access,
> FS-type neutral , would work for the swap problem too )
> 
> Patch available at
> http://linux-patches.rock-projects.com/v2.2-f/uuid.html
> 
> Opinions ?
> 
> * - I created a partition on the free part of the disk, but after a minute
> I changed my mind an deleted it. I used the Disk Administrator tools undwr win2000
> 
> --
> David Balazic
> --------------
> "Be excellent to each other." - Bill & Ted
> - - - - - - - - - - - - - - - - - - - - - -
> 
> _______________________________________________
> Testers-list mailing list
> Testers-list@redhat.com


-- 
David Balazic
--------------
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -

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

* Linux can't find partitions , again
@ 2001-08-03  9:49 David Balazic
  2001-08-03 10:41 ` David Balazic
  0 siblings, 1 reply; 3+ messages in thread
From: David Balazic @ 2001-08-03  9:49 UTC (permalink / raw)
  To: linux-kernel, testers-list

Hi!

Yesterday I did "nothing" (*) and then linux didn't boot anymore.
It couldn't mount the root FS.
After I fixed that , it couldn't turn on the swap partition.

This really pisses me off ! ( I am cool now, you should see me yesterday )

The problem was that the partitions were renumbered "randomly"
and linux just can not deal with that. Before linux named the root FS
partition hda6, but now he names it hda7. Off course the kernel still looks
for hda6 and fails. After I fix LILO , it boots, but fails to turn on the swap
as it was renamed from hda7 to hda5. I edit /etc/fstab and all is well.
Until next time.

This has bitten me and my neighbour enough times that I wrote a kernel patch
to fix ( 99% fix ) the first problem ( root-FS ) and I don't write kernel patches
every week !
I didn't address the second problem ( swap ).

The patch works by scanning all known partitions for a matching ext2 UUID ( or label ).
Maybe a simpler solution would be to search the partition list for a particular
disk ( hda ) for a partition which has a particular (start,size) pair ? ( less disk access, 
FS-type neutral , would work for the swap problem too )

Patch available at
http://linux-patches.rock-projects.com/v2.2-f/uuid.html

Opinions ?

* - I created a partition on the free part of the disk, but after a minute
I changed my mind an deleted it. I used the Disk Administrator tools undwr win2000

-- 
David Balazic
--------------
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -

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

end of thread, other threads:[~2001-08-03 11:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-03 11:12 Linux can't find partitions , again Andries.Brouwer
  -- strict thread matches above, loose matches on Subject: below --
2001-08-03  9:49 David Balazic
2001-08-03 10:41 ` David Balazic

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