LinuxQuestions.org
Review your favorite Linux distribution.
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 07-26-2005, 12:21 PM   #1
kvelan
LQ Newbie
 
Registered: May 2005
Posts: 7

Rep: Reputation: 0
Linux Partition Problem


Dear all,

I am relatively new to Linux. Still trying to get my way through. I kinda like the system. Its cool.

I have a problem with my disk partitions. I have installed Linux Suse 9.1 as a dual boot system with Windows XP.


I actually wanted to allocate 5GB partition for Linux. However, something went wrong and I now have partitions as following:

dyn239181:/home/kumaaravelan/ns-allinone-2.28/ns-2.28 # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 3.1G 3.0G 90M 98% /
tmpfs 252M 12K 252M 1% /dev/shm
/dev/hda2 32G 32G 681M 98% /windows/C
/dev/hda3 1.8G 12M 1.8G 1% /windows/D


Linux is using only 3.1GB on dev/hda6. I want it to also use the /dev/hda3 (windows/D). Can I reformat that for linux extended Partition so my home directory can be using it? For your info, the D folder is currently on NTFS file system.


I have got Partition magic in Windows. But I am not sure if that is the right way of doing this. If there is a way in Linux to claim that 1.8G space, I would be happy to hear it...


Thanks a bunch in advance!!




kV
 
Old 07-26-2005, 12:31 PM   #2
kvelan
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I thought it would be good information to add my fdisk -l result:


Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 4 32098+ de Dell Utility
/dev/hda2 * 5 4173 33487492+ 7 HPFS/NTFS
/dev/hda3 4174 4403 1847475 7 HPFS/NTFS
/dev/hda4 4404 4864 3702982+ f W95 Ext'd (LBA)
/dev/hda5 4404 4468 522081 82 Linux swap
/dev/hda6 4469 4864 3180838+ 83 Linux



What is my best option here? Can I move the whole Linux partition up to claim the hda3 space? or should I treat is as a separate linux partition and just mount my home directory there?


Thanks again!
 
Old 07-26-2005, 03:01 PM   #3
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Rep: Reputation: 30
ok, so in short, you want to use /dev/hda3 as your home directory for linux?

assuming hda3 is not a logical partition, first put a linux filesystem on /dev/hda3. Using linux as root type,
mke2fs -j /dev/hda3 << for ext3 filesystem
mkereiserfs /dev/hda3 <<for reiserfs filesystem

I think all you need to do after that is have linux mount the directory as your home directory. edit /etc/fstab to do that.
good luck!
 
Old 07-26-2005, 03:40 PM   #4
kvelan
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the help.

But the file system is still NTFS. Dont I have to delete the partition and recreate a new one (linux partition) with fdisk first?
 
Old 07-27-2005, 02:10 AM   #5
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Rep: Reputation: 30
hmmm, sorry I couldn't help.

the commands I wrote do format/erase a linux partition and put a new/clean filesystem on it. I've never issued the commands on an NTFS partition before though, so that must be the problem.

Open cfdisk and delete /dev/hda3, then (still in cfdisk) make the partition a "linux" partition. Once that is done, try putting issuing the commands that I wrote of earlier. That will do the trick for sure!

Hope that goes well for you. I will check back and try to help if you have a problem or a question.
 
Old 07-27-2005, 07:39 AM   #6
kvelan
LQ Newbie
 
Registered: May 2005
Posts: 7

Original Poster
Rep: Reputation: 0
FatBlueDuck,

Well, actually, it worked. NTFS is still recognised and works in Linux Suse 9.1 that I am using. I can read and write to that partition just as I could with a linux partition.


Thanks a lot. Really!


wishes,
KV
 
  


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
Windows/Linux Fat32 Share partition problem Halsafar Linux - General 1 09-23-2005 07:17 PM
Problem Resizing Linux Partition From Partition magic John_Emad SUSE / openSUSE 5 02-16-2005 12:42 PM
Problem with loading up linux after using partition magic Allen T Linux - Software 8 02-16-2003 08:33 PM
problem with linux partition puru_09 Linux - Hardware 3 11-20-2002 03:36 AM
Big problem in linux partition souvik Linux - General 2 08-28-2001 04:27 AM

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

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