Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to remove one of the hard drives from my Fedora media server to make way for a 1Tb drive.(It does not contain system files just a few jpegs)
The system has 6 hard drives sda to sdf
sda contains the system files and has 3 partitions
sda1 system files, sda2 (swap), sda3 (mp3's)
sdb to sdf all have only one partition and contain media files (avi's mkv's etc)
My problem is that if I physically remove sdb from the box it fails to boot (early on) with the error message that the superblock is missing or corrupt and to replace it with one of the backups. What is strange about that is it seems to refer to sdf not the drive I removed sdb.
I have already removed any reference to sdb in fstab. So I don't know if I need to remove references to sdb anywhere else so that the system will boot. If I replace the drive it works just fine.
So my question is how do I remove the drive so that I can replace it (I need the space)
Linked to this I notive that sdb1 is mounted by something else when entering the GUI (or maybe earlier) it is not in fstab and I suspect HAL is doing it. I am not sure if this has any bearing on the matter.
I only know enough about Linux to run it as a smb server and gateway/firewall. This problem is out of my comfort zone so any help or suggestions will be gratefully received.
A) Do you use LVM which is the default for Fedora.
B) If not, use "sudo /dev/fdisk -l", "udevinfo -q env -n <device-node>" and "mount" to learn which device is which.
My guess is that you are mistaken about your devices.
If the drive is removed, you can boot to a live distro, explore your drives and fix /boot/grub/menu.lst and /etc/fstab.
It would be better to use UUID labels instead of device nodes in /etc/fstab. You can learn the UUID for each filesystem (partition) with the "udevinfo" program.
Instead of the first column being like "/dev/sda" it can be like "UUID=14D23645D2362AFE". Then the filesystem will be booted even if you repartition one of the drives or the device nodes change for another reason. For external drives, you always want to do this.
First off no I don't use LVM I know it is the default but I avoided it. Secondly just like you, I thought I had my drives mixed up but I have confirmed that each drive is correct by looking at the drive manufacturer and capacity and matching that to the info in partd (The partition program that is in the distro). sdb is definetley the one I am removing and then receiving the superblock error message.
To be honest I don't even know if it should be possible to remove a drive and not have fedora complain.
I can confirm that the drives are identified correctly. There are no references to the /dev/sdb in fstab, but linux still looks for it on the initial disk test in boot up. If sdb is unplugged then it errors saying superblock missing or corrupt on /dev/sdf. This makes me wonder if Fedora shifts the names of the devices when one is removed (please confirm if true)
So original disks are;
sda
sdb
sdc
sdd
sde
sdf
when you remove sdb they all shift up one ie sdc becomes sdb, sdd becomes sdc and so on until sdf stops existing (as it is now sde) and the boot up filecheck errors on it.
If so would the idea of using uuid in fstab solve this hypothetical problem
I can confirm that the drives are identified correctly. There are no references to the /dev/sdb in fstab, but linux still looks for it on the initial disk test in boot up. If sdb is unplugged then it errors saying superblock missing or corrupt on /dev/sdf. This makes me wonder if Fedora shifts the names of the devices when one is removed (please confirm if true)
So original disks are;
sda
sdb
sdc
sdd
sde
sdf
when you remove sdb they all shift up one ie sdc becomes sdb, sdd becomes sdc and so on until sdf stops existing (as it is now sde) and the boot up filecheck errors on it.
If so would the idea of using uuid in fstab solve this hypothetical problem
Thanks
Yes, that is what is happening to you.
Remove the old drive and stick the new one in. The system may still fail to boot all the way if the new one is not properly formatted, but in this case it will drop you to the command shell where you can make repairs - which would consist of either formatting your new drive and installing a filesystem or modifying fstab to remove the mount entry.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.