Professional Web Applications Themes

Moving /usr - Linux Setup, Configuration & Administration

I want to move /usr to its own partition. Searches led me to copy /usr to the new partition (cp -a /usr /mnt/hdc7) and edit fstab to point to it (/dev/hdc7 /usr ext3 defaults 0 2). I also renamed /usr to force the issue. Unfortunately, when I boot this way I get dumped to a prompt. It's obvious from the boot that it's not finding /usr in its new place and is unable to finish. It works fine when I change back to the original conf. The OS is the new MEPIS Debian, and its installer doesn't allow installing to ...

  1. #1

    Default Moving /usr

    I want to move /usr to its own partition. Searches led me to copy /usr to
    the new partition (cp -a /usr /mnt/hdc7) and edit fstab to point to it
    (/dev/hdc7 /usr ext3 defaults 0 2). I also renamed /usr to force the
    issue. Unfortunately, when I boot this way I get dumped to a prompt. It's
    obvious from the boot that it's not finding /usr in its new place and is
    unable to finish. It works fine when I change back to the original conf.

    The OS is the new MEPIS Debian, and its installer doesn't allow installing
    to two disks or to specify a /usr partition. It's nice, though. I
    recommend trying it out as a live CD.

    What have I missed in moving /usr?

    Jim Bowering Guest

  2. #2

    Default Re: Moving /usr

    * Jim Bowering
    > I want to move /usr to its own partition. Searches led me to copy /usr to
    > the new partition (cp -a /usr /mnt/hdc7) and edit fstab to point to it
    > (/dev/hdc7 /usr ext3 defaults 0 2). I also renamed /usr to force the
    > issue. Unfortunately, when I boot this way I get dumped to a prompt. It's
    > obvious from the boot that it's not finding /usr in its new place and is
    > unable to finish. It works fine when I change back to the original conf.
    >
    > The OS is the new MEPIS Debian, and its installer doesn't allow installing
    > to two disks or to specify a /usr partition. It's nice, though. I
    > recommend trying it out as a live CD.
    >
    > What have I missed in moving /usr?
    Any mount of a file system (i.e. partition) to a mount point need a
    (preferably) empty directory as the mount point. That is, this is the
    way to do it:

    mount /dev/hdc7 /mnt/hdc7
    cp -a /usr /mnt/hdc7
    mv /usr /usr-backup-just-in-case
    mkdir /usr
    <edit /etc/fstab>
    shutdown -r now


    --
    Jon Haugsand
    Dept. of Informatics, Univ. of Oslo, Norway, mailto:jonhaugifi.uio.no
    [url]http://www.ifi.uio.no/~jonhaug/[/url], Phone: +47 22 95 21 52
    Jon Haugsand Guest

Similar Threads

  1. moving from adm to mfc
    By Alan_Berze@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: December 9th, 04:04 PM
  2. Moving to specified row
    By pmclinn@gmail.com in forum ASP.NET Data Grid Control
    Replies: 0
    Last Post: September 8th, 04:09 PM
  3. Moving Randomly Moving Sprite To New Location on mouseEnter
    By ScottE in forum Macromedia Director Lingo
    Replies: 9
    Last Post: November 8th, 01:27 PM
  4. Moving from 4.1 OS 9 to 6.04 OS X
    By Pismo in forum FileMaker
    Replies: 1
    Last Post: October 16th, 06:07 PM
  5. Moving to ASP.NET
    By Womble in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 9th, 10:17 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139