Revision: 67763
                            
                                                            
                                    
                                        
Updated Code
                                    
                                    
                                                    
                        at October 28, 2014 22:42 by blackthorne
                            
                            Updated Code
(make sure both devices are unmounted) # cat /proc/partitions # cd /dev # rm sda,sdb # mknod /dev/sda b # fill with major and minor devices obtained from /proc/partitions for sdb # mknod /dev/sdb b 8 0 # verify these major, minor values for sda in /proc/partitions # partprobe /dev/sda # hdparm -z /dev/sda # sfdisk -R /dev/sda # blockdev --rereadpt /dev/sda (repeat the last 4 commands for sdb) Alternatively and to make it permanent: create the file /etc/udev/rules.d/10-local.rules with the following content: KERNEL=="sda", NAME="sdb" KERNEL=="sdb", NAME="sda" (end of file) and then: # service udev restart # udevadm control --reload-rules # udevadm trigger
                            Revision: 67762
                            
                                                            
                                    
                                        
Updated Code
                                    
                                    
                                                    
                        at October 28, 2014 22:39 by blackthorne
                            
                            Updated Code
(make sure both devices are unmounted) cat /proc/partitions cd /dev rm sda,sdb mknod /dev/sda b # fill with major and minor devices obtained from /proc/partitions for sdb mknod /dev/sdb b 8 0 # verify these major, minor values for sda in /proc/partitions partprobe /dev/sda hdparm -z /dev/sda sfdisk -R /dev/sda blockdev --rereadpt /dev/sda (repeat the last 4 commands for sdb) Alternatively and to make it permanent: create the file /etc/udev/rules.d/10-local.rules with the following content: KERNEL=="sda", NAME="sdb" KERNEL=="sdb", NAME="sda" (end of file) and then service udev restart udevadm control --reload-rules udevadm trigger
                            Revision: 67761
                            
                                                            
                                    
                                        
Updated Code
                                    
                                    
                                                    
                        at October 27, 2014 23:15 by blackthorne
                            
                            Updated Code
(make sure both devices are unmounted) cat /proc/partitions cd /dev rm sda,sdb mknod /dev/sda b # fill with major and minor devices obtained from /proc/partitions for sdb mknod /dev/sdb b 8 0 # verify these major, minor values for sda in /proc/partitions partprobe /dev/sda hdparm -z /dev/sda sfdisk -R /dev/sda blockdev --rereadpt /dev/sda (repeat the last 4 commands for sdb)
                            Revision: 67760
                            
                                                            
                                    
                                        
Initial Code
                                    
                                    
                                                            
                                    
                                        
Initial URL
                                    
                                    
                                
                                                            
                                    
                                        
Initial Description
                                    
                                    
                                                            
                                    
                                        
Initial Title
                                    
                                    
                                                            
                                    
                                        
Initial Tags
                                    
                                    
                                                            
                                    
                                        
Initial Language
                                    
                                    
                                                    
                        at October 27, 2014 23:13 by blackthorne
                            
                            Initial Code
(make sure both devices are unmounted) cat /proc/partitions cd /dev rm sda,sdb mknod /dev/sda b # fill with major and minor devices obtained from /proc/partitions for sdb mknod /dev/sdb b 8 0 # verify these major, minor values for sda in /proc/partitions partprobe /dev/sda hdparm -z /dev/sda sfdisk -R /dev/sda blockdev --rereadpt /dev/sda (repeaat the last 4 commands for sdb)
Initial URL
Initial Description
this can obviously be easily adapted to any other device names. Some commands in here are redundant but all together are more likely to work.
Initial Title
Replace /dev/sda with /dev/sdb device name assignment
Initial Tags
linux
Initial Language
Bash