LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 06-04-2024, 08:10 AM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,384

Rep: Reputation: Disabled
I want to reverse which hard drives are labeled sda/sdb


Even though I went into the bios and made sure that my main hard drive was the one the computer would boot from, Linux has labeled that drive and its partitions sdb. My backup hard drive is sda. How can I reverse that?
 
Old 06-04-2024, 08:18 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,487

Rep: Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557
Switch the drive cables over.
 
Old 06-04-2024, 08:24 AM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,384

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
Switch the drive cables over.
Simpler than I supposed. OK, trying that.

Edit: Yeah, that worked. Thank you. I thought I would have to enter some commands or change a configuration file.

Last edited by newbiesforever; 06-04-2024 at 08:35 AM.
 
Old 06-05-2024, 08:18 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,706
Blog Entries: 4

Rep: Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949
During the power-up "device discovery" process, the system detects attached devices and creates entries for them in this [virtual ...] file system. The one that's discovered first, whatever it may be, is "a." And so on. Generally, it doesn't matter.
 
Old 06-05-2024, 08:40 AM   #5
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,384

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
During the power-up "device discovery" process, the system detects attached devices and creates entries for them in this [virtual ...] file system. The one that's discovered first, whatever it may be, is "a." And so on. Generally, it doesn't matter.
No, except that one gets too used to the main hard drive being "a" and the backup being "b." Having that order scrambled without realizing it is begging to make a disastrous mistake when backing up.
 
Old 06-05-2024, 10:36 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,820

Rep: Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960
I assume internal drives. Using UUIDs and or labels in the fstab should prevent any mistakes. Also using noauto will keep the backup drive from being automatically mounted.
 
Old 06-05-2024, 12:23 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,706
Blog Entries: 4

Rep: Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949Reputation: 3949
These days, "UUIDs are the norm." Devices can be and are "uniquely identified." No matter where they might be mounted.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware14.2 on sda, Slackware -current on sdb: LILO in mbr(sda) and sdb2. How to remove lilo from sdb2 san2ban Slackware 11 07-04-2020 12:30 PM
Using 2 Hard Drives (sda -- sdb) smbelow Debian 6 10-31-2015 07:06 AM
[SOLVED] sda drive to sdb, so new hdd can become sda? irgunII Slackware 5 03-07-2014 08:38 AM
Can i dd if=/dev/sdb of=/dev/sdc if hdsize(sdb)>hdsize(sdc) & size(sdb)<hdsize(sdc) ? ununun Linux - Software 6 06-28-2011 11:48 AM
[SOLVED] Grub: If exists sdb, then boot sdb, else sda defaultyeti Linux - Desktop 6 06-28-2011 02:38 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration