Mounting the slave disk - Ubuntu

This is a discussion on Mounting the slave disk - Ubuntu ; OK, I guess virtual hosting won't work for me, but here's another item. I installed a fresh Kubuntu 7.04, wiping a corrupted Win 98 10-Gig disk. Then I put my previous Kubuntu in as slave. I want to mount both, ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Mounting the slave disk

  1. Mounting the slave disk

    OK, I guess virtual hosting won't work for me,
    but here's another item.

    I installed a fresh Kubuntu 7.04, wiping a corrupted
    Win 98 10-Gig disk. Then I put my previous Kubuntu
    in as slave.

    I want to mount both, so that I can do diffs and copy
    changes I've made into the new one.

    The BIOS sees both drives, but Kubuntu won't mount
    the other one. How should it be addressed? Since
    'df' showed the master as /dev/hda1 I tried /dev/hda2
    but it didn't work. /etc/fstab has the master listed
    by UUID--do I have to boot the other to find out
    what it's UUID is?

    --
    Wes Groleau

    What kind of smiley is C:\ ?

  2. Re: Mounting the slave disk

    On 2007-10-08, Wes Groleau wrote:

    sudo fdisk -l to see what /dev nodes you have
    Disk /dev/hda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00014960

    Device Boot Start End Blocks Id System
    /dev/hda1 1 2611 20972826 83 Linux
    /dev/hda2 * 2612 6528 31463302+ 83 Linux
    /dev/hda3 6529 9729 25712032+ 83 Linux

    Disk /dev/hdd: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00049cbd

    Device Boot Start End Blocks Id System
    /dev/hdd1 1 10215 82051956 83 Linux
    /dev/hdd2 10216 17886 61617307+ 83 Linux
    /dev/hdd3 17887 27498 77208390 83 Linux
    /dev/hdd4 27499 30401 23318347+ 82 Linux swap / Solaris

    Disk /dev/sda: 81.9 GB, 81964302336 bytes
    255 heads, 63 sectors/track, 9964 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xcd798038

    Device Boot Start End Blocks Id System
    /dev/sda1 1 9964 80035798+ 83 Linux

    Then sudo mount

    sudo mount
    /dev/hdd2 on / type ext2 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    /sys on /sys type sysfs (rw,noexec,nosuid,nodev)
    varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
    varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
    udev on /dev type tmpfs (rw,mode=0755)
    devshm on /dev/shm type tmpfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    lrm on /lib/modules/2.6.22-13-386/volatile type tmpfs (rw)
    /dev/hdd1 on /home type ext2 (rw)
    /dev/hda3 on /susehome type ext3 (rw)
    /dev/hda2 on /suseroot type ext3 (rw)
    /dev/hdd3 on /usr/local type ext2 (rw)
    /dev/hda1 on /var/www type ext3 (rw)
    securityfs on /sys/kernel/security type securityfs (rw)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    /dev/sda1 on /media/disk type ext3 (rw,nosuid,nodev)

    so based on these, if I wnated to mount /dev/hdd4 I would do something
    like this

    sudo mkdir /junk
    mount /dev/hdd4 /junk

    And then I could do a cd /junk or
    cd /
    sudo -i
    xxxxxxx
    cd /junk

    --
    PSK - RLU 452647 http://improve-usenet.org
    Killing GG on Ubuntu, openSUSE, Vista and XP with slrn and Xnews
    ~Nick: People are pigs.
    ~Grissom: Don't insult the pigs, Nick. They're actually very clean.

  3. Re: Mounting the slave disk

    Pseudo Silk Kimono wrote:
    > sudo fdisk -l to see what /dev nodes you have


    What I did instead was

    ls /dev/h*

    which showed that it's not hda1 and hda2, it's hda1 and hdb1

    :-)

    --
    Wes Groleau

    "A miracle is a violation of the laws of nature, and as a
    firm and unalterable experience has established these laws,
    the proof against a miracle, from the very nature of the fact,
    is as entire as could possibly be imagined."
    -- David Hume, age 37

    "There's no such thing of that, 'cause I never heard of it."
    -- Becky Groleau, age 4

  4. Re: Mounting the slave disk

    Wes Groleau wrote:
    > Pseudo Silk Kimono wrote:
    >
    >> sudo fdisk -l to see what /dev nodes you have

    >
    >
    > What I did instead was
    >
    > ls /dev/h*
    >
    > which showed that it's not hda1 and hda2, it's hda1 and hdb1


    as was expected.

    Beware that this only works on systems that have udev (or some other
    hotplugging mechanism that creates /dev nodes) and completely wipe their
    /dev upon system boot.
    On older systems (e.g. SuSE 9.x), you'll find that "ls /dev/h*" (or even
    "ls /dev/hd*") will list all hd[abcd] with all 63 possible partitions!

    --
    These are my personal views and not those of Fujitsu Siemens Computers!
    Josef Möllers (Pinguinpfleger bei FSC)
    If failure had no penalty success would not be a prize (T. Pratchett)
    Company Details: http://www.fujitsu-siemens.com/imprint.html


+ Reply to Thread