![]() |
|
Does /dev/SDC change to /dev/SDA at boot? - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Computers (https://sinister.ly/Forum-Computers) +--- Forum: Operating Systems (https://sinister.ly/Forum-Operating-Systems) +--- Thread: Does /dev/SDC change to /dev/SDA at boot? (/Thread-Does-dev-SDC-change-to-dev-SDA-at-boot) |
Does /dev/SDC change to /dev/SDA at boot? - ring-1 - 05-10-2015 I apologize if that's a misleading title. I have an external HDD @ /dev/SDC. I have a internal ssd at /dev/SDA. I have a bootloader installed on /dev/sdc1, and a base gentoo system installed on /dev/sdc2. I read up somewhere that upon boot, /dev/SDC would change to /dev/SDA, but I don't see how this could at all be possible. Would I have to edit the fstab file to read /dev/sdc1 and /dev/sdc2 as boot and root partitions, or should I in fact change those to /dev/sda1 and /dev/sda2? Thanks. RE: Does /dev/SDC change to /dev/SDA at boot? - roger_smith - 05-10-2015 it SHOULDN'T change, but it could depending on how the disks are initialized during boot. The best thing to do is to use the UUID in fstab. You can get the UUID by running blkid command on the partition. Example, you wan't the UUID of /dev/sda1" blkid /dev/sda1 "blahblahblahidoutputyouusemeinyourfstabgunit" Then you use the UUID in fstab where you would normally put /dev/path/ The UUID will NOT change across reboots, and will alleviate the issue you mentioned. Good Luck RE: Does /dev/SDC change to /dev/SDA at boot? - ring-1 - 05-11-2015 (05-10-2015, 11:26 PM)roger_smith Wrote: it SHOULDN'T change, but it could depending on how the disks are initialized during boot. The best thing to do is to use the UUID in fstab. You can get the UUID by running blkid command on the partition. thanks in the end, i didn't resolve my issue, but what i did do is use the external hdd for loading the system, and use the ssd for the root fs. i then added my other internal hdd into my fstab file so that it would be mounted into my home dir, then set up steam and virtualbox for games and windows stuff in that device so external drive for boot > ssd for root fs > internal hdd for gay vidya but thanks for helping me i did also look into using UUID too, but essentially my whole problem was that the root partition on my external hdd (/dev/sdc2) wasn't being identified as my root partition for some odd reason, i spent a few hours trying to find a solution, but alas, i gave up i know also that i could just put my boot partition in /dev/sda (my ssd) instead of having to use an external hdd to boot, i'll mend that some other day |