Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-24-2012, 06:41 AM
|
#1
|
Member
Registered: Jul 2012
Distribution: Arch, Kubuntu
Posts: 77
Rep: 
|
wrong fs type after formatting ext4 to fat32
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.
|
|
|
08-24-2012, 07:11 AM
|
#2
|
Member
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78
Rep:
|
Hi,
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
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.
|
|
1 members found this post helpful.
|
08-24-2012, 09:55 AM
|
#3
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,392
|
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.
|
|
|
08-24-2012, 11:18 AM
|
#4
|
Member
Registered: Jul 2012
Distribution: Arch, Kubuntu
Posts: 77
Original Poster
Rep: 
|
Storage Device Manager is still seeing them as ext4 instead of fat32.
It is the same with fstab. It sees them as ext4.
Code:
/dev/sda6 /media/sda6 ext4 users 0 0
/dev/sda7 /media/sda7 ext4 users 0 0
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.
Last edited by imayneed; 08-24-2012 at 11:20 AM.
|
|
|
08-24-2012, 11:34 AM
|
#5
|
Member
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111
Rep:
|
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
Code:
/dev/sda6 /media/sda6 vfat auto,users,rw,umask=0000,uid=1000,gid=1000 0 0
/dev/sda7 /media/sda7 vfat auto,users,rw,umask=0000,uid=1000,gid=1000 0 0
Those are the setting I use for my fat32 disk, which work fine. Someone might suggest some different setting or you can type , read and decide the option which suit best your needs.
|
|
1 members found this post helpful.
|
08-24-2012, 11:36 AM
|
#6
|
Member
Registered: Jul 2012
Distribution: Arch, Kubuntu
Posts: 77
Original Poster
Rep: 
|
I just realized that I can mount the drives by gparted!
Thanks for the fstab info.
I just realized that I haven't thanked iamwilliam at all.
Thank you.
Last edited by imayneed; 08-24-2012 at 11:48 AM.
|
|
|
All times are GMT -5. The time now is 12:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|