LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Parted (and partitioning in general) (https://www.linuxquestions.org/questions/linux-software-2/parted-and-partitioning-in-general-33674/)

Grim Reaper 10-24-2002 09:26 PM

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?

acid_kewpie 10-25-2002 05:03 AM

use mkbootdisk to erm.. "mk" a boot disk

Mara 10-25-2002 05:20 AM

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.

Grim Reaper 10-25-2002 05:35 AM

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?!!!!

Grim Reaper 10-25-2002 06:02 AM

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:confused:

any idea's?

Mara 10-25-2002 02:45 PM

Fun fsck on this partition (from a boot disk, or your installation cd). It should make it correct.

Grim Reaper 10-25-2002 09:30 PM

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 :(

Grim Reaper 10-26-2002 09:11 PM

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?

Mara 10-27-2002 08:31 AM

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).

Grim Reaper 10-27-2002 10:56 PM

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...:confused:

Grim Reaper 10-29-2002 12:02 AM

Mara? Anybody? :confused: :cry:


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...

Mara 10-30-2002 11:52 AM

I was quite busy... What's the situaltion now? :)

Grim Reaper 10-30-2002 11:11 PM

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?

Mara 11-01-2002 12:36 PM

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).

Grim Reaper 11-02-2002 12:51 AM

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


All times are GMT -5. The time now is 08:46 PM.