Hi.
I know. centos6 is dead/buried/reincarnated.
However, I have a very old box that I haven't touched in a bit.
I had created a /media/TestDir using part of the drive. As I recall, it had been working. However, when I turned it on earlier, something happened, (i think the cat hit the cord!). I rebooted and got a msg about the /media/foo not being able to resolve and therefore not boot.
I did a quick comment out of the offending line in the fstab. Rebot was successful.
Now, I'm wondering how to get the fstab /media/foo back with the underlying files. I assume the files are still on the "drive". As a matter of fact, just fired up gparted, and it shows the partition /dev/sda4 as et4 with a Label of "TestDir".
This was the line in the /etc/fstab file ##LABEL=/media/TestDir /media/TestDir ext4 defaults 1 2
This is more a curiosity than anything.
thanks..
Am 20.12.2022 um 05:01 schrieb bruce badouglas@gmail.com:
Hi.
I know. centos6 is dead/buried/reincarnated.
However, I have a very old box that I haven't touched in a bit.
I had created a /media/TestDir using part of the drive. As I recall, it had been working. However, when I turned it on earlier, something happened, (i think the cat hit the cord!). I rebooted and got a msg about the /media/foo not being able to resolve and therefore not boot.
I did a quick comment out of the offending line in the fstab. Rebot was successful.
Now, I'm wondering how to get the fstab /media/foo back with the underlying files. I assume the files are still on the "drive". As a matter of fact, just fired up gparted, and it shows the partition /dev/sda4 as et4 with a Label of "TestDir".
This was the line in the /etc/fstab file ##LABEL=/media/TestDir /media/TestDir ext4 defaults 1 2
I’m wondering, where you found „et4“. I guess in the partition table.
As a Server guy I would use a CLI tool and at first check the disk with fdisk. And than I would try to manually mount with the *device name*).
And in case of anomalies of the partition table for sda4 - as a (very) last resort - delete that partition (noting start and end sectors beforehand) and then create a new partition with exactly the same start and end sectors and partition type. But that is not for the faint-hearted.
And yeaHi Peter.
Thanks for the reply.
It appears that the issue is as simple as -- the LABEL of the partition from gparted is "TestDir' - not /media/TestDir << one I changed the line in the fstab..
LABEL=TestDir /media/TestDir
and then did a mount -a
The partition/data is viewable..
At some point, I'll do a reboot to see if the box reboots again.
Thanks!
On Tue, Dec 20, 2022 at 3:33 AM Peter Boy pboy@uni-bremen.de wrote:
Am 20.12.2022 um 05:01 schrieb bruce badouglas@gmail.com:
Hi.
I know. centos6 is dead/buried/reincarnated.
However, I have a very old box that I haven't touched in a bit.
I had created a /media/TestDir using part of the drive. As I recall, it had been working. However, when I turned it on earlier, something happened, (i think the cat hit the cord!). I rebooted and got a msg about the /media/foo not being able to resolve and therefore not boot.
I did a quick comment out of the offending line in the fstab. Rebot was successful.
Now, I'm wondering how to get the fstab /media/foo back with the underlying files. I assume the files are still on the "drive". As a matter of fact, just fired up gparted, and it shows the partition /dev/sda4 as et4 with a Label of "TestDir".
This was the line in the /etc/fstab file ##LABEL=/media/TestDir /media/TestDir ext4 defaults 1 2
I’m wondering, where you found „et4“. I guess in the partition table.
As a Server guy I would use a CLI tool and at first check the disk with fdisk. And than I would try to manually mount with the *device name*).
And in case of anomalies of the partition table for sda4 - as a (very) last resort - delete that partition (noting start and end sectors beforehand) and then create a new partition with exactly the same start and end sectors and partition type. But that is not for the faint-hearted.
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Am 20.12.2022 um 13:39 schrieb bruce badouglas@gmail.com:
And yeaHi Peter.
Thanks for the reply.
It appears that the issue is as simple as -- the LABEL of the partition from gparted is "TestDir' - not /media/TestDir << one I changed the line in the fstab..
LABEL=TestDir /media/TestDir
and then did a mount -a
The partition/data is viewable..
At some point, I'll do a reboot to see if the box reboots again.
Thanks!
If only it were always that simple. :-)
-- Peter Boy https://fedoraproject.org/wiki/User:Pboy pboy@fedoraproject.org
Timezone: CET (UTC+1) / CEST (UTC+2)
Fedora Server Edition Working Group member Fedora docs team contributor and board member Java developer and enthusiast