Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 formatted 2 partitions from ext4 to fat32.
Now, it says root can mount it.
When I open Storage Device Manager, it sees those partitions as ext4.
When I choose the option that any user can mount it, file manager gives me the error that fs information is bad.
When I open the file manager as root, it sees the partitions empty.
How can I fix this?
In the attached images, second one left side is Storage Device Manager info, and the right part is GParted info.
Thanks.
Creating a new partition / Re-formatting a partition is usually a 2 step process.
Modifying the partition table (I prefer fdisk). Verify that your partition table is correct by running the following commands as root
Code:
fdisk -l
Then create the new filesystem. You will lose any data on the 2 partitions when you run the commands below
Code:
mkfs.vfat /dev/sda6
mkfs.vfat /dev/sda7
modify /etc/fstab appropriately to allow other users to mount the new partitions.
Only root can do that is standard behavior so do you have an entry in /etc/fstab to allow users to mount as mentioned by iamwilliam above? You did reboot or remount, correct? If you formatted the partitions, you should not expect any data to be on the partitions.
The thing is I can boot to them. Nothing wrong with the files.
By the way, I expected to see data in them when I was root, because I had written data to them after the format to fat32.
Should I format it again with the way suggested by iamwilliam to create fat32 partitions?
fdisk -l wouldn't give me any information since this is a gpt disk and this partitions are partitions over 4 and primary.
gptsync didn't inform any problems.
hi imayneed,
I would suggest you to re-format the two drives as indicated by iamwilliam, remember that those commands must be issued as root when the partitions are not mounted (but I don' think you can mount them anyway). After formatting, as root, open /etc/fstab file with your favorite text editor and change the corresponding lines in something like
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.