Announcement

Collapse
No announcement yet.

Moving from three hard drives to one big one

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Moving from three hard drives to one big one

    Hello everyone.

    A few months ago I asked for help in installing a third hard drive:

    http://kubuntuforums.net/forums/inde...80068#msg80068

    Now I am in the process of upgrading my PC in a big way. a P4-2.66 will replace my P3-1.26 Tualatin, 2gb RAM replaces 512mb RAM, and one big 320mb HDD will replace the three 40gb HDD I already have.

    I decided to do the hard drive first.

    So far, I have been successful in removing one 40gb drive and replacing it with the 320gb drive. Via GParted, I have managed to partition this drive into three:

    /newRoot (40gb)
    swap (20gb)
    /home (237gb)

    Moreover, I have managed to copy the contents of the original /home directory from one of the two remaining 40gb drives. All I need to do now is to copy the root directory from a 40gb drive onto the 320gb one. But, of course, I am having problems. For starters, I can't seem to unmount the original /home. I also can't seem to "swap" over the swap from its current drive to the new one. I haven't even tried to move root yet.

    Here is fstab:

    proc /proc proc defaults 0 0
    # /dev/hdb1
    UUID=04c95748-a0ef-4f0d-a713-ccc1ff83f2b9 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
    # /dev/hda3
    UUID=17693f6f-55e7-45eb-9fba-d7a885cf268b /home ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
    # /dev/sda1
    UUID=7e6a585d-73cf-44fc-9bf1-50ad1f040f86 /media/sda1 ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 3
    # /dev/hda1
    # /dev/hdb2
    /dev/sdb2 none swap sw 0 0
    /dev/scd0 /media/cdrom0 auto nouser,atime,noauto,rw,nodev,noexec,nosuid 0 0
    /dev/scd1 /media/cdrom1 auto nouser,atime,noauto,rw,nodev,noexec,nosuid 0 0
    /dev/ /media/floppy0 auto user,atime,noauto,rw,dev,exec,suid 0 0

    /dev/sdc1 /NewRoot ext3 nouser,atime,auto,rw,nodev,exec,nosuid 0 0
    <device> <mount\040point> auto nouser,atime,noauto,rw,nodev,noexec,nosuid 0 0
    <device> <mount\040point> auto nouser,atime,noauto,rw,nodev,noexec,nosuid 0 0
    <device> <mount\040point> ext3 nouser,loop,atime,noauto,rw,nodev,noexec,nosuid 0 0
    /dev/sdc2 <mount\040point> swap noauto 0 0
    /dev/sdc3 /home auto nouser,atime,noauto,rw,nodev,noexec,nosuid 0 0

    So what I'm after is simple:

    1x 320gb drive with three partitions:

    /
    swap
    /home

    With all the information from the remaining two 40gb drives put into the relevant partitions.

    What do I do?
    P4-2.66<br />320gb HDD<br />256mb Radeon 9200 SE<br />On-Board LAN<br />2gb RAM<br />17&quot; Monitor<br />CD-RW Drive<br />DVD-R/RW Drive<br />http://www.one-salient-oversight.blogspot.com/

    #2
    Re: Moving from three hard drives to one big one

    No need to move swap.
    As for moving home if your having problems you may want to use a liveCD such as Knoppix to do that with. The Kubuntu livecd may also work since the partitions are all linux, but I am not sure. I know Knoppix will find all the partitions and make them available for mounting.

    Comment


      #3
      Re: Moving from three hard drives to one big one

      Well here I am using the Kubuntu 5.10 liveCD trying to work out how to copy the root directory from the 40gb HDD onto the 320gb HDD.

      I've gone into System Settings --> System Administration --> Disk and Filesystems. All the Hard drives are there and I can mount and enable all the various partitions.

      But it doesn't seem to work.

      This is how I have done it.

      1) Examine Disk and Filesystems, which show the following:

      Disk 'WDC WD3200...'
      1 Partition 40.0 gb /dev/hdd1
      2 Partition 20.5 gb /dev/hdd2
      3 Partition 237.5gb /dev/hdd3

      Disk 'WDC WD400...'
      1 Partition 29.3 gb /dev/hdb1
      2 Partition 8.0 gb /dev/hdb2

      Disk 'WDC WD400...'
      1 Partition 13.0 gb /dev/hda1
      1 Partition 24.3 gb /dev/hda2

      2. Mount and enable hdd1:

      1 Partition 40.0gb /newroot ext2 /dev/hdd1

      3. Mount and enable hdb1:

      1 Partition 29.3gb /oldroot ext2 /dev/hdb1

      4. Go into Konqueror, opening newroot and oldroot in tabs

      5. In oldroot tab, select all and copy all files in root.

      6. Go into newroot tab, paste files,

      7. "Access denied to /newroot/bin"

      Chances are that I need to be root when doing this... yet I can easily access data in the oldroot directory without needing root or sudo.

      BASIC QUESTION: How do I copy the root directory from one drive to another using LiveCD (Remember I'm using 5.10, not 7.10)
      P4-2.66<br />320gb HDD<br />256mb Radeon 9200 SE<br />On-Board LAN<br />2gb RAM<br />17&quot; Monitor<br />CD-RW Drive<br />DVD-R/RW Drive<br />http://www.one-salient-oversight.blogspot.com/

      Comment


        #4
        Re: Moving from three hard drives to one big one


        5.10, wow that's really stretching the old brain sells for for an old man like me, but I believe you just enter sudo at the konsole prompt and you'll get root.
        You can also try sudo konqueror and I think you will be able to run konqueror as root.

        Also I haven't read your prior but couldn't you just do a fresh install into your new hard drive and then copy your date files form your other drive over? Also the fresh install will give you the needed partition set up.

        Comment


          #5
          Re: Moving from three hard drives to one big one

          No. Doesn't work. Entered sudo kfmclient openProfile webbrowsing, Konqueror came up but it will not let me copy the root directory over.

          In order for me to re-load Kubuntu 7.10 it would mean I would have to sit on the internet for 20 hours downloading everything again. I already did that a week or two ago and I'm not prepared to do it again. Besides there are files and directories in the root directory I would like to keep rather than to reinstall and/or upgrade.

          Moreover, I don't have a 7.10 LiveCD to install.

          Why is it so hard to do this most basic of things - copying files from one Hard Drive to another?
          P4-2.66<br />320gb HDD<br />256mb Radeon 9200 SE<br />On-Board LAN<br />2gb RAM<br />17&quot; Monitor<br />CD-RW Drive<br />DVD-R/RW Drive<br />http://www.one-salient-oversight.blogspot.com/

          Comment


            #6
            Re: Moving from three hard drives to one big one

            As root ("sudo -s"):
            Code:
            mkdir /oldroot
            mkdir /newroot
            mount -o uid=1000,gid=1000 /dev/hdd1 /newroot
            mount -o uid=1000,gid=1000 /dev/hdb1 /oldroot
            Copy files and you're done.
            For external use only.

            Comment


              #7
              Re: Moving from three hard drives to one big one

              Didn't work

              mount: you must specify the filesystem type
              P4-2.66<br />320gb HDD<br />256mb Radeon 9200 SE<br />On-Board LAN<br />2gb RAM<br />17&quot; Monitor<br />CD-RW Drive<br />DVD-R/RW Drive<br />http://www.one-salient-oversight.blogspot.com/

              Comment


                #8
                Re: Moving from three hard drives to one big one

                Try "mount -t ext2 ...", in both.
                For external use only.

                Comment


                  #9
                  Re: Moving from three hard drives to one big one

                  SheeEttin would mount -o ext2 uid=1000,gid=1000 /dev/hdd1 /newroot also work?

                  And why isn't sudo Konqueror not working, I use it all the time on my systems from cli and or terminal and it works everytime. Permissions problem also?

                  Just curious.

                  Comment


                    #10
                    Re: Moving from three hard drives to one big one

                    This is what happens:

                    root@ubuntu:~# mount -t ext2 uid=1000,gid=1000 /dev/hdd1 /newroot
                    Usage: mount -V : print version
                    mount -h : print this help
                    mount : list mounted filesystems
                    mount -l : idem, including volume labels
                    So far the informational part. Next the mounting.
                    The command is `mount [-t fstype] something somewhere'.
                    Details found in /etc/fstab may be omitted.
                    mount -a [-t|-O] ... : mount all stuff from /etc/fstab
                    mount device : mount device at the known place
                    mount directory : mount known device here
                    mount -t type dev dir : ordinary mount command
                    Note that one does not really mount a device, one mounts
                    a filesystem (of the given type) found on the device.
                    One can also mount an already visible directory tree elsewhere:
                    mount --bind olddir newdir
                    or move a subtree:
                    mount --move olddir newdir
                    A device can be given by name, say /dev/hda1 or /dev/cdrom,
                    or by label, using -L label or by uuid, using -U uuid .
                    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
                    For many more details, say man 8 mount .

                    root@ubuntu:~# mount -t ext2 uid=1000,gid=1000 /dev/hdb1 /oldroot
                    Usage: mount -V : print version
                    mount -h : print this help
                    mount : list mounted filesystems
                    mount -l : idem, including volume labels
                    So far the informational part. Next the mounting.
                    The command is `mount [-t fstype] something somewhere'.
                    Details found in /etc/fstab may be omitted.
                    mount -a [-t|-O] ... : mount all stuff from /etc/fstab
                    mount device : mount device at the known place
                    mount directory : mount known device here
                    mount -t type dev dir : ordinary mount command
                    Note that one does not really mount a device, one mounts
                    a filesystem (of the given type) found on the device.
                    One can also mount an already visible directory tree elsewhere:
                    mount --bind olddir newdir
                    or move a subtree:
                    mount --move olddir newdir
                    A device can be given by name, say /dev/hda1 or /dev/cdrom,
                    or by label, using -L label or by uuid, using -U uuid .
                    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
                    For many more details, say man 8 mount .
                    --------------
                    I have no idea what all that meant. I still can't copy (both newroot and oldroot are not mounted according to System Settings)
                    P4-2.66<br />320gb HDD<br />256mb Radeon 9200 SE<br />On-Board LAN<br />2gb RAM<br />17&quot; Monitor<br />CD-RW Drive<br />DVD-R/RW Drive<br />http://www.one-salient-oversight.blogspot.com/

                    Comment


                      #11
                      Re: Moving from three hard drives to one big one

                      You forgot -o.
                      Whole line should look like this: "mount -t ext2 -o uid=1000,gid=1000 /dev/hdd1 /newroot".
                      -o for mount options, -t for FS type.
                      For external use only.

                      Comment


                        #12
                        Re: Moving from three hard drives to one big one

                        This is getting annoying...

                        Code:
                        root@ubuntu:~# mount -t ext2 -o uid=1000,gid=1000 /dev/hdd1 /newroot
                        mount: wrong fs type, bad option, bad superblock on /dev/hdd1,
                           missing codepage or other error
                           In some cases useful info is found in syslog - try
                           dmesg | tail or so
                        
                        root@ubuntu:~# mount -t ext2 -o uid=1000,gid=1000 /dev/hdb1 /oldroot
                        mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
                           missing codepage or other error
                           In some cases useful info is found in syslog - try
                           dmesg | tail or so
                        Remember, I am using a Kubuntu 5.10 LiveCD. Not 7.10, 5.10.
                        P4-2.66<br />320gb HDD<br />256mb Radeon 9200 SE<br />On-Board LAN<br />2gb RAM<br />17&quot; Monitor<br />CD-RW Drive<br />DVD-R/RW Drive<br />http://www.one-salient-oversight.blogspot.com/

                        Comment


                          #13
                          Re: Moving from three hard drives to one big one

                          Interesting... and these are ext2 filesystems?
                          Hm.
                          I am confused. mount can't tell they're ext2s, and specifying that says "no"...

                          What does "dmesg | tail" say?
                          For external use only.

                          Comment


                            #14
                            Re: Moving from three hard drives to one big one

                            Code:
                            ubuntu@ubuntu:~$ sudo -s
                            root@ubuntu:~# dmesg | tail
                            [4301679.840000] atkbd.c: Use 'setkeycodes e02a <keycode>' to make it known.
                            [4301679.920000] atkbd.c: Unknown key pressed (translated set 2, code 0xaa on isa0060/serio0).
                            [4301679.920000] atkbd.c: Use 'setkeycodes e02a <keycode>' to make it known.
                            [4320658.912000] EXT2-fs warning (device hdd3): ext2_fill_super: mounting ext3 filesystem as ext2
                            [4320658.912000]
                            [4320658.912000] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
                            [4321819.994000] atkbd.c: Unknown key released (translated set 2, code 0xaa on isa0060/serio0).
                            [4321819.994000] atkbd.c: Use 'setkeycodes e02a <keycode>' to make it known.
                            [4321820.106000] atkbd.c: Unknown key pressed (translated set 2, code 0xaa on isa0060/serio0).
                            [4321820.106000] atkbd.c: Use 'setkeycodes e02a <keycode>' to make it known.
                            root@ubuntu:~#
                            P4-2.66<br />320gb HDD<br />256mb Radeon 9200 SE<br />On-Board LAN<br />2gb RAM<br />17&quot; Monitor<br />CD-RW Drive<br />DVD-R/RW Drive<br />http://www.one-salient-oversight.blogspot.com/

                            Comment


                              #15
                              Re: Moving from three hard drives to one big one

                              I solved it

                              In the end I decided to give up and install Kubuntu 5.10. Since I had already partitioned the hard drive I decided to do manually install 5.10 on the root partition that I had set aside.

                              And then, as I was following the instructions in the Kubuntu setup menu, I saw that I had the option of copying from one partition to another - which I did successfully.

                              So I was able to copy the /oldroot partition to the /newroot partition simply using the installation instructions. Once the copying had been completed, I reset the computer and off I went.

                              Using the 5.10 LiveCD to copy the 7.10 root? Priceless.
                              P4-2.66<br />320gb HDD<br />256mb Radeon 9200 SE<br />On-Board LAN<br />2gb RAM<br />17&quot; Monitor<br />CD-RW Drive<br />DVD-R/RW Drive<br />http://www.one-salient-oversight.blogspot.com/

                              Comment

                              Working...
                              X