Re: mounting a drive on F37

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> Am 30.03.2023 um 15:11 schrieb Ranjan Maitra <mlmaitra@xxxxxxx>:
> 
> Thanks, very much, to all!
> 
> To answer the questions:
> 
>> From: Peter Boy <pboy@xxxxxxxxxxxxx>
>> Date: Thu, 30 Mar 2023 08:03:25 +0200
>> 
>>> I have three additional drives, two of which are hardware (for historical reasons) RAIDed, and have /home 
>> 
>> As it looks, sda and sdc are software raid. If you had a hardware raid, all disks attached to the hardware raid controller show up as one drive.  But doesn’t matter as long as it works.
>> 
> 
> I see, thanks! I assumed HW RAID since it was set up through the BIOS ages ago.

Then you might have a BIOS Raid, where the BIOS provides some of the code instead of the Linux driver. Before you update to F38 and/or F39, you should study the release notes. Linux support for  BIOS Raid changed, I don’t remember the details out of my head. They will NOT get totally unsupported, but you may have to install different drivers, maybe it’s updated automatic. As I said, I don’t remember the details. 


> 
>>> But, my problem is that /dev/sdb does not appear to have a UUID number. Indeed, I get nothing back when I try:
>> 
>> At first you have to create a partition and a file system on the new drive, which seems to be /dev/sdb. (After that you should see UUIDs).
>> 
>> What says
>> 
>> cfdisk /dev/sdb ?
> 
> So, I get a new screen come up, and "select label type" from "gpt", "dos", "sgi" and "sun". I guess this should be "gpt", so I tried that.
> 
> The process forward seemed straightforward, and I got a filesystem created with "Label" gpt, "identifier "some long alphanumeric name" and "Partition UUID" and of "Partition type: Linux file system", both the last with two other long alphanumeric names.
> 
> I went into "Type" but there is no option for "ext4" ("or xfs", for that matter) and so left it as "Linux file system" and then "Write" (wrote) to disk ("yes") and "Quit" to move on.
> 
>> 
>> If you can, create a partition and afterwards a filesystem. Then try e.g.
>> mount -t xfs|ext4   /dev/sdb1   /mnt 
> 
> Here, however, I get:
> 
> $ sudo mount -t ext4   /dev/sdb1   /mnt
> mount: /mnt/backup: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
>       dmesg(1) may have more information after failed mount system call.


Yes, you must create a file system on the newly created partition. Currently xfs is the default, so you have to execute:

[…]$ sudo mkfs.xfs /dev/sdb1
[…]$ sudo mount -t xfs  /dev/sdb1 /mnt  

or if you want to stay with ext4:
[…]$ sudo mkfs.ext4 /dev/sdb1
[…]$ sudo mount -t ext4  /dev/sdb1  /mnt  

And to make it permanent

[…]$ sudo vi /etc/fstab

and add at the end
either
/dev/sdb1  /mnt           xfs     defaults        0  0
or
/dev/sdb1  /mnt           ext4     defaults        0  0



Generally, /mnt is not a good option for a permanent mount. You should create either /srv/backups  (srv for server or services) or at least /mnt/mybackups


> 
> $ fdisk -l /dev/sdb
> 
> Disk /dev/sdb: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
> Disk model: WDC WD2005FBYZ-0
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: massive alphanumeric number
> 
> Device     Start        End    Sectors  Size Type
> /dev/sdb1   2048 3907028991 3907026944  1.8T Linux filesystem

That looks fine, exactly as it should be. Execute the steps above to create a filesystem.







_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux