Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Ok, sounds better because I doubt this system can boot from USB and I have trouble finding a ready-made iso from any fedora page.
Some comments on these instructions. I cannot connect a SATA disk to IDE socket and vice versa. I can surely check if this small IDE disk is connected to the first IDE or not.
Why is using Live CD so important? I can try mounting that SATA disk any time, but I don't think it mounts. I would just like to get the possible data out of that disk.
Live CD is so important here because you mentioned that when you have new hdd connected to the system your system won't boot. Using liveCD you can boot the system and can see both hdd at the sametime. If you are saying that new hdd works fine without being part of LVM, though you haven't mentioned if it worked after you removed it from LVM only thing we are are aware of that after initial setup it didn't work post reboot.
If new hdd works fine without being part of LVM then boot without liveCD and try to mount the partition from new hdd onto an empty directory.
After removing from LVM, trying to mount the SATA disk has failed. Otherwise I wouldn't have any problem.
So, mounting fails giving this output:
mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Seems I really didn't say it clearly in the first post. This bigger SATA disk won't mount. I tested with a smaller SATA disk that the successful boot depends on not having any SATA disks in LVM configuration. Separately I can mount that smaller SATA disk. And I suspect that the bigger works the same. The smaller disk was also not mountable after being removed from LVM. But there was nothing valuable inside, so I reformatted it and made it mount traditionally.
But I was left with the bigger disk arguably having something inside, but it wouldn't mount nor anyway reveal it has something inside.
BTW, is there a way to add a disk to LVM without formatting it first?
In my issue I wonder, why did LVM make the disk unmountable when removing it from the configuration? Now I wonder if it was possible to add it to the configuration without formatting it...
I haven't tried that and I doubt it will be possible because when you add a partition or a whole disk to VG it is considered as unallocated space. The idea of LVM is to provide you with flexibility of expanding your existing partition within that VG. If you are adding an existing partition or partition that already contains data which I doubt it will allow, basically it will wipe all the stuff before adding and then add the available LEs to VG.
Here are the simple steps on how we create LV:
1. Create pv using pvcreate.
2. Create vg using vgcreate and then add the partition to it.
3. Create lv using lvcreate within the vg.
4. Format lv using mkfs.
According to your query what you are looking for is when you do vgextend pointing to a partition which contains data it should allow you to mount that partition or atleast allow you to mount it when you remove it from lv. As per my understanding when you add a partition to VG it is added as unallocated space and when you remove it from VG the partition still considered as unallocated space.
Thanks guys!
When doing experiments with the small SATA disk, I tried to find a way to prevent the overwriting of the disk, but I was forced to follow the path Initialize -> Add physical volume -> Add logical volume (or something like that) when using the graphical interface.
Does this Initialize or Activate phase already overwrite the disk somehow or is this safe for testing?
The activate in this sense (-a in the vgchange) is merely telling LVM to include ("activate") any new/unknown vgs it finds so you can see them in the LVM commands. Nothing is changed on the disk.
This is how you bring preformatted LVM entities into your system - no other way that I know of.
Hi,
I tried those command line commands and indeed, terms activation and initialization are really very different.
Activation seems to activate visible volume groups with visible logical volumes, but does not affect removed logical or physical volumes.
Initialization is on the other hand a function provided by the graphical user interface and it remains unknown to me, if it overwrites the disk it tries to initialize. I assume it does as T3RM1NVT0R pointed out.
All in all, it seems I am in a deadlock. I cannot get anything out of that removed SATA disk.
See if you are able to get anything out of that partition. As of now you are not able to get anything out of that partition, so I thought gparted worth a try. Check out both command lines and graphical utilities available with it.
How should use of this live CD differ from using Gparted available in this system?
Actually I tried the CD version, but it wouldn't even start. Probably my CD burner cannot burn reliably any more.
gparted utility within the OS can only perform operation on the filesystem which it can see / detect and which are of Linux type (recognized by Linux). On the other hand gparted live is bootable version of gparted and can perform operations on hdd as whole, for example you can resize partition even which belongs to Windows.
The reason I suggested to you gparted live because it will boot itself and you will have more control over hdd as it will not be locked by OS.
As you will be playing around with disks it is always good to have backup. Gparted live it pretty easy to use but make sure that you don't touch or modify the existing disk using which you are booting your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.