LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-04-2005, 10:57 AM   #1
tavixor
Member
 
Registered: Feb 2004
Distribution: Slackware 10.1
Posts: 32

Rep: Reputation: 16
making new partition


Hello!

I want to do a new partition to my hda disk (already whole linux and swap). So how i can cut some space, let say 10GB, from my hda1? Or do i have to delete entire partition and recreate it and then create that third partition ? I was just thinking if i delete hda1 so could it mess up my linux.

thanks in advance !
 
Old 04-04-2005, 11:01 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 66
Post the ouput with :
Code:
/sbin/fdisk -l
(l as L in lower case)
 
Old 04-04-2005, 11:05 AM   #3
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
You could try parted.

I've never tried it, though, so I will say no more!
 
Old 04-04-2005, 11:11 AM   #4
tavixor
Member
 
Registered: Feb 2004
Distribution: Slackware 10.1
Posts: 32

Original Poster
Rep: Reputation: 16
Disk /dev/hda: 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/hda1 172 15017 119250495 83 Linux
/dev/hda2 1 171 1373526 82 Linux swap

Partition table entries are not in disk order

Disk /dev/hdg: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdg1 1 24321 195358401 7 HPFS/NTFS

Disk /dev/hdh: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdh1 1 14946 120053713+ 7 HPFS/NTFS
 
Old 04-04-2005, 11:32 AM   #5
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 66
Ok you have no free space in hda to create another partition

As mentioned you could use parted, I used it once to resize a partition
Please, keep in mind that there is a risk to loose all your data, it worked just fine
for me though

To do this, you have to boot from a bootable linux cdrom (or floppy) with the
parted program inclued, then issue the following commands
Code:
parted /dev/hda
(parted) print
# output should like :
Minor    Start       End     Type      Filesystem  Flags
1          xxx         xxx    primary   linux-swap
2          xxx         xxx    primary   ext3
At this point, note the Start number for hda2 (the second line, second column)
Then issue this command :
Code:
(parted) resize 2 XXX 8000
(parted) quit
2 is the minor number of the partition (hda2), XXX is the start number you noted previously
and 8000 is the new partition size in megabytes (for example)

Then remove your cdrom and reboot, hopefully it worked

[edit]
It seems that from your output, the swap partition is hda2...
(I did not read it well)
So you will have to delete hda2 first, then resize hda1
then create a new hda2 partition starting at the end number for hda1
(use the print command after each operation and use the help command too)

Last edited by keefaz; 04-04-2005 at 11:48 AM.
 
Old 04-04-2005, 11:53 AM   #6
PhilD
Member
 
Registered: Mar 2003
Location: Iowa, US
Distribution: Gentoo!!, Mandrake 9.1
Posts: 170

Rep: Reputation: 30
There is also a gui for parted called qparted. It is included on Knoppix I know. It looks almost exactly like partition magic and works just as well. I have even manipulated NTFS partitions for XP with it with no problems.

If you like little bars to drag around to move or resize partitions I would recommend this!

PhilD
 
Old 04-04-2005, 12:36 PM   #7
tavixor
Member
 
Registered: Feb 2004
Distribution: Slackware 10.1
Posts: 32

Original Poster
Rep: Reputation: 16
Thanks for every one !
I will give a try when i found a working floppy disk drive .
I tried qtparted but when i ran make install it gives a error something like this "cannot compute sizeof (char *), 77 see config.log blablabla". I'm so tired right now so maybe i try to fix it anothertime.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a partition bigger Tsukasa7 Linux - Newbie 8 10-24-2005 12:41 PM
making FAT32 partition reakinator Linux - Newbie 5 10-14-2005 08:51 PM
making partition for second linux OldSarge Linux - Software 4 01-18-2005 05:38 AM
Partition Magic eval not making partition SidA Fedora 7 03-16-2004 05:32 AM
making a new partition zexter Linux - Software 1 12-03-2003 06:26 AM


All times are GMT -5. The time now is 05:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration