Loading ...
Sorry, an error occurred while loading the content.

23843Re: SlugOS 4.8 -> 5.3 upgrade

Expand Messages
  • slackline
    Jul 6, 2009
    • 0 Attachment
      --- In nslu2-linux@yahoogroups.com, "slackline" <nshephard@...> wrote:
      > > Peruse the mailing list archives; you will want to disable the SlugOS
      > > "automount" facility (/etc/udev/something-or-other). Then mount your
      > > partitions by UUID instead of /dev/sd* -- this will avoid much pain and
      > > sadness.
      > Will search the archives on the above, have a poke around and see if I can solve it.

      Okay, had a chance to dig around and sort this out.

      Found a few pointers in the archives (some here http://tech.groups.yahoo.com/group/nslu2-linux/message/21936 some mirrored on nabble http://www.nabble.com/SlugOS-5.3,-Memstick---HDD----device-name-confusion-(sda---sdb)-td23927062.html ).

      I listed the UUID of my HD' using the following...

      # ls -lha /dev/disk/by-uuid/
      drwxr-xr-x 2 root root 280 Jul 6 18:51 .
      drwxr-xr-x 3 root root 60 Jul 6 18:45 ..
      lrwxrwxrwx 1 root root 10 Jul 6 18:51 1a823ba7-2374-4217-92d9-acf0ab26bd94 -> ../../sdb5
      lrwxrwxrwx 1 root root 10 Jul 6 18:51 282acb86-7e36-4958-bcda-37d2dc82d3e6 -> ../../sdb8
      lrwxrwxrwx 1 root root 10 Jul 6 18:51 39f901a5-e345-4198-8af3-648bee321a20 -> ../../sdb2
      lrwxrwxrwx 1 root root 10 Jul 6 18:45 3d5fad71-9aea-4ce4-89ee-6017fc479eca -> ../../sda7
      lrwxrwxrwx 1 root root 10 Jul 6 18:51 3db6ca09-c7f3-4204-bab8-3fdda5a52da9 -> ../../sdb3
      lrwxrwxrwx 1 root root 10 Jul 6 18:45 4c375f41-e91d-4fe3-aadb-6ac7f312c4db -> ../../sda3
      lrwxrwxrwx 1 root root 10 Jul 6 18:45 4c56a407-97fd-491c-9032-c5068a8f1f16 -> ../../sda1
      lrwxrwxrwx 1 root root 10 Jul 6 18:45 55f82e1f-8fc1-479f-bbae-06611eb40142 -> ../../sda6
      lrwxrwxrwx 1 root root 10 Jul 6 18:51 a0dc2378-713c-4baf-8a68-bdd6da270436 -> ../../sdb6
      lrwxrwxrwx 1 root root 10 Jul 6 18:51 aa5f1bb9-573d-40e2-b001-d0d3336e852f -> ../../sdb1
      lrwxrwxrwx 1 root root 10 Jul 6 18:51 e6657696-2cfe-48f1-98b0-802e8eb18c1c -> ../../sdb7
      lrwxrwxrwx 1 root root 10 Jul 6 18:45 f1909c33-a679-4c39-967b-2a8a246e5b38 -> ../../sda5

      Then wrote my /etc/fstab to reflect this...

      #/dev/sda3 / ext3 defaults 1 1
      ## /dev/sda1
      UUID=4c56a407-97fd-491c-9032-c5068a8f1f16 /mnt/backup ext3 deafults 1 2
      ## /dev/sda2 (swap)
      ## /dev/sda3
      UUID=4c375f41-e91d-4fe3-aadb-6ac7f312c4db / ext3 defaults 1 1
      ## /dev/sda5
      UUID=f1909c33-a679-4c39-967b-2a8a246e5b38 /mnt/portage ext3 defaults 1 3
      ## /dev/sda6
      UUID=55f82e1f-8fc1-479f-bbae-06611eb40142 /mnt/torrents ext3 defaults 1 4
      ## /dev/sda7
      UUID=3d5fad71-9aea-4ce4-89ee-6017fc479eca /mnt/albums ext3 defaults 1 5
      ## /dev/sdb1
      UUID=aa5f1bb9-573d-40e2-b001-d0d3336e852f /mnt/music ext3 defaults 1 1
      ## /dev/sdb2
      UUID=39f901a5-e345-4198-8af3-648bee321a20 /mnt/video ext3 defaults 1 1
      ## /dev/sdb3
      UUID=3db6ca09-c7f3-4204-bab8-3fdda5a52da9 /mnt/pics ext3 defaults 1 1
      ## /dev/sdb5
      UUID=1a823ba7-2374-4217-92d9-acf0ab26bd94 /mnt/doc ext3 defaults 1 1
      ## /dev/sdb6
      UUID=a0dc2378-713c-4baf-8a68-bdd6da270436 /mnt/work1 ext3 defaults 1 1
      ## /dev/sdb7
      UUID=e6657696-2cfe-48f1-98b0-802e8eb18c1c /mnt/work2 ext3 defaults 1 1
      ## /dev/sdb8
      UUID=282acb86-7e36-4958-bcda-37d2dc82d3e6 /mnt/ref ext3 defaults 1 1

      The above links pointed me to root around in /etc/udev/rules.d and in /etc/udev/rules.d/local.rules I commented out the two following lines so that the block devices weren't automounted..

      # Media automounting
      #SUBSYSTEM=="block", ACTION=="add" RUN+="/etc/udev/scripts/mount.sh"
      #SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh"

      ...and that seems to have worked as the /dev/sda is all mounted fine on reboot (/dev/sdb had to be plugged into the desktop then back into the NSLU2, think I might take the hint of a new USB cable).

      However, I can't seem to mount the file systems via NFS on my desktop. I adjusted the paths in /etc/exports to reflect the mount points drives now have in /etc/fstab and also on the desktop adjusted /etc/fstab to reflect these too, but am told that there is an incorrect mount option specified...

      On the NSLU2...

      # grep portage /etc/fstab
      UUID=f1909c33-a679-4c39-967b-2a8a246e5b38 /mnt/portage ext3 defaults 1 3
      # grep portage /etc/exports
      l# ls /mnt/portage/
      app-accessibility dev-lang games-util net-im skel.metadata.xml
      app-admin dev-libs gnome-base net-irc sys-apps
      app-antivirus dev-lisp gnome-extra net-libs sys-auth
      app-arch dev-ml gnustep-apps net-mail sys-block
      app-backup dev-perl gnustep-base net-misc sys-boot
      app-benchmarks dev-php gnustep-libs net-nds sys-cluster
      app-cdr dev-php5 gpe-base net-news sys-devel
      app-crypt dev-python gpe-utils net-nntp sys-freebsd
      app-dicts dev-ruby header.txt net-p2p sys-fs
      app-doc dev-scheme java-virtuals net-print sys-kernel
      app-editors dev-tcltk kde-base net-proxy sys-libs
      app-emacs dev-tex kde-misc net-voip sys-power
      app-emulation dev-texlive licenses net-wireless sys-process
      app-forensics dev-tinyos local net-zope virtual
      app-i18n dev-util lxde-base perl-core www-apache
      app-laptop distfiles mail-client profiles www-apps
      app-misc eclass mail-filter rox-base www-client
      app-mobilephone games-action mail-mta rox-extra www-misc
      app-office games-arcade media-fonts sci-astronomy www-plugins
      app-pda games-board media-gfx sci-biology www-servers
      app-portage games-emulation media-libs sci-calculators x11-apps
      app-shells games-engines media-plugins sci-chemistry x11-base
      app-text games-fps media-radio sci-electronics x11-drivers
      app-vim games-kids media-sound sci-geosciences x11-libs
      app-xemacs games-misc media-tv sci-libs x11-misc
      dev-ada games-mud media-video sci-mathematics x11-plugins
      dev-cpp games-puzzle metadata sci-misc x11-proto
      dev-db games-roguelike net-analyzer sci-physics x11-terms
      dev-dotnet games-rpg net-dialup sci-visualization x11-themes
      dev-embedded games-server net-dns scripts x11-wm
      dev-games games-simulation net-firewall sec-policy xfce-base
      dev-haskell games-sports net-fs skel.ChangeLog xfce-extra
      dev-java games-strategy net-ftp skel.ebuild

      On the desktop (running Gentoo, hence mounting portage which will be synced nightly on the NSLU2)...

      # grep portage /etc/fstab
      slug:/mnt/portage /usr/portage nfs auto,rw,users 0 0
      # mount /usr/portage
      mount.nfs: an incorrect mount option was specified

      Ditto for all the other drives. I realise this may be a problem on the desktop (client) side of things, but beyond changing the paths in /etc/fstab on the desktop nothings changed, and I've been pretty careful that I've not made typos and have the paths correct (checked three times now).

      Can anyone see what I've done wrong or might have problems with. I can provide more verbose output but I'm stumped at the moment.

      Oh and one final question, how do I specify the swap partition when I'm using UUID, it only seems to be provided for formatted partitions and not partitions formatted for swap? I guess I could put the device (/dev/sda2) in there, but that kind of defeats the object of using UUID's and may not be correct if for some strange reason things get assigned devices in a different order.

      Thanks in advance,

    • Show all 9 messages in this topic