LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-19-2004, 11:06 PM   #1
AngelixD
LQ Newbie
 
Registered: Jan 2004
Location: Chicago, IL
Distribution: working on that
Posts: 4

Rep: Reputation: 0
strange occurence in linux partition history


OK, I deleted a NTFS partition with the intention of turning it into a fat32 partition, but when i restored it (i didn't format), it just came back, with all the files that were originally on it, and when installed linux, it recognized it as a fat32 drive... anyways, how should I fix this discrepancy in fstab to recognize it as an NTFS drive?
 
Old 01-19-2004, 11:16 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
what does your /etc/fstab look like?
 
Old 01-19-2004, 11:34 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
"OK, I deleted a NTFS partition with the intention of turning it into a fat32 partition, but when i restored it (i didn't format), it just came back, with all the files that were originally on it, and when installed linux, it recognized it as a fat32 drive... anyways, how should I fix this discrepancy in fstab to recognize it as an NTFS drive?"

Partitioning and formatting are two different things. After you get the partition set up the way that you want then you run mkfs against the partition to create the file system type that you want. For example:

Suppose that the partition that you want to be a fat32 file system is /dev/hda3. Then make sure that /dev/hda3 is umounted. Then format /dev/hda3 as fat32. The following commands are useful:

mount
tells you what partitions are mounted

umount /dev/hda3
will umount /dev/hda3

If you have a line for /dev/hda3 in /etc/fstab then comment it out with a # at the beginning of the line.

mkfs -t vfat /dev/hda3
will create a fat32 file system and wipe every file on that partition.

Then put a line for /dev/hda3 in /etc/fstab describing it as vfat.

If you just want to leave the file system as ntfs then put a line in /etc/fstab describing it as ntfs if such a line does not already exist.

See the man pages for mount, umount, and mkfs.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 01-19-2004 at 11:37 PM.
 
Old 01-20-2004, 12:02 AM   #4
AngelixD
LQ Newbie
 
Registered: Jan 2004
Location: Chicago, IL
Distribution: working on that
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jailbait


If you just want to leave the file system as ntfs then put a line in /etc/fstab describing it as ntfs if such a line does not already exist.
So where it describes the file system of the drive as vfat (which it isn't), i just change it to ntfs, will it work smoothy? I hope so, because that's what I'm going to try.

edit: spelling
 
Old 01-20-2004, 08:13 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,930

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Look at the partition ID and see what it says. FAT32 is something like a hex value c or b.

fdisk -l /dev/hda (need to be logged in as root and that is a small L)

What application did you use to delete the NTFS partition and did it actually perform the operation?
 
Old 01-20-2004, 12:46 PM   #6
AngelixD
LQ Newbie
 
Registered: Jan 2004
Location: Chicago, IL
Distribution: working on that
Posts: 4

Original Poster
Rep: Reputation: 0
It's ok, I fixed my own problem. I just had to change the file system label of the drive from 'vfat' to 'ntfs'. i think it'll be smooth sailing now.

Thanks guys!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Occurence with Samba Config... FC3 Floyd770 Linux - Networking 1 03-05-2005 05:37 PM
History of Linux redfedora88 Linux - General 2 10-04-2004 02:55 AM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 10:46 AM
History of Swap Partition dulli1 Linux - General 1 12-11-2003 03:37 PM
How to del all history in Linux explorer1979 Linux - General 18 10-17-2002 06:00 PM


All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration