LinuxQuestions.org
Review your favorite Linux distribution.
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 01-09-2006, 09:14 AM   #1
aw76
Member
 
Registered: Oct 2005
Location: milky way
Distribution: suse 9.3
Posts: 47

Rep: Reputation: 15
partitioning advice with QT Parted


i have recently shrunk my windows partition thru yast, and now have free space i want to access with linux....i tried to create a logical partition on it using the cylinder numbers i wanted to use, but yast will not allow me use them...i got knoppix, and was playin around a bit with qtparted to see if i could do it that way, but before i do it i wanted to seek some opinions so as not to trash my system....below is my info from fdisk...it was sayin something about unmounting all partitions i think, which scared me so i backed out, and am seeking advice first...can i get format and get access to my unused space between cylinders 786 and 3787???
thanks for your help
aw

this is my return from fdisk:

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 785 6304286 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/hda2 3788 9728 47721082+ f W95 Ext'd (LBA)
/dev/hda5 3788 3918 1052226 82 Linux swap / Solaris
/dev/hda6 3919 5224 10490413+ 83 Linux
/dev/hda7 5225 9727 36170316 83 Linux
 
Old 01-09-2006, 10:18 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
1. Create a 100MB partition for /boot
2. 4/3 of RAM size for swap
3. remaining size for /

can i get format and get access to my unused space between cylinders 786 and 3787???

I think the best way to use this space on the hdd, is to delete the extended partition.

and was playin around a bit with qtparted to see if i could do it that way, but before i do it i wanted to seek some opinions so as not to trash my system

You should not play around with a harddisk partitionier.
 
Old 01-09-2006, 11:22 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
If I understood correctly, you have SUSE installed and want to use the empty space as additional partition?

Have a try with a command-line partitioner (I prefer cfdisk). See if it allows to create a partition from 786 to 3787. You can always exit without writing the partition table.
 
Old 01-10-2006, 04:15 AM   #4
aw76
Member
 
Registered: Oct 2005
Location: milky way
Distribution: suse 9.3
Posts: 47

Original Poster
Rep: Reputation: 15
cfdisk final advice before i re-partition please.....

sorry, "playing around with qtpart" was a bad choice of words....i was just looking around in it to see if it gave me the optino to do what i wanted to do...

the second poster is correct in his assumptions regarding the fact that i am already booting suse, and dont need the boot or root paritions, i just want to use the space from a shrunken windows partition that i did in yast...

via cfdisk i have gotten to the point where i think it should be right(and therefore "write" ), but as i am a little paranoid, i figured one more post for confirmation is in order...

in cfdisk it allowed me to hi-lite the freespace partition, and thru-up an option to create new logical (or primary--i chose logical) partition with the free space...then i chose type, and selected linux 83....then it thru up the new partition table which has renumbered the paritions.....it follows a logical scheme, as it changed my original hda5 swap to be my new parition as hda5....then my swap was changed to hda6 (used to be my root), and hda7 became root(used to be home), and hda8 was created as my new home partition...

that makes sense to me....the thing i am paranoid about is, is this just a simple renaming of the old root and home partitions in the partition table, and everything will werk sweet and adjust accordingly???or is this new numbering scheme in the table gonna affect my system???

i wasnt able to specify cylinder numbers, but the size corresponded, so im "assuming" its correct...but that could be a very fatal error sometimes, so..........

below is the current(before) partition table, followed by the "new" one that i havent "write"d yet....can someone double chek this and my thought process for me before i commit it???

thanks alot...i apppreciate it immensely....

before/current:

hda1 Boot Primary NTFS 6455.63 *
Pri/Log Free Space 24693.52 *
hda5 Logical Linux swap / Solaris 1077.52
hda6 Logical Linux ReiserFS 10742.22
hda7 Logical Linux ReiserFS 37038.44
Pri/Log Free Space 16.46

after:

hda1 Boot Primary NTFS 6455.63 *
hda5 Logical Linux 24693.52 *
hda6 Logical Linux swap / Solaris 1077.52
hda7 Logical Linux ReiserFS 10742.22
hda8 Logical Linux ReiserFS 37038.44
Pri/Log Free Space 16.46

i know (or think i know) that the asterisks(*) denotes where the boot loader is, and if thats the case, why is there 2? do i need to fix sumthin about that???
 
Old 01-10-2006, 04:29 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
I suggest you create a primary partition instead of a logical. This is for the simple reason that partition numbers will change. I don't even know if you can create two extended partitions. The problem is that the free space is outside of your existing extended partition (hda2), which is not possible for a logical partition.

If the numbering changes, you need to adjust not only /etc/fstab, but also your bootloader. Making a mistake here could mess-up your system. Creating a primary partition wouldn't change the numbering (at least in theory).

Hope I am right, maybe you should wait for another opinion before writing the partition table.

EDIT: Strangely, cfdisk doesn't mention the extended partition, like fdisk does.
EDIT2: Just learned that multiple extended partitions are possible, however I still suggest a primary partition to avoid the numbering troubles.

Last edited by abisko00; 01-10-2006 at 04:35 AM.
 
Old 01-10-2006, 05:11 AM   #6
aw76
Member
 
Registered: Oct 2005
Location: milky way
Distribution: suse 9.3
Posts: 47

Original Poster
Rep: Reputation: 15
thanks for the tip, im not sure why i just assumed i couldnt create a useable primary partition for this???or that i needed to do it as an extended???
but now it makes perfect sense....so i did that, and it created it as hda3 and left all the other numbers/drives as they were....

so im thinkin i will go ahead with that, but might wait a few hours to see if anyone posts a dissenting opinion....

thank a lot..
aw
 
Old 01-10-2006, 10:49 AM   #7
fair_is_fair
Member
 
Registered: May 2005
Posts: 516

Rep: Reputation: 52
If you have already created free space with yast and everything is good, you should be able to form a partition there safely. You still may have to edit files like abisko suggests.

You can run into 'major' trouble by changing partition sizes or adding partitions once operating systems are installed.

From experience, and some of it very bad, set your hard drive up exactly the way you want it from the first. Once you get into a multiboot environment you take great risk. Be prepared by backing data up and getting ready to start from scratch as the worst case scenerio.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need partitioning advice lancelott Linux - Newbie 1 06-11-2004 05:12 PM
Partitioning: GNU Parted Gerardoj Linux - General 1 06-01-2003 01:50 AM
NEED HELP! Partitioning Advice Hesperuax Linux - Newbie 1 04-06-2003 05:23 PM
Partitioning advice booyabazooka Linux - Newbie 6 04-05-2003 02:10 PM
Parted (and partitioning in general) Grim Reaper Linux - Software 35 11-05-2002 11:44 PM

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

All times are GMT -5. The time now is 10:52 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
Open Source Consulting | Domain Registration