Results 1 to 5 of 5

Thread: Cannot switch root partitions

  1. #1
    Junior Member
    Join Date
    Nov 2003
    Posts
    3

    Cannot switch root partitions

    Hi all,
    this is surely a LILO problem, but I cannot figure out myself, what the
    heck I am doing wrong.

    I have installed the CD to /dev/hda10, a reasonably big partition.
    Now there are several smaller partitions like>
    / ==> /dev/hda5
    /usr ==> /dev/hda6
    /var ==> /dev/hda8
    /home ==> /dev/hda9 ...
    which I want to use.
    I have copied the files with cp -ax to their respective target partitions
    and I think this should be allright.
    Running lilo doesnt show any mistakes to me, so I am really struggling
    why it always boots with /dev/hda10 as root device,despite the lilo.conf.hda5 that I have edited:
    Important parts of lilo.conf.hda5:
    ---snip---
    boot=/dev/hda
    root=/dev/hda5
    install=/mnt/hda5/boot/boot-menu.b
    map=/mnt/hda5/boot/map
    default=Linux-hda5

    image=/mnt/hda5/boot/vmlinuz-2.4.22-xfs
    label=Linux-hda5
    initrd=/mnt/hda5/boot/initrd.gz
    read-only
    root=/dev/hda5

    image=/boot/vmlinuz-2.4.22-xfs
    label=Linux
    initrd=/boot/initrd.gz
    read-only
    root=/dev/hda10
    ---snap---

    lilo -C /mnt/hda5/etc/lilo.conf.hda5
    produces the following output:
    ---snip---
    ...
    Added Linux-hda5 *
    <dev=0xe0,hd=20,cyl=66,sct=197>
    "ro root=305 hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce"
    ...
    Added Linux
    Device 0x030a: BIOS drive 0x80, 255 heads, 4864 cylinders,
    63 sectors. Partition offset: 55135143 sectors.
    ---snap---

    After reboot, it will always boot into /dev/hda10.
    What is wrong?
    Tnx Thomas

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933

    Re: Cannot switch root partitions

    Bad:

    image=/mnt/hda5/boot/vmlinuz-2.4.22-xfs

    Good:

    image=/hda5/boot/vmlinuz-2.4.22-xfs

    Get rid of all those entries that start w/ /mnt.

  3. #3
    Junior Member
    Join Date
    Nov 2003
    Posts
    3

    Re: Cannot switch root partitions

    Quote Originally Posted by rickenbacherus
    Bad:

    image=/mnt/hda5/boot/vmlinuz-2.4.22-xfs

    Good:

    image=/hda5/boot/vmlinuz-2.4.22-xfs

    Get rid of all those entries that start w/ /mnt.
    But /hda5 does not exist.
    If I specify an image, ..., it should exist when lilo runs.

    This does not make sense to me.

  4. #4
    Junior Member
    Join Date
    Nov 2003
    Posts
    3
    I get the impression it is the initrd which is voiding my attempts
    to use a different root partition.
    http://www.knoppix.net/forum/viewtopic.php?t=3053#14435

    in the linuxrc script in the initrd image mount /dev/hda6 is HARDCODED
    So I would need to change that in linuxrc.
    Any ideas how to do that?

    Thomas

  5. #5
    Senior Member registered user
    Join Date
    Jan 2003
    Location
    Podunk, Idaho, USA
    Posts
    470
    image=/mnt/hda5/boot/vmlinuz-2.4.22-xfs
    initrd=/mnt/hda5/boot/initrd.gz
    the image and initrd references should be relative to your root definition so:

    image=/boot/vmlinuz-2.4.22-xfs
    and
    initrd=/boot/initrd.gz
    should work,

    if not you should use the devices not the mount points like this:

    image=/dev/hda5/boot/vmlinuz-2.4.22-xfs
    and
    initrd=/dev/hda5/boot/initrd.gz

    ~rock

Similar Threads

  1. hub vs switch
    By djarum in forum Networking
    Replies: 3
    Last Post: 06-27-2005, 05:39 AM
  2. kvm switch
    By senorian in forum Hardware & Booting
    Replies: 0
    Last Post: 04-20-2004, 08:19 PM
  3. switch from GUI to ROOT
    By bob58 in forum General Support
    Replies: 1
    Last Post: 03-23-2004, 05:38 PM
  4. switch & hub question
    By regus in forum Networking
    Replies: 6
    Last Post: 01-29-2004, 03:33 PM
  5. How does one switch desktops
    By efi360 in forum General Support
    Replies: 8
    Last Post: 08-17-2003, 07:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HPGYT DELL Micron 5100 PRO 960GB SATA 6Gb/s 2.5in SSD 0HPGYT MTFDDAK960TCB Gen14 picture

HPGYT DELL Micron 5100 PRO 960GB SATA 6Gb/s 2.5in SSD 0HPGYT MTFDDAK960TCB Gen14

$69.00



G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5

G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5" SSD 0G5T03 SSDSC2BA800G3E

$55.00



### MZ-7KE1T0 Samsung 850 Pro Series 1TB 2.5 inch SATA3 SSD ### picture

### MZ-7KE1T0 Samsung 850 Pro Series 1TB 2.5 inch SATA3 SSD ###

$105.00



Micron 3.84TB SSD 5200 ECO SATA 2.5

Micron 3.84TB SSD 5200 ECO SATA 2.5" MTFDDAK3T8TDC D1MU420 Solid State Drive

$312.00



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$14.99



Micron 5100 MAX 120GB SATA 6Gb/s 2.5

Micron 5100 MAX 120GB SATA 6Gb/s 2.5" Internal SSD MTFDDAK120TCC Solid State

$9.89



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot picture

Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot

$13.99



M.2 NVMe SSD 128GB 256GB 512GB Single Notch with Windows Installed 10 / 11 picture

M.2 NVMe SSD 128GB 256GB 512GB Single Notch with Windows Installed 10 / 11

$85.25



Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture

Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot

$109.99