How to create entries for hard disk partitions in /dev?


Results 1 to 15 of 18

Thread: How to create entries for hard disk partitions in /dev?

Threaded View

  1. #3
    Join Date
    Jun 2004
    Location
    Newcastle upon Tyne
    Posts
    2,978
    Icarus,

    Thanks for the pointer. Other references aalso mention mknod too but I am nervrous as I lack the background knowledge of how Linux controsl the devices.

    Nevertheless I can report that I am booting the same Linux by "LIlo" first time. That means I have found a temporary solution.

    I came across the command mount --bind and tried it out as follow.

    (1) Boot to another Linux A that has /dev that has a device name for the Linux B I want to boot (which is hda61). In other word /dev of Linux A has maximum hda63 but Linux B stops at hda24. I do have partitions up hda63 detected fully by Linux A.

    (2) I then in Linux A do
    Code:
    mount --bind /dev  /mnt/hda61/dev
    which I believe the full list of /dev of Linux A is now available to Linux B

    (3) I then change root to Linux B and restore Lilo
    Code:
    chroot /mnt/hda61
    lilo -b /dev/hda61
    exit
    The scheme seems to work satisfactorily. No alteration is done in the /dev of Linux B. Lilo still can't be restored once the Linux B is booted up with the same error as reported in Post #1 before. However as LIlo fails and so it keeps the last working version and so I can continue to boot B.

    Although this is not a permanent solution still I am glad that I can understand the root cause ( I think) and have a cure for it, at least temporarily.
    Last edited by saikee; 12-30-2006 at 06:13 AM.
    Linux user started Jun 2004 - No. 361921
    Using a Linux live CD to clone XP
    To install Linux and keep Windows MBR untouched
    Adding extra Linux & Doing it in a lazy way
    A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
    Just cloning tips Just booting tips A collection of booting tips

    Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"

Posting Permissions

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