Re: Catch 22

From: Paulo Marques (pmarques_at_grupopie.com)
Date: 01/14/04

  • Next message: eddie tejeda: "VIA and NVIDIA"
    Date:	Wed, 14 Jan 2004 18:42:51 +0000
    To: "Randy.Dunlap" <rddunlap@osdl.org>
    
    

    Randy.Dunlap wrote:

    > On Wed, 14 Jan 2004 09:01:37 -0600 John Lash <jkl@sarvega.com> wrote:
    >
    > | On Wed, 14 Jan 2004 14:40:03 +0000
    > | Michael Lothian <s0095670@sms.ed.ac.uk> wrote:
    > |
    > | > Just thaought I'd let you know about my experiences with Mandrake using
    > | > the 2.4 and 2.6 kernels on my new hardware which is primaraly a Asus
    > | > A7V600 (KT600) Motherboard and Radeon 9600XT
    > | >
    > | > Under 2.4 my ATA hard drak is mounted under /dev/hda where as under 2.6
    > | > is /dev/hde so there is no wasy way to switch between them with lilo and
    > | > /etc/fstab needing to be changed
    > | >
    > |
    > | At least in this case, you should be able to use volume labels for the
    > | filesystems instead of the actual device names. Check out tune2fs -L. You then
    > | reference the volume label in your fstab.
    > |
    > | With lilo, you can specify that boot disk and root disk on the command line.
    > | Also you can point lilo to a different config file using lilo -C. Not seamless
    > | but should allow you to bounce back and forth w/o editing files....
    >
    > Does anyone know the reason for this (ATA ident/naming change)?
    >
    > I do *not* see this and I'm also using Mandrake (v9.0, not later).
    >

    I guess the problem is that, by default, Mandrake creates an extended partition
    when installed, where all the other partitions go.

    Whenever I install Mandrake, I'm always careful to switch to "Expert" mode and
    configure the partitions to be primary by hand to avoid this kind of problems.

    If you are a corageous hacker, you can always:

      - boot from a CD distribution (knoppix, etc.)
      - run fdisk on your hard drive
      - take note on the cylinders being used by the partitions,
      - delete the partitions on the extended partition, and the extended partition
    itself
      - create the partitions again as primary using the *exact* same cylinders
      - write the partition to disk
      - reboot

    Probably you'll have to adjust fstab to use the new partitions, but at least 2.4
    and 2.6 should both agree that you have an hda :)

    I don't know if you'll need to run lilo again before rebooting, but I would do
    that just to be on the safe side. To do that:

      - mount /dev/hda somewhere (/mnt/disk or something)
      - # cd /mnt/disk
      - edit etc/lilo.conf to always use /dev/hda
      - # chroot . lilo

    I hope this helps,

    -- 
    Paulo Marques - www.grupopie.com
    "In a world without walls and fences who needs windows and gates?"
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: eddie tejeda: "VIA and NVIDIA"

    Relevant Pages

    • Re: confusing /etc/fstab
      ... What happens if 2 partitions have the same label? ... I strongly suggest changing the labels. ... A machine that has drives already labeled at boot time will give new ... fstab for mounting. ...
      (Fedora)
    • Re: The LABEL in the filesystem table doesnt work
      ... >> which has caused endless problems, ... To start with, very few people "image and reorder" partitions, ... on another disk labelled /usr. ... Or another cause of confusion is where the labels ...
      (comp.os.linux.setup)
    • Re: confusing /etc/fstab
      ... mount cannot find /dev/hda1 because of ... By labeling partitions and using the labels ... drives in our lab machines. ...
      (Fedora)
    • Re: No of Partition
      ... From "How to use Disk Management to configure basic disks in Windows XP" ... A basic disk is a physical disk that contains primary partitions, extended partitions, or logical drives. ... You can create up to four primary partitions, or three primary partitions and one extended partition, that contain logical drives." ...
      (microsoft.public.windowsxp.basics)
    • Re: Migrating to a new disk
      ... I have an old 120GB hard disk, and a much newer, 320GB hard disk. ... want to enlarge the partitions. ... what is the command to tell me the current labels? ... My /home is mounted on four SATA drives that are in a RAID 1 setup using ...
      (Fedora)

    Loading