LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-24-2002, 10:26 PM   #1
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
Parted (and partitioning in general)


(parted) p
Disk geometry for /dev/hda: 0.000-38166.679 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 3686.792 primary ntfs boot
2 3686.792 38162.219 extended lba
5 3686.823 6400.898 logical ext3
6 6400.929 7201.010 logical fat16
7 7201.042 38162.219 logical fat32

(parted) resize 5 3686.823 7201.010
Warning: Partition is being used.
Ignore/Cancel? I
Start? [3686.8228]?
End? [6400.8979]? 7201.010
Warning: Filesystem was not cleanly unmounted! You should e2fsck.
Ignore/Cancel? I
Warning: You requested to resize the partition to 3686.823-7201.010Mb. The
closest Parted can manage is 3686.823-6400.898Mb.
OK/Cancel? OK
(parted)


ARGH!!! i can't add partition 6 onto 5 for some reason?!!! any idea's? or could somebody point me in a direction on how to make a boot disk (mine got corrupt ) so i can boot in without the the partition being mounted...maybe that'll help? but then how would i get parted onto that disk because i'd overshoot the capacity of the disk
also, why would it be taking a guess for the end, and place it at its original end, even when i specified otherwise!?

The main thing im trying to achieve is to give my linux partition more space...does anybody else recommend another program maybe?
 
Old 10-25-2002, 06:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
use mkbootdisk to erm.. "mk" a boot disk
 
Old 10-25-2002, 06:20 AM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
You can also use Slack cd as a boot disk...
Partition 5 and 6 are different types... If you'd like to add the fat partition to the Liux one, first delete partition 6 (after backup is done) and then add the free space to 5.
 
Old 10-25-2002, 06:35 AM   #4
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
i tried mkbootdisk but the cmd didn't work...

i tried what you suggested Mara...
I removed partition 6: rm 6
then tried: resize 5 3686.823 7201.010
well, i got further this time...i rebooted and booted up fine etc...but for some reason, that space has just disappeared!! i did df -h and 100% was still used on the linux partition...i rebooted into windows and checked partition magic, there isn't any unallocated space...that drive in windows (which was blank anyway) has disappeared...
it hasn't added onto the linux partition, its just gone! wtf?!!!!
 
Old 10-25-2002, 07:02 AM   #5
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
Ok i don't get this...if i go into parted, and do p to print the partitions it prints this out:

(parted) p
Disk geometry for /dev/hda: 0.000-38166.679 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 3686.792 primary ntfs boot
2 3686.792 38162.219 extended lba
5 3686.823 7201.010 logical ext3
6 7201.042 38162.219 logical fat32

so its saying that #5 has been resize to 7201...which in theory should be about 3.5 gig correct?

but when i do df -h it get this:
bash-2.05a# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda5 2.6G 2.6G 0 100% /

/me = confused

any idea's?
 
Old 10-25-2002, 03:45 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Fun fsck on this partition (from a boot disk, or your installation cd). It should make it correct.
 
Old 10-25-2002, 10:30 PM   #7
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
how can i boot off of the cdrom as if its a bootdisk?

also, ive tried to find images of slackware 8.1 bootdisk's on the net, ive done a search for "Making a Slackware 8.1 Bootdisk" etc, but all that comes up is how they work, not how to make one...could somebody maybe point me in the direction of making one under linux?
also, one that'll have fsck on it too...coz i tried booting off one of those floppy distro's...but it didn't have fsck
 
Old 10-26-2002, 10:11 PM   #8
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
ok i booted up with the cdrom to the prompt before you type setup and ran fsck
this is what i got:
fsck /dev/hda5
fsck 1.26 (3-Feb-2002)
e2fsck (8-Mar-2002)
/dev/hda5: clean, 164603/720896 files, 694110/694803 blocks

now, a couple of reboots before i did this, when i started up slacky, a sort of 'scan disk' ran (i think thats what this cmd does too?) and it fixed like 30+ errors...but still, it thinks theres only 2.6gig on that partition! argh!! 800meg has vanished! could it have been that i ran parted while logged in as root, deleted that fat16 partition, didn't restart, then tried to extend the root partition (/dev/hda5) to take the space that the fat16 partition was occupying?
 
Old 10-27-2002, 09:31 AM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Hmmm... Was the FAT partition mounted when you deleted it? If so, boot from the cd, run parted, make the Linux partition smaller (10-15megs is enough), save, reboot, look for results, if it looks OK boot the cd again and resize it back. You should never resize a partition that's mounted (not only resize... also delete etc).
 
Old 10-27-2002, 11:56 PM   #10
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
no, it wasn't mounted when i deleted it...nothing was using it...but i _was_ booted normally, so the root partition was mounted as i was trying to resize it...whoops, heh

hmmm, that suggestion sounds logical

but the one thing that i can't see is how im going to run parted, when i had to download it and install it...and seeings as im booting off of the CD, it won't be installed...

Last edited by Grim Reaper; 10-27-2002 at 11:59 PM.
 
Old 10-29-2002, 01:02 AM   #11
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
Mara? Anybody?


UPDATE: I've just noticed in Partition Magic back in windows (I thought I had already checked it, but i guess not after that fsck)...Partition Magic is reporting that 3,514.2meg is the size of the partition and 3,5,11.6 is used...then in another column it says: Unused MB 2.6gig, but when i do df -h in linux, it reports only 2.6 gig...still confused...i heard that Partition Magic 8 resizes ext2 partitions, so ill download that in the mean time till somebody replies with how i would run parted once ive booted to the prompt via the cd...


UPDATE: I downloaded and installed partition magic, but it won't resize my FAT32 partition to take off 70meg, and add it onto the Ext3 partition...well it won't even take off the 70 meg
ah well, there goes that idea, hehe...

Last edited by Grim Reaper; 10-29-2002 at 03:40 AM.
 
Old 10-30-2002, 12:52 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
I was quite busy... What's the situaltion now?
 
Old 10-31-2002, 12:11 AM   #13
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
umm, its still the same problem, but im yet to try your suggestion of booting in with the cdrom and running parted because i can't see how i can get parted to run...i can't install it because when it boots up off of the cd its only using 5 meg space, with 400kb free...any idea's?
 
Old 11-01-2002, 01:36 PM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
It's using ramdisk. Try to mount the cdrom, parted should be there (but I don't have a Slack cd now to check it for sure).
 
Old 11-02-2002, 01:51 AM   #15
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
No the thing is i downloaded parted off of their site and installed it from a tarball...and there isn't enough room to install the tarball in the ramdisk
 
  


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
Help using parted gauntalus Linux - Software 5 12-26-2004 04:40 PM
general partitioning scheme Godsmacker777 Linux - Newbie 4 12-14-2004 10:07 AM
Using Parted Mathiasdm Linux - Software 7 08-23-2004 04:10 AM
Partitioning: GNU Parted Gerardoj Linux - General 1 06-01-2003 02:50 AM
fdisk/partitioning in general question weedwacker Linux - Newbie 2 08-13-2002 02:18 AM


All times are GMT -5. The time now is 08:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration