LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2014, 01:26 PM   #1
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Rep: Reputation: 72
sda drive to sdb, so new hdd can become sda?


I just got a new hdd (supposed to be nice and fast, the new WD FZEX model), 1TB.

My current setup is like this:

sda Slackware 14.1 on 160GB hdd of maybe 4 years of age. Just barely noisy but still halfway decent, running exactly how I like it.

sdb is a little older than sda, noisy, maybe 6 or 7 years old, and is unpartitioned and not being used atm. Thinking of using as storage perhaps(?).

1) Is there an easy way to put the new hdd in as sda, and make the current sda into sdb and the current sdb into an sdc?

2) Is there some kind of setup with three hdd's that folks would recommend to use them in a practical way, like some kind of RAID or something?

I don't see it being practical to clone my /home partition to the new hdd as it uses only 123GB on the current sda and would be wasted on the new hdd...unless I'm missing some way of making that work for me.

I guess for the most part, just looking for some possible answers to #1, and some suggestions for simply using all three in some way. I mainly do a *lot* of music ripping and saving to my hdd's because then I don't have to piddle with the CD swapping all the time or having to borrow the CD again to listen to it. At present I've got about 4GB of music (I always rip to ogg format when possible and use pacpl to change non-free formats to ogg) and it's constantly growing. I also rip movies for similar reasons and those tend to use up space a good deal faster, even if I do tend to average the rips to <1GB each...but with 360+ movies all burnt to Bluray discs (which hold 25GB each), it'd still be faster and easier (no startup wait for the dvd drive or digging through all the numbered BD's looking for the movie I want to watch) to watch a movie if I could store them on a hdd.
 
Old 03-06-2014, 03:10 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Not sure what you're asking.
1) Why does it matter what the disks are called ?. Stick in the new drive and see what happens - the first drive the BIOS presents to the OS will (generally) wind up as /dev/sda. Depending on how your fstab is setup, your current system may continue to boot - or not.
If you plan on cloning your system to the new disk (implied, not stated above), simply change the boot order after having done so, and the new drive will likely be /dev/sda. Re-build your bootloader on the new disk. If you leave /home on the original disk fstab will need updating to reflect that.

2) setting up RAID will erase current content - but can be built on partitions rather than full devices, so you can set that up later if you wish once you've re-arranged things. Not sure I'd bother - and you still need backups of important stuff regardless.
 
Old 03-06-2014, 04:01 PM   #3
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by irgunII View Post
1) Is there an easy way to put the new hdd in as sda, and make the current sda into sdb and the current sdb into an sdc?
Short answer: Forget it. Whether it is sda or sdb makes no difference.

Long answer: Keeping the order might be possible but that depends on many details such as interface type (IDE/SATA/SCSI), disk start up time, and the firmware of motherboard.
 
Old 03-06-2014, 09:15 PM   #4
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Greetz
If I understand what you're asking.....

Old style IDE interface will assign /dev/hda or /dev/sda (depending on kernel) to Primary Master, "b" to Primary Slave, "C" to Secondary Master and so on. The only change to this was a certain few BIOSes with a "Boot Order" selection.

On newer systems with SCSI based drive controllers like SAS and SATA, while which one is marked A0 may default to "/dev/sda" this is actually meant to be overridden by Boot Order, whether BIOS driven or UEFI driven.

Example - Regardless of which arbitrary controller port the drives are connected to, Linux will see the first HARD drive as /dev/sda. So, for illustration's sake, let's say you have a Seagate 1TB SATA drive on one controller port and a WesternDigital 2TB drive on another. For Linux Distro "A" you select the Seagate 1TB as first in Boot Order within the settings in BIOS or UEFI. It will see itself as "/dev/sdax" the x being the number of the partition on that drive.

Then, without changing the "permanent" Boot Order setting in BIOS/UEFI, for the next install you hit F6, F11, (or whatever your mobo has for Boot Order override) and select the Western Digital as first boot. This install will ALSO see itself as "/dev/sdax" with "x" being whatever partition number you have installed to there.

Now, as the system will default to the "permanent" Boot Order, the Seagate will be the default "/dev/sda" and will boot that system and NOT the WesternDigital, which will become "/dev/sdb" to that system. Activating with the F6/F11 whatever will boot the second system on the WD 2TB drive and the Seagate will be seen as "/dev/sdb" to it FOR THAT SESSION, and any done in that manner.

Upon reboot it will default back to the Seagate 1TB as first boot, therefore "/dev/sda", with the WD being back to "/dev/sdb".

This can be either creatively used or terribly confusing which is why some resort to LABEL or UUID as opposed to "/dev" in fstab. Bottom Line - ever since old IDE interface we as users have had easier control of how drives are seen and labelled.
 
Old 03-07-2014, 02:35 AM   #5
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 265
Blog Entries: 2

Rep: Reputation: 34
Quote:
...running exactly how I like it
So why change it?

Quote:
1) Is there an easy way to put the new hdd in as sda
You may be able to plug it in and it will just work that way. You may have to do some BIOS tweaks to get it to work that way. You may have to become familiar with GRUB and UUID. (You should learn about UUID, anyway)

Quote:
2) Is there some kind of setup with three hdd's
Not really with your configuration. If are looking to learn RAID there are better ways to do so. But for what you have, I think it would be more trouble what it's worth.

If it were my system... I would leave the 160GB drive as is. I would partition out the new 1GB drive with a single partition and use it to store my videos and music on. The old drive, I would put in to service as a backup storage drive.

-JJ
 
Old 03-07-2014, 08:38 AM   #6
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Original Poster
Rep: Reputation: 72
Sounds good. Great advice and suggestions. I'll go from here now that I have a bit more knowledge and see things in a few other pov's.

Thank you everyone!
 
  


Reply



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
cant boot sdb2 (win7); sdb is usb 3.0 externel drive; grub is on sda; ununun Linux - General 11 01-02-2012 01:27 PM
Linux HDD serial number from logical drive names sda sdb etc Avirup Linux - Software 3 08-19-2011 04:27 PM
FC6 drive/partitions reconfig question sda sdb swap CaptainInsane Fedora 6 02-02-2007 03:00 PM
cannot find sda or sdb for mounting pen drive in RH9 sakal_woman Linux - Hardware 3 11-20-2006 09:41 PM
zip drive alternately mounts on /sda and /sdb timsch75 Linux - Hardware 6 09-26-2004 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:17 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