LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-23-2007, 09:09 PM   #1
airswit
Member
 
Registered: Dec 2005
Distribution: Fedora 4
Posts: 89

Rep: Reputation: 15
resize my linux partition


hi everyone,

when installing fedora, i didn't know how to use the tool to create a separate partition, and so i just used the default settings to install it on my hard drive. I have another hard drive containing windows xp pro, and would like to resize the partition on my linux drive to allow for some 'shared files' (music, etc). is there any way to re-size my 320 gig partition (the one with linux) to say 100gig, and a second, shared partition of 220 gig, without re-installing.

also, grub did not quite pick up the windows install (for dual boot), so when i try and select the boot option it put there for the windows install, it just hangs. can anyone help me with my setup file so i can dual boot without having to go into the bios?

oh, and also..what do i need to format the newly created partition as, to share files between windows and linux?

as a side question, also, i do believe that there is no way to mount a ntfs formatted partition to a linux machine? all the stuff i want is on a separate partition on my windows hard drive, but it its ntfs

Thanks,
Trevor

Last edited by airswit; 05-23-2007 at 09:16 PM.
 
Old 05-23-2007, 09:33 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 131Reputation: 131
1. Providing you used ext3 as a filesystem, it should be possible to shrink the partition by using the Gparted liveCD.

2. The Windows bootline should look something like:
title Windows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1


3. The shared partition could be formatted as fat32; however, if you install ntfs-3g, Linux will be able to access ntfs as well.

4.. Of course it is possible to mount an ntfs partition (install ntfs-3g first); just use these commands:
su -
(root password)
mkdir /mnt/windows
ntfs-3g /dev/hdb1 /mnt/windows (assuming your windows disk is hda; use fdisk -l to ascertain whether it really is).

btw, why are you using FC4? It is completely unsupported by now; Fedora7 is only a week or two away.

Last edited by jay73; 05-23-2007 at 09:35 PM.
 
Old 05-23-2007, 09:44 PM   #3
airswit
Member
 
Registered: Dec 2005
Distribution: Fedora 4
Posts: 89

Original Poster
Rep: Reputation: 15
hehe, this is an old profile, from my first go around. i have fedora core 6 right now.

i tried to use the livecd (Found it right after posting), but it says the filesystem is unknown, so it won't let me do anything but format and delete. i am pretty sure that its etc3, whatever the default is for fc6_x64, but it shows as unknown. any thoughts?

i mounted the drive, think thats more of what i want. now, will i have to do that every time i boot, and do i have to unmount it when i shut down? is there a way to automate this?


as for the dual boot, my windows lines look like this:
title Windows
rootnoverify (hd1,0)
chainloader +1

and just for good measure, put one in there that says (hd1,1) in case that was right. neither work. do i have to do the mapping?


thanks

Last edited by airswit; 05-23-2007 at 09:47 PM.
 
Old 05-23-2007, 09:59 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 18,207

Rep: Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543Reputation: 2543
Fedora 6 creates 2 partitions, /boot and a LVM (Logical Volume Management) which contains / and swap. Resizing an LVM is difficult.

Yes you need to add the mapping lines.
Add an entry to your /etc/fstab file so your windows partition will mount at boot.
 
Old 05-23-2007, 10:00 PM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 131Reputation: 131
The mount line can be added to /etc/fstab in order to automate it:
/dev/hdb1 /mnt/windows ntfs-3g defaults 1 2

Yes, you need to map; windows wants to be on the first disk so unless you use the mapping trick, it will notice it's not and refuse to boot. (hd1,1) would be the second partition on the second disk; I take it windows is really on the first partition, in which case you do need (hd1,0) instead.

I don't know what the unkown filesystem error is all about. Did you by any chance use a Logical Volume to install? Gparted appears to be unable to understand LVM. I guess, if you just let the installer set the disk layout for you, it may well pick LVM by default ; but I think it should have created at least the boot partition as a regular partition.
 
Old 05-23-2007, 10:03 PM   #6
airswit
Member
 
Registered: Dec 2005
Distribution: Fedora 4
Posts: 89

Original Poster
Rep: Reputation: 15
ya, it recognizes the boot partition (that 100meg part, right), but the rest is unknown. alright, i will have to try all the other tricks you have showed me ;-)
 
Old 05-23-2007, 10:06 PM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 131Reputation: 131
If you're not going to resize after all, you may want to look into the subject of ext3readers. Those are applications that allow windows to read ext3; only I can't tell whether windows will be able to deal will LVM or whether it will be as stumped as Gparted.
 
  


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
how to resize linux partition gry-HuhuY5 Linux - General 6 08-13-2005 07:07 PM
Resize the linux partition guideweb Linux - Software 5 08-07-2005 09:22 PM
resize linux partition ConfusedMonkey Linux - Newbie 9 07-31-2005 02:22 PM
Resize Linux partition perigee Linux - General 3 11-28-2004 05:48 AM
How to resize a linux partition? jadermf Linux - General 4 01-16-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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