LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-20-2006, 03:20 PM   #1
lizard_king825
Member
 
Registered: May 2006
Posts: 47

Rep: Reputation: 15
Fedora5 help convert NTFS partition/format to Linux please


hi all
running fedora 5 need some help to convert a ntfs partiton to linux.
I have already tryed qtparted, when i select the partition qt crashes.
here is my drives info:

# /sbin/fdisk -l

Disk /dev/hda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 7297 58508730 8e Linux LVM

Disk /dev/hdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb2 1 19929 160079661 7 HPFS/NTFS

Disk /dev/hdc: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 1 19929 160079661 83 Linux


could someone help me make /dev/hdb2 into a linux partition and format it please?
thanks
 
Old 05-20-2006, 03:36 PM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
What are you trying to do?

1- Do you want to keep the original NTFS data and be able to access it from both Windows and Linux?
2- Do you want to convert the filesystem from NTFS to some format that Linux can use, and you're willing to lose the ability to access it from Windows?
3- Do you want to reclaim the space that the NTFS filesystem uses and make this space available for use by Linux without saving the data that was there?
 
Old 05-20-2006, 04:09 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
fdisk will change the partition type. As Randux suggests, be sure there is not data there that you need.
after you change the type, you set up the filesystem with mkfs (or its variants)

man fdisk
man mkfs
for the details
 
Old 05-20-2006, 10:21 PM   #4
lizard_king825
Member
 
Registered: May 2006
Posts: 47

Original Poster
Rep: Reputation: 15
What are you trying to do?

1- Do you want to keep the original NTFS data and be able to access it from both Windows and Linux?
2- Do you want to convert the filesystem from NTFS to some format that Linux can use, and you're willing to lose the ability to access it from Windows?
3- Do you want to reclaim the space that the NTFS filesystem uses and make this space available for use by Linux without saving the data that was there?
__________________
1. no
2. yes
3. yes
i want to use the /dev/hdb2 for linux file system, all the data has been backed up from the ntfs.
can you please help me do this?
thanks
 
Old 05-21-2006, 12:11 AM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Ok, no problem. Like pixellany says, for this all you have to do is use fdisk or cfdisk to change the partition type, and then build a new filesystem in the space.

start by issuing (as root) fdisk /dev/hdb
then change the partition type for partition 2 to 83
then save changes from fdisk

Then if you are going to install a new Linux, just let the installer find the partition and make a filesystem, or if not, make a filesystem in the partition yourself. If you want to create a Reiser filesystem, you can use mkreiserfs /dev/hdb2. If some other type, mkfs .. options. Also like pixellany said, see the man pages for mkfs.

It's harder to talk about it than it is to do it. All this, once you know the commands, is about 2 minutes.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing files between linux and windoze. Re format NTFS partition to FAT32? baldox Linux - Newbie 6 12-21-2006 11:01 PM
Format an NTFS partition after install robbbert Linux - Hardware 13 04-16-2006 03:21 AM
Format a NTFS partition to XFS powadha Linux - General 1 03-13-2005 05:38 AM
Format NTFS partition from Linux? EgosZ Fedora 3 10-21-2004 07:59 AM
use vi to convert linux format to windows format intolinux Linux - Software 2 12-10-2003 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:35 AM.

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
Open Source Consulting | Domain Registration