Boot confusion
Jack McGee
jack at greendesk.net
Mon Jun 7 19:40:30 UTC 2021
On 6/7/21 2:19 PM, Liam Proven wrote:
> On Mon, 7 Jun 2021 at 20:32, Jack McGee <jack at greendesk.net> wrote:
>>
>> The 250 gig SSD is
>>
>>
>> jack at Desktop:~$ sudo blkid -p /dev/sda
>> [sudo] password for jack:
>> /dev/sda: PTUUID="562dd49d-ae00-454e-bf2d-b86cd24573e2" PTTYPE="gpt"
>> jack at Desktop:~$
> OK. That tells us that /dev/sda is GUID
> 562dd49d-ae00-454e-bf2d-b86cd24573e2 and that it is partitioned with
> the GUID partition table, but it does not tell us for sure that it is
> the SSD.
>
> The command:
>
> sudo sfdisk -l
>
> ... should list all partitions on all drives, and the command
> jack at Desktop:~$ sudo sfdisk -l
> [sudo] password for jack:
> Disk /dev/loop0: 9.9 MiB, 9531392 bytes, 18616 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop1: 138.93 MiB, 145657856 bytes, 284488 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop2: 141.4 MiB, 148254720 bytes, 289560 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop3: 99.18 MiB, 103993344 bytes, 203112 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop4: 55.46 MiB, 58142720 bytes, 113560 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop5: 9.9 MiB, 9531392 bytes, 18616 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop6: 55.43 MiB, 58114048 bytes, 113504 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop7: 98.99 MiB, 103772160 bytes, 202680 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/sda: 232.91 GiB, 250059350016 bytes, 488397168 sectors
> Disk model: Samsung SSD 860
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: 562DD49D-AE00-454E-BF2D-B86CD24573E2
>
> Device Start End Sectors Size Type
> /dev/sda1 2048 488396799 488394752 232.9G Linux filesystem
>
>
> Disk /dev/sdb: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
> Disk model: ST2000DM006-2DM1
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 4096 bytes
> I/O size (minimum/optimal): 4096 bytes / 4096 bytes
> Disklabel type: dos
> Disk identifier: 0x7f580c0a
>
> Device Boot Start End Sectors Size Id Type
> /dev/sdb1 2048 2875574271 2875572224 1.3T 83 Linux
>
>
> Disk /dev/sde: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
> Disk model: Samsung SSD 870
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x2caa4d63
>
> Device Boot Start End Sectors Size Id Type
> /dev/sde1 2048 1953523711 1953521664 931.5G 83 Linux
>
>
> Disk /dev/sdc: 12.75 TiB, 14000519643136 bytes, 27344764928 sectors
> Disk model: ST14000NM001G-2K
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 4096 bytes
> I/O size (minimum/optimal): 4096 bytes / 4096 bytes
> Disklabel type: gpt
> Disk identifier: FFABDDFA-5602-417A-AD0F-C61D2DC3D249
>
> Device Start End Sectors Size Type
> /dev/sdc1 6398676992 27344762879 20946085888 9.8T Linux filesystem
> /dev/sdc2 2048 3250528255 3250526208 1.5T Linux filesystem
> /dev/sdc3 3250528256 6398676991 3148148736 1.5T Linux swap
>
> Partition table entries are not in disk order.
>
>
> Disk /dev/sdd: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
> Disk model: SAMSUNG HD103SI
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x1d1810dd
>
> Device Boot Start End Sectors Size Id Type
> /dev/sdd1 * 63 1376528246 1376528184 656.4G 7 HPFS/NTFS/exFAT
> /dev/sdd2 1376528382 1953523711 576995330 275.1G 5 Extended
> /dev/sdd5 1718511616 1943887871 225376256 107.5G 83 Linux
> /dev/sdd6 1943889920 1953523711 9633792 4.6G 82 Linux swap
> / Solaris
> /dev/sdd7 1376528384 1704552447 328024064 156.4G 83 Linux
> /dev/sdd8 1704554496 1718505471 13950976 6.7G 82 Linux swap
> / Solaris
>
> Partition table entries are not in disk order.
>
>
>
>
> Disk /dev/loop8: 218.102 MiB, 229629952 bytes, 448496 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop9: 65.1 MiB, 68259840 bytes, 133320 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop10: 295.32 MiB, 309661696 bytes, 604808 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop11: 64.79 MiB, 67915776 bytes, 132648 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop12: 2.17 MiB, 2273280 bytes, 4440 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop13: 140.68 MiB, 147492864 bytes, 288072 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop14: 162.89 MiB, 170778624 bytes, 333552 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop15: 161.42 MiB, 169254912 bytes, 330576 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop16: 51.2 MiB, 53501952 bytes, 104496 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop17: 217.92 MiB, 228478976 bytes, 446248 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop18: 2.24 MiB, 2342912 bytes, 4576 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop19: 51.4 MiB, 53522432 bytes, 104536 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop20: 295.62 MiB, 309968896 bytes, 605408 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop21: 84 KiB, 86016 bytes, 168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/loop22: 140.67 MiB, 147488768 bytes, 288064 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
>
>
> Disk /dev/sdf: 29.74 GiB, 31914983424 bytes, 62333952 sectors
> Disk model:
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0xeecfcdba
>
> Device Boot Start End Sectors Size Id Type
> /dev/sdf1 8192 532479 524288 256M c W95 FAT32 (LBA)
> /dev/sdf2 532480 14360575 13828096 6.6G 83 Linux
> sudo mount
> jack at Desktop:~$ sudo mount
> sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
> proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
> udev on /dev type devtmpfs
> (rw,nosuid,noexec,relatime,size=1852960k,nr_inodes=463240,mode=755)
> devpts on /dev/pts type devpts
> (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> tmpfs on /run type tmpfs
> (rw,nosuid,nodev,noexec,relatime,size=382948k,mode=755)
> /dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)
> securityfs on /sys/kernel/security type securityfs
> (rw,nosuid,nodev,noexec,relatime)
> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
> tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
> tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
> cgroup2 on /sys/fs/cgroup/unified type cgroup2
> (rw,nosuid,nodev,noexec,relatime,nsdelegate)
> cgroup on /sys/fs/cgroup/systemd type cgroup
> (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
> pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
> none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
> cgroup on /sys/fs/cgroup/cpuset type cgroup
> (rw,nosuid,nodev,noexec,relatime,cpuset)
> cgroup on /sys/fs/cgroup/hugetlb type cgroup
> (rw,nosuid,nodev,noexec,relatime,hugetlb)
> cgroup on /sys/fs/cgroup/blkio type cgroup
> (rw,nosuid,nodev,noexec,relatime,blkio)
> cgroup on /sys/fs/cgroup/perf_event type cgroup
> (rw,nosuid,nodev,noexec,relatime,perf_event)
> cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup
> (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
> cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup
> (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
> cgroup on /sys/fs/cgroup/memory type cgroup
> (rw,nosuid,nodev,noexec,relatime,memory)
> cgroup on /sys/fs/cgroup/rdma type cgroup
> (rw,nosuid,nodev,noexec,relatime,rdma)
> cgroup on /sys/fs/cgroup/freezer type cgroup
> (rw,nosuid,nodev,noexec,relatime,freezer)
> cgroup on /sys/fs/cgroup/pids type cgroup
> (rw,nosuid,nodev,noexec,relatime,pids)
> cgroup on /sys/fs/cgroup/devices type cgroup
> (rw,nosuid,nodev,noexec,relatime,devices)
> systemd-1 on /proc/sys/fs/binfmt_misc type autofs
> (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14960)
> hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
> mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
> debugfs on /sys/kernel/debug type debugfs
> (rw,nosuid,nodev,noexec,relatime)
> tracefs on /sys/kernel/tracing type tracefs
> (rw,nosuid,nodev,noexec,relatime)
> sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
> /var/lib/snapd/snaps/chromium_1608.snap on /snap/chromium/1608 type
> squashfs (ro,nodev,relatime,x-gdu.hide)
> fusectl on /sys/fs/fuse/connections type fusectl
> (rw,nosuid,nodev,noexec,relatime)
> configfs on /sys/kernel/config type configfs
> (rw,nosuid,nodev,noexec,relatime)
> /var/lib/snapd/snaps/canonical-livepatch_99.snap on
> /snap/canonical-livepatch/99 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/core_11167.snap on /snap/core/11167 type squashfs
> (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/canonical-livepatch_98.snap on
> /snap/canonical-livepatch/98 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/core18_1997.snap on /snap/core18/1997 type
> squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/chromium_1589.snap on /snap/chromium/1589 type
> squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/core18_2066.snap on /snap/core18/2066 type
> squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/core_11081.snap on /snap/core/11081 type squashfs
> (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/gtk-common-themes_1515.snap on
> /snap/gtk-common-themes/1515 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/gnome-3-34-1804_66.snap on
> /snap/gnome-3-34-1804/66 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/vlc_2103.snap on /snap/vlc/2103 type squashfs
> (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/gnome-system-monitor_148.snap on
> /snap/gnome-system-monitor/148 type squashfs
> (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/gnome-3-26-1604_102.snap on
> /snap/gnome-3-26-1604/102 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/gtk-common-themes_1514.snap on
> /snap/gtk-common-themes/1514 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/gnome-3-28-1804_145.snap on
> /snap/gnome-3-28-1804/145 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/gnome-3-28-1804_128.snap on
> /snap/gnome-3-28-1804/128 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/snap-store_498.snap on /snap/snap-store/498 type
> squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/gnome-3-34-1804_60.snap on
> /snap/gnome-3-34-1804/60 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/gnome-system-monitor_157.snap on
> /snap/gnome-system-monitor/157 type squashfs
> (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/snap-store_518.snap on /snap/snap-store/518 type
> squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/vlc_2288.snap on /snap/vlc/2288 type squashfs
> (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/ncdu-kz6fittycent_18.snap on
> /snap/ncdu-kz6fittycent/18 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /var/lib/snapd/snaps/gnome-3-26-1604_100.snap on
> /snap/gnome-3-26-1604/100 type squashfs (ro,nodev,relatime,x-gdu.hide)
> /dev/sdc2 on /mnt/sdb2 type ext4 (rw,relatime)
> /dev/sdc1 on /home type ext4 (rw,relatime)
> /dev/sdd7 on /mnt/sda7 type ext4 (rw,relatime)
> /dev/sdd5 on /mnt/sda5 type ext4 (rw,relatime)
> tmpfs on /run/snapd/ns type tmpfs
> (rw,nosuid,nodev,noexec,relatime,size=382948k,mode=755)
> nsfs on /run/snapd/ns/canonical-livepatch.mnt type nsfs (rw)
> 192.168.1.105:/mnt/media4 on /mnt/media4 type nfs4
> (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.31,local_lock=none,addr=192.168.1.105)
> 192.168.1.105:/mnt/media7 on /mnt/media7 type nfs4
> (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.31,local_lock=none,addr=192.168.1.105)
> 192.168.1.105:/mnt/media1 on /mnt/media1 type nfs4
> (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.31,local_lock=none,addr=192.168.1.105)
> 192.168.1.105:/mnt/media3 on /mnt/media3 type nfs4
> (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.31,local_lock=none,addr=192.168.1.105)
> 192.168.1.105:/mnt/media5 on /mnt/media5 type nfs4
> (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.31,local_lock=none,addr=192.168.1.105)
> 192.168.1.105:/mnt/media6 on /mnt/media6 type nfs4
> (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.31,local_lock=none,addr=192.168.1.105)
> tmpfs on /run/user/1000 type tmpfs
> (rw,nosuid,nodev,relatime,size=382944k,mode=700,uid=1000,gid=1000)
> gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse
> (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
> pcloud on /tmp/.mount_pcloudv7BCVv type fuse.pcloud
> (ro,nosuid,nodev,relatime,user_id=1000,group_id=1000)
> pCloud.fs on /home/jack/pCloudDrive type fuse
> (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
> /dev/fuse on /run/user/1000/doc type fuse
> (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
>
> ... should tell us what is mounted where.
>
> If the boot drive is GPT, then I think you need a very small partition
> of type "GRUB BIOS boot":
>
> https://en.wikipedia.org/wiki/BIOS_boot_partition
>
> ... but I have never tried booting a BIOS machine from a GPT drive so
> I am just trying to remember what I've read. This does make it a
> little bit more complicated and if anyone else on the list would like
> to confirm that for me, I would appreciate it.
>
> As I understand it, this is how it works.
>
> With the traditional legacy boot process, and traditional
> DOS-partitioned MBR disks, there is enough space in the Master Boot
> Record for GRUB to fit. The rest of GRUB goes in the boot partition
> (if you have a separate one) or the /boot directory in the / (root)
> partition.
>
> But with disks partitioned with GPT, like yours, there isn't room for
> GRUB in the boot record. So GRUB needs a separate, unformatted, 1 MB
> (yes, just one meg) partition, with the "bios_boot" flag set. GParted
> from a bootable USB key can do this. You could take 1MB off the end of
> your root partition, make a new partition and use the GParted "manage
> flags" command to set (enable, tick) the "bios_grub" flag.
>
> https://help.ubuntu.com/community/Grub2/Installing
>
> When you do a BIOS-type, legacy, boot, when you install GRUB, it will
> recognise a GPT disk and automatically put part of itself in this tiny
> 1MB bios-grub partition.
>
> That, AIUI, is it.
>
>> does grub need to go in it's own partition?
> On MBR disks, no. On GPT disks, yes.
>
> But do make sure that you know how to change the boot device in your
> firmware settings first!
>
> A few years ago I used a notebook with 2 hard disk bays. It shipped
> with bay 2 empty and a plastic cover over the empty bay. The cover had
> internal supporting legs meaning that you couldn't fit a disk in the
> bay with that cover, and if you fitted one, you needed a cradle (a
> tray) to hold the disk and a different cover.
>
> I didn't have these and it was already an old machine when it was given to me.
>
> So when I tried to fit a disk, I had to saw the supporting legs off.
> There was no way to screw the disk into place, as I didn't have a
> mounting tray.
>
> I installed an SSD in the 1st bay and a 1TB HDD in the 2nd bay.
>
> Problem! The HDD was not held securely, and if I pressed on the cover
> it made a terrifying drilling/grinding noise. I did not want to
> destroy my new 1TB disk, so I swapped the SSD and HDD around. HDD in
> bay 0, so device /dev/sda, and SDD in bay 1, so device /dev/sdb. The
> SSD was very light and had no moving parts, so it was held in place by
> just the SATA and power connectors, and pressing on the cover didn't
> make any noises at all.
>
> But I wanted to boot from the SDD.
>
> So, I put / on sdb (/dev/sdb1) and /home on sda (/dev/sda1). I
> installed GRUB to /dev/sdb.
>
> In the BIOS, I set the bootable hard disk to the 2nd drive (disk 1).
>
> GRUB loaded from /dev/sdb and loaded the OS from /dev/sdb1 and then
> mounted /home from /dev/sda1.
>
> Why I am telling you this is that you will need to change your
> firmware to check your SSD first instead of the HDD, which from what
> you've told us, is what it is currently booting from.
>
More information about the ubuntu-users
mailing list