LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   formating a partition (sda5 - NTFS filesystem) to make it "linuxable" (fedora 8) (https://www.linuxquestions.org/questions/linux-newbie-8/formating-a-partition-sda5-ntfs-filesystem-to-make-it-linuxable-fedora-8-a-634074/)

xcorsary 04-08-2008 11:09 PM

formating a partition (sda5 - NTFS filesystem) to make it "linuxable" (fedora 8)
 
hi guys and girls...

i have a fedora8 installed, and a parition which was used by a w2k os.
i moved all the data (moustly music and videos) from the sda5 partition, 'couse some linux user tould me i shoul not try to save something on a ntfs filesystem from linux, 'couse this could cause damage.

i read some other threads and they speak of the mkfs comand. i took a look at the manual, but din't understood very well, and im afraid of making a mistake here.

any help? and how important is to have an ext2 or ext3 filesystem if i wanna save music and video?... i mean, whats the diference anyway?

tkx a lot

mk

jschiwal 04-09-2008 12:43 AM

Use ext3 rather than ext2. You could use Fedora Core's partitioning program or
use the command: "sudo /sbin/mkfs.ext3 /dev/sda5".

Then mount the partition where you want it and use the "chown" and "chmod" commands on the mounted partition to change the ownership & permissions.
Lastly, edit /etc/fstab so that it is mounted when you boot.

xcorsary 04-09-2008 07:26 AM

hi,
2 things

- i did what
Quote:

/sbin/mkfs.ext3 /dev/sda5
under root, but when i tipe fdisk -l, the partition still apears as HPFS/NTFS... should it say linux instead?

- how do i edit the "/etc/fstab" so that it is mounted when I boot?

dopefish 04-09-2008 07:41 AM

add a line
/dev/sda5 /mnt/whateverdirectory ext3 defaults 1 2

does fdisk -l still say NTFS after a restart?

jschiwal 04-09-2008 08:31 AM

Did you use fdisk to create the partition and not change the type id of the partition to linux (83). Verify that there is an ext file system on the disk with "file -s /dev/sda5". You may just need to change the type in fdisk.

michaelk 04-09-2008 10:59 AM

Just to elaborate on jschiwal's post. The partition ID is basically nothing more then a label and nothing to do with its filesystem. Creating a filesystem on a partition will not change its ID.

xcorsary 04-16-2008 05:52 PM

dobre utra jschiwal! :), tkx now it works! i just had to change permissions... :P

tkx guys!


All times are GMT -5. The time now is 06:51 AM.