Notices


Reply
Thread Tools
humble's Avatar
Posts: 355 | Thanked: 395 times | Joined on Dec 2009 @ USA
#1
gnu-parted: is "a partition manipulation program"

Description:
"parted is a disk partitioning and partition resizing program. It allows you to create, destroy, resize, move and copy ext2, ext3, linux-swap, FAT and FAT32 partitions. This is useful for creating space for new operating systems, reorganizing disk usage, and copying data to new hard disks."

Code:
SYNOPSIS
parted [options] [device [command [options...]...]]

  align-check TYPE N                        check partition N for TYPE(min|opt)
        alignment
  check NUMBER                             do a simple check on the file system
  cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER   copy file system to another partition
  help [COMMAND]                           print general help, or help on
        COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition
        table)
  mkfs NUMBER FS-TYPE                      make a FS-TYPE file system on
        partition NUMBER
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  mkpartfs PART-TYPE FS-TYPE START END     make a partition with a file system
  move NUMBER START END                    move partition NUMBER
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table,
        available devices, free space, all found partitions, or a particular
        partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START
        and END
  resize NUMBER START END                  resize partition NUMBER and its file
        system
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition
        NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and
Parted User's Manual = more in-depth than above

this is a ruff port that seems to work well (needs testing thou. not only that but feedback too)
i just requested a project page in garage so give it 72hr to be up(will post link in this post)

Garage Page:

http://gnu-parted.garage.maemo.org/

gnu-parted is now avilable in Fremantle Extras-devel free armel

Note: if you installed the test package please remove it.
it does not have "partprobe"(is it needed but its apart of gnu parted when install on desktop)

Enjoy

Last edited by humble; 2010-12-23 at 23:50. Reason: added manual
 

The Following 24 Users Say Thank You to humble For This Useful Post:
humble's Avatar
Posts: 355 | Thanked: 395 times | Joined on Dec 2009 @ USA
#2
not sure if its right so i'm not going to upload to repositories (yet).
i put parted's binaries in "/opt/parted" and "ln -s" them to "/sbin" so we save ~1.5 MB off rootfs (but let me know if its ok then i upload to repositories).

Note: please uninstall previous version.

optified version here
__________________
Would you like to Donate?

My"Current Project(s)":
[Resurrecting] DON
 

The Following User Says Thank You to humble For This Useful Post:
Posts: 270 | Thanked: 45 times | Joined on May 2010 @ UK
#3
Hi i just downloaded the parted software so i can partition my 8gb micro sd card to use it for running nitdroid but as i am a noob and dont know much about linux dont understand how to use this software and what to write or what to do to get my card partitioned to use with nitdroid is it possible you could help me with the commands i need to enter to do this please
 
kingoddball's Avatar
Posts: 1,187 | Thanked: 816 times | Joined on Apr 2010 @ Australia
#4
@romiiio - For SD partitioning, use sfidk on N900. There are many guides around here. I added a few around in the Alternatives section.

Besides.. You want to install NITDroid?
(enable all repos)
Code:
 sudo apt-get install nitdroid-installer
nitdroid
Wait. Coffee... Reboot. Nitdroid.. ENJOY!

Edit: If you want 2.3.1 after you play with NITDroid, head to alternatives and see in threads, I popped in some instructions (so have many others )
__________________
The thanks button? Sure! You can press it! I would!

Last edited by kingoddball; 2011-01-15 at 10:48.
 
Posts: 270 | Thanked: 45 times | Joined on May 2010 @ UK
#5
Hi thanks for your reply where can i find this sfidk? i look in the app manager its not there plus i did a search on the forum and nothing came up! sorry i'm a bit lost! please explain in detail it will be be greatly appreciated
 
Posts: 270 | Thanked: 45 times | Joined on May 2010 @ UK
#6
i just tried the above code it asked for password i dont know the password!
 
Posts: 270 | Thanked: 45 times | Joined on May 2010 @ UK
#7
i have installed the nitdroid-installer but when i run it it keeps getting stuck on prtition 2 the ext3 and nothing happens thats why i thought maybe i need to partition my sd card i am soo confused please help!
 
humble's Avatar
Posts: 355 | Thanked: 395 times | Joined on Dec 2009 @ USA
#8
this isnt the place for that sh** start a new thread

@kingoddball come on dude this is GNU PARTED not sfck
__________________
Would you like to Donate?

My"Current Project(s)":
[Resurrecting] DON

Last edited by humble; 2011-01-15 at 11:06.
 
Posts: 270 | Thanked: 45 times | Joined on May 2010 @ UK
#9
I'm sorry just thought you might be able to help with partition as i read and downloaded parted but no worries thanks for all your help sorry to offend you! have a good day d:-)
 
humble's Avatar
Posts: 355 | Thanked: 395 times | Joined on Dec 2009 @ USA
#10
@romiiio

general guide for making a partition on mmc.

Code:
open terminal

"root" press enter.

"umount /dev/mmcblk1p1" (unmount mmc's first partition.) press enter.

"parted" press enter.

"resize" (its going to ask what partition number?)
 put "1" then press enter.

Start? [32.3kB]? (that should be fine.) press enter.
End? [8166MB]? (here put what is good for your needs.) example 6000MB then press enter.

you've just resized your mmc.

"print free" (to see where to start new partition.) press enter.
 
"mkpartfs" press enter.

Partition type? primary/extended ("p" for primary or "e" extended  for should be good enough.) press enter.

File system type [ext2?] (it's fine for now so..) press enter.

Start? (now put where you would like it to start.) example 6032MB then press enter.
End?   (now put where you would like it to end.) example 8166MB then press enter.

"quit" press enter.
you have successfully created a 2.1GB partition. this is a working example

Edit: parted does not make ext3 so quit parted
and then "mkfs.ext3 /dev/mmcblk1p2"
__________________
Would you like to Donate?

My"Current Project(s)":
[Resurrecting] DON

Last edited by humble; 2011-01-15 at 13:11. Reason: adding/refining
 

The Following User Says Thank You to humble For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 00:10.