Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [SOLVED] Installing Hardy on external HDD

  1. #1
    Join Date
    Jul 2008
    Location
    Lost River Lake
    Beans
    233
    Distro
    Ubuntu Jaunty Jackalope (testing)

    [SOLVED] Installing Hardy on external HDD

    Dear all!

    I decided to try and follow, mutatis mutandis, DaBruGo's archived tutorial titled SUCCESS - Breezy loaded on external USB drive! (started in Oct. 2005):
    http://ubuntuforums.org/showthread.php?t=80811
    Now as I reached Step 3, i.e. partitioning, and more specifically, "Prepare partitions > Edit partition", I began to wonder about the mount point. I suppose it must be just "/", but I'd like to be absolutely sure.

    If you did not already figure it out, I'm trying to install Hardy on a partition of 20GB on an external HDD (WD 500 GB), i.e. /dev/sda4 in my desktop PC, running WinXP on the internal HDD (kids wanna play Sims, that's my only excuse to keep WinXP on /dev/hda1...).

    I could not find much information on installing Hardy on an external USB hard drive, so help would be very much appreciated! Thanks!
    Last edited by Piraja; August 10th, 2008 at 08:43 PM.

  2. #2
    Join Date
    Jun 2006
    Beans
    7,419
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Installing Hardy on external HDD

    yep, '/' on sda4. Don't forget /swap.

    Make sure to install grub to the mbr of the external and toggle the boot drive in the BIOS--otherwise you won't be able to boot windows when the external is disconnected.

    -> Ready to Install' screen>'Advanced' button lower right>change '(hd0)' to /dev/sda.

    Continue using the live cd after installation completes. Mount your new / partition and edit menu.lst:

    gksudo gedit /path/to/boot/grub/menu.lst

    change the 'root' lines (and 'groot' line near top) to (hd0,3).

  3. #3
    Join Date
    Jul 2008
    Location
    Lost River Lake
    Beans
    233
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Installing Hardy on external HDD

    Thanks Logos34!

    Another question: I'm using the Ubuntu LiveCD (Hardy) in spite of the caveat in the original tutorial (saying you should use "install cd" instead — I'm not sure if this is actually a difference between Breezy and Hardy rather than between install cd and live cd).

    Now as I rebooted the live cd, there appears to be no "rescue" option. If I press F1 and get the Help Index, and choose F4 (Additional boot methods; rescuing a broken system), I'm told "There is no dedicated rescue mode on this CD. However, since the entire system runs from the CD, it is possible to use the command line and/or graphical tools provided to rescue a broken system, [etc. etc.]".

    So, I'm a bit cautious to proceed now...

  4. #4
    Join Date
    Jun 2006
    Beans
    7,419
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Installing Hardy on external HDD

    well, like it says you don't need a 'rescue' option since it's a live cd--you can do just about anything repairs from the live session, which gives you a terminal and everything you need to edit stuff.

    Not sure what you're worried about but there is another way if you want to be absolutely certain ubuntu and grub goes where it's supposed to and doesn't overwrite windows/ntloader on the internal drive: simply disconnect the internal drive before running the ubuntu installation. Select 'manual' and choose sda4 as target '/' partition. Grub will by default go on the MBR of that disk--no need to edit anything.

    Only thing is you will have to manually add a windows entry to /etc/fstab if you want to access it from linux:
    https://help.ubuntu.com/community/Mo...(Hardy%20Heron)
    Last edited by logos34; August 10th, 2008 at 09:19 PM.

  5. #5
    Join Date
    Jul 2008
    Location
    Lost River Lake
    Beans
    233
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Installing Hardy on external HDD

    Quote Originally Posted by logos34 View Post
    it's a live cd

    Precisely... and I'm not only cautious but also impatient, so I started using the live cd option already before receiving your reply.

    One of the beautiful things at the Ubuntu Forums is the kind very real-time live support from the community and speedy replies. So thanks again!

  6. #6
    Join Date
    Jul 2008
    Location
    Lost River Lake
    Beans
    233
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Installing Hardy on external HDD

    Once again... Now I'm running the live cd. This is what DaBruGo's tutorial tells me:

    ( STEP 5 ) When the system comes back up it will ask for a partition to mount. Pick the correct mount point for your external drive from the list.
    (Mine was mount /dev/discs/disc1/part1 ... but yours may be different depending on the number and/or types of drives in your system)

    COMMENT: /dev/discs mount points start with disc0 (with 0 meaning the first drive in a system). So, my mount point of /dev/discs/disc1/part1 was really the second disk [disc1] (the sda drive we are working with) and the first partition [part1] on that disk.

    ( STEP 6 ) When it comes up to a terminal window (with RESCUE MODE in the upper left corner) and just sits there, hold down Ctrl-Alt-F2 to open another terminal window for us to do our edits in.

    ( STEP 7 ) Type in these lines before we start editing out files ...

    mount -tproc proc /target/proc <enter>
    chroot /target <enter>
    su <enter>

    Running the LiveCD, my mount point for the correct partition appears to be /media/disk-1. Now after discovering that, I open a terminal. Now I begin to wonder whether I should navigate to /media/disk-1 (cd /media/disk-1) and type the lines in question from that location, or just at the LiveCD user prompt (ubuntu@ubuntu). Well, I tried both ways. However, both times I sudoed the line "mount -tproc proc /target/proc" I got the message: "mount: mount point /target/proc does not exist".

    Hmm... I begin to feel I'm doing something stupid here. Should I replace the word "/target" with "/media/disk-1" or what? Maybe so... [EDIT: Heck no! see below...]

    But do I dare to try... well, let's see... maybe I'll see whether there's a Wiki about mount, proc and -tproc... [that's right, let's see... and ponder for a minute...]
    Last edited by Piraja; August 10th, 2008 at 10:07 PM.

  7. #7
    Join Date
    Jul 2008
    Location
    Lost River Lake
    Beans
    233
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Installing Hardy on external HDD

    I also tried "ls -la /target" and the response is:
    Code:
    ls: cannot access /target: No such file or directory

  8. #8
    Join Date
    Jul 2008
    Location
    Lost River Lake
    Beans
    233
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Installing Hardy on external HDD

    Oh, I discovered that there does not seem to be a /target (or /target/proc for that matter) directory at all, just /proc. Should I drop /target from the syntax and try this instead:

    Code:
    sudo mount -tproc proc /proc
    Any suggestions? You can see what a nOOb I am.

  9. #9
    Join Date
    Jun 2006
    Beans
    7,419
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Installing Hardy on external HDD

    no, you double-click the 'Install' icon on the desktop...That will start up the ubiquity installer...choose 'manual' partitioning option and go from there...it should be apparent which disk is your external and which the internal

    post back if unsure

  10. #10
    Join Date
    Jul 2008
    Location
    Lost River Lake
    Beans
    233
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Installing Hardy on external HDD

    Oh, thanks, I've done the install and am running the live CD now and I'm confident with the partitions (/dev/sdb4 mounted and all); it appears that the syntax was wrong. I tried this one —

    Code:
    mount -t proc/target/proc
    — and in response, I got just the command prompt, so it seems that it must be the correct syntax(?).

    However, the next line in the tutorial —

    Code:
    chroot /target
    returns

    Code:
    chroot: cannot change root directory to /target: No such file or directory
    I searched for the "target" directories and found actually several, but in the following locations:

    /usr/src/linux-headers-2.6.24-16-generic/include/config/netfilter/xt [With a lock emblem in Nautilus; I suppose this is the /usr directory of the LiveCD??)

    /media/disk-1/usr/src/linux-headers-2.6.24-16-generic/include/config/netfilter/xt [The external drive partition, /dev/sdb4, I presume. No lock emblem here]

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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