Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Change device ordering when booting from usb (3 replies)

$
0
0
physical drive "dev" ordering when booting from usb versus sata drive.

If I boot from the left sata drive with a matching drive in the right drive bay the left drive is /dev/sda and the right drive bay is /dev/sdb and a attached usb drive is /dev/sdc which is fine.

If I boot from usb the order changes where the left drive is /dev/sda and the right drive is /dev/sdc and the usb drive plugged in the the rear usb that its booting debian from is /dev/sdb.

Is there anyway I can change the order when booting from usb? or does it matter which port I plug the usb drive into? I would like to have the usb drive be /dev/sda and left bay be /dev/sdb and right bay be /dev/sdc. I ordered a new low profile flash drive to put the boot and rootfs on and raid1 the left and right sata drives. I know it might not really matter as long as I keep track of which drive is which I would just hate to have a rouge usb drive plugged into the front usb port and have it rebooted and change device numbers and affect other misc scripts I have run at boot or something.

Hopefully I asked that correctly. :)

Thanks,

~SOL

Viewing all articles
Browse latest Browse all 3247

Trending Articles