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 04-03-2006, 11:22 AM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Rep: Reputation: 30
Formatting to EXT3


Hi all, im dual booting Slackware and xp, in xp i just deleted an empty NTFS partition, its now unallocated space. I thought i could just put in the slackware cd and use cfdisk to format it to EXT3, but the unallocated drive isnt showing up :/ Anyone know how i can format this unallocated space in windows or much better in Slackware to EXT3?

Any help greatly appreciated.
 
Old 04-03-2006, 11:34 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You can use fdisk to make an entry for it in the partition table, and then, assuming its name is /dev/hdaX, create an ext3 filesystem on it with mke2fs -j /dev/hdaX.
 
Old 04-03-2006, 11:40 AM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,559

Rep: Reputation: 213Reputation: 213Reputation: 213
You can try booting into slack and using cfdisk there. If no joy that way, you can also try gparted which is a nice graphical partition magic clone for linux that has its own bootable livecd(23MB download):

http://gparted.sourceforge.net/

Of course you must create a partition on the unallocated space before you can format it.

Last edited by kilgoretrout; 04-03-2006 at 11:43 AM.
 
Old 04-03-2006, 12:11 PM   #4
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
I think im going to have to try them ways, I used Paragon Partition Manager in xp to format it to EXT3, put it in my fstab file under /space but its only coming up as 22gb when its a 115gb drive.

Any ideas?

Last edited by dave`2005; 04-03-2006 at 12:25 PM.
 
Old 04-03-2006, 12:29 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,034

Rep: Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853
Post the output of the command
fdisk -l (that is a small L) (must be root to use fdisk)
 
Old 04-03-2006, 12:50 PM   #6
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
Code:
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        1785    14337981    7  HPFS/NTFS
/dev/hda2   *        1786        4743    23760135   83  Linux
/dev/hda3            4744        4865      979965    5  Extended
/dev/hda5            4744        4865      979933+  82  Linux swap
Warning: invalid flag 0x0000 of partition table 5 will be corrected by w(rite)

Disk /dev/hdb: 123.5 GB, 123522416640 bytes
255 heads, 63 sectors/track, 15017 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               2       15017   120616020    f  W95 Ext'd (LBA)

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       19457   156288321    7  HPFS/NTFS
In gparted it came up as 22gb too (hdb).

Last edited by dave`2005; 04-03-2006 at 12:51 PM.
 
Old 04-03-2006, 01:37 PM   #7
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
fdisk is reporting the size of hdb correctly. now you can run
Code:
fdisk /dev/hdb
to change the filesystem type to Linux (type 'm' to see a menu of options, type 't' to choose "change a partition's system id", and enter '83' to select a "Linux" filesystem (you can see the list of all types by selecting 'l' at the fdisk prompt), then 'w' to save). after that, mke2fs -j /dev/hdb1 will create an ext3 filesystem.
 
Old 04-03-2006, 03:00 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,034

Rep: Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853
hdb1 is an extended partition. In a nutshell a container for logical partitions like your /dev/hda3.

Change the partition type to 83 and then format hdb1 as desired.
 
Old 04-03-2006, 09:09 PM   #9
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
Im confused

I type "fdisk /dev/hdb" then "t", type "83" and i get
Code:
No partition is defined yet!
so i try "n" to add a new partition, "e" for extended, partition 1, default first and last cylinder. Then i try "t" again:
Code:
Hex code (type L to list codes): 83
You cannot change a partition into an extended one or vice versa
Delete it first.
I thought this might be because the changes havent actually been written so i type "w", then "fdisk /dev/hdb" again, "t" and i get
Code:
Hex code (type L to list codes): 83
You cannot change a partition into an extended one or vice versa
Delete it first.
again.

Where am i going wrong?
 
Old 04-03-2006, 09:14 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,034

Rep: Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853
Its been awhile since I've had to repartition a drive.
It appears you need to delete the existing and recreate it using the correct partition id.
 
Old 04-03-2006, 09:26 PM   #11
freakie
LQ Newbie
 
Registered: Feb 2006
Posts: 12

Rep: Reputation: 4
Sorry for late post.

You can recover your lost or unseen partition which was accidently not visible by using Partition Table Doctor for windows which was too helpful for me when I was under the same problem
 
  


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
convert and merge a fat32 to ext3 and then merge w/ another ext3? nkoplm Linux - General 3 03-23-2006 10:37 PM
Ext3 & tune2fs tweaking question for ext3 experts wrc1944 Linux - General 8 12-11-2005 07:45 AM
formatting ext3 to ntfs aciesd Linux - Laptop and Netbook 4 07-03-2005 10:38 AM
Formatting my USB stick with ext3 makes stuff crash Khang Linux - Hardware 0 02-20-2005 07:11 PM
how to convert ext3 to ntfs? cannot even see ext3 partition parv Linux - Hardware 1 12-31-2004 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 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