APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS









Linux Skills Test

Copyright 2004 A.P. Lawrence


Answer

Maybe

If you have IDE drives, you won't need to adjust fstab for other drives.

If you have SCSI drives, it depends upon which drive you removed and how you identified it in fstab. Linux assigns /dev/sda to the first SCSI drive it sees, sdb to the second, and so on. If you remove the drive that was sdb, the drive that was sdc will now become sdb, and you will need to edit fstab if you reference /dev/sdb there. If you used labels instead of device names, no change is necessary.

See "man fstab"

Comments /Tests/Linux/e0836.html


Tue Mar 23 17:25:01 2010 fstab variance  anonymous



Other drivers (FC) may also change if you remove a device.


Tue Apr 13 17:51:30 2010   anonymous



Just for the reason of changing device names when adding/deleting disk
drives, current recommended practice is to use and refer to disk labels
within fstab.


Tue Apr 13 19:56:37 2010   TonyLawrence



Yes, that's why the last sentence was " If you used labels instead of device
names, no change is necessary."


Thu May 12 22:25:46 2011   anonymous



Nowadays most distros use UUIDs by default, so you may want to add a little
hint that /dev/[sh]d* is used to reference disks.


Fri May 13 02:22:07 2011   TonyLawrence



I think you just did :)


Sat Jun 11 16:09:15 2011   TonyLawrence



I agree with your "literal" comment.



The problem I have with these is that Linux changes so quickly and sometimes
quite drastically. Many of the questions are out of date and don't apply
today. I do try to do updating, but mostly I rely on comments like yours.


Add your comments


Next question
Return to Question q0836

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.