Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #168794

Re: Advice sought re HDD --> SSD migration

From Jonathan Dowland <jmtd@debian.org>
Newsgroups linux.debian.user
Subject Re: Advice sought re HDD --> SSD migration
Date 2016-06-10 12:20 +0200
Message-ID <rIrHI-3il-29@gated-at.bofh.it> (permalink)
References <rGhMu-8gX-9@gated-at.bofh.it> <rGqwp-5HN-3@gated-at.bofh.it> <rGEJ3-6hV-3@gated-at.bofh.it> <rGOIr-4dq-63@gated-at.bofh.it> <rI8Yq-7uB-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jun 09, 2016 at 02:13:58PM +0000, Mark Fletcher wrote:
> Apart from fixing that, what's left to do is to disconnect and remove the
> 500GB hard disk, move the SSD to the hard disk's SATA port so it is
> /dev/sda

Where do you depend upon it being /dev/sda? I'd strongly recommend using
filesystem labels (change an existing ext2,3,4 filesystem label with e2label,
other FS have similar tools) and UUIDs for identifying drives/partitions in
config files. In /etc/fstab, you can use LABEL=foo or UUID=xxxxx where you
would normally use a path to the device; elsewhere (e.g. systemd units) you can
use a path such as /dev/disk/by-label/foo or /dev/disk/by-uuid/xxxxx.

Try to use non-ambiguous labels. If there's any chance of you mixing drives
from this machine and another, I would put e.g. the hostname into the label
(so your /boot is somehostname_boot and should you put this drive in another
machine to read it in the future, it won't clash with that machine's boot
partition label. Assuming you use different hostnames :))

> modify grub.cfg to reflect the move and to remove the hard-disk
> boot menu items which grub-mkconfig, trying to be helpful, generated.

Unless you have customized your grub config, they should automatically disappear
after you've removed those drives and re-ran update-grub2. It should also be
working off UUIDs rather than device names like /dev/sda too, mind...

> But I'm basically there apart from my question above about the permissions
> of /media.

mine is just

drwxr-xr-x 5 root root 4096 May  5 17:09 /media

-- 
Jonathan Dowland
Please do not CC me, I am subscribed to the list.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Advice sought re HDD --> SSD migration Mark Fletcher <mark27q1@gmail.com> - 2016-06-04 13:20 +0200
  Re: Advice sought re HDD --> SSD migration Dan Purgert <dan@djph.net> - 2016-06-04 14:40 +0200
    Re: Advice sought re HDD --> SSD migration Stefan Monnier <monnier@iro.umontreal.ca> - 2016-06-04 21:00 +0200
  Re: Advice sought re HDD --> SSD migration David Christensen <dpchrist@holgerdanske.com> - 2016-06-04 22:40 +0200
    Re: Advice sought re HDD --> SSD migration Mark Fletcher <mark27q1@gmail.com> - 2016-06-05 13:50 +0200
      Re: Advice sought re HDD --> SSD migration Felix Miata <mrmazda@earthlink.net> - 2016-06-05 14:40 +0200
        Re: Advice sought re HDD --> SSD migration Mark Fletcher <mark27q1@gmail.com> - 2016-06-05 15:20 +0200
          Re: Advice sought re HDD --> SSD migration <tomas@tuxteam.de> - 2016-06-05 15:50 +0200
        Re: Advice sought re HDD --> SSD migration David Wright <deblis@lionunicorn.co.uk> - 2016-06-05 16:10 +0200
          Re: Advice sought re HDD --> SSD migration Mark Fletcher <mark27q1@gmail.com> - 2016-06-05 17:00 +0200
      Re: Advice sought re HDD --> SSD migration David Christensen <dpchrist@holgerdanske.com> - 2016-06-06 00:30 +0200
        Re: Advice sought re HDD --> SSD migration Mark Fletcher <mark27q1@gmail.com> - 2016-06-09 16:20 +0200
          Re: Advice sought re HDD --> SSD migration David Wright <deblis@lionunicorn.co.uk> - 2016-06-09 20:40 +0200
          Re: Advice sought re HDD --> SSD migration Jonathan Dowland <jmtd@debian.org> - 2016-06-10 12:20 +0200
            Re: Advice sought re HDD --> SSD migration Mark Fletcher <mark27q1@gmail.com> - 2016-06-10 16:30 +0200
  Re: Advice sought re HDD --> SSD migration Jonathan Dowland <jmtd@debian.org> - 2016-06-10 12:30 +0200

csiph-web