Be Inquisitive ! Be Curious !! Explore !!! Enjoy !!!!

Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Linux fdisk command

| Monday, August 15


About fdisk
Partition table manipulator for Linux.
Syntax
fdisk [-u] [-b sectorsize] [-C cyls] [-H heads] [-S sects] device

fdisk -l [-u] [device ...]

fdisk -s partition ...

fdisk -v
-b sectorsizeSpecify the sector size of the disk. Valid values are 512, 1024, or 2048. (Recent kernels know the sector size. Use this only on old kernels or to override the kernelâs
ideas.)
-C cylsSpecify the number of cylinders of the disk. I have no idea why anybody would want to do so.
-H headsSpecify the number of heads of the disk. (Not the physical number, of course, but the number used for partition tables.) Reasonable values are 255 and 16.
-S sectsSpecify the number of sectors per track of the disk. (Not the physical number, of course, but the number used for partition tables.) A reasonable value is 63.
-lList the partition tables for the specified devices and then exit. If no devices are given, those mentioned in /proc/partitions (if that exists) are used.
-uWhen listing partition tables, give sizes in sectors instead of cylinders.
-s partitionThe size of the partition (in blocks) is printed on the standard output.
-vPrint version number of fdisk program and exit.
Examples
Tip You most have root access for this command to work.
fdisk -l
List the partition information of the computer you're logged into. Below is an example of what this output may look like.
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 191 1534176 83 Linux
/dev/sda2 192 2231 16386300 83 Linux
/dev/sda3 2232 3506 10241437+ 83 Linux
/dev/sda4 3507 30401 216034087+ 5 Extended
/dev/sda5 3507 3767 2096451 82 Linux swap / Solaris
/dev/sda6 3768 3832 522081 83 Linux
/dev/sda7 3833 30401 213415461 83 Linux

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 30401 244196001 83 Linux
Warning The DOS 6.x FORMAT command looks for some information in the first sector of the data area of the partition, and treats this information as more reliable than the information in
the partition table. DOS FORMAT expects DOS FDISK to clear the first 512 bytes of the data area of a partition whenever a size change occurs. DOS FORMAT will look at this extra
information even if the /U flag is given -- we consider this a bug in DOS FORMAT and DOS FDISK.

The bottom line is that if you use fdisk to change the size of a DOS partition table entry, then you must also use dd to zero the first 512 bytes of that partition before using
DOS FORMAT to format the partition. For example, if you were using disk to make a DOS partition table entry for /dev/sda1, then (after exiting fdisk and rebooting Linux so that
the partition table information is valid) you would use the command "dd if=/dev/zero of=/dev/sda1 bs=512 count=1" to zero the first 512 bytes of the partition.

BE EXTREMELY CAREFUL if you use the dd command, since a small typo can make all of the data on your disk useless.

For best results, you should always use an OS-specific partition table program. For example, you should make DOS partitions with the DOS FDISK program and Linux partitions with
the Linux fdisk program.
Read more...

Zenwalk Linux 5.2 now ready for download

| Sunday, July 24


After more than four months of hard work the team Zenwalk is proud to announce the availability of the final version of its power Slackware distributions, Zenwalk Linux 5,2: "The long expected Zenwalk 5,2 is now available. In the 4 months since the last release of a number of improvements have been made. Zenwalk of GNU / Linux OS, to its users both the latest software stable, well-polished Desktop and increasing software store. "inclusion of over 500 changes (bug fixes, software updates and many other improvements), Zenwalk 5,2 carry your revamped and revamped package manager, Netpkg of the (new generation) version 4, which has been completely rewritten in Perl-GTK; reasonable media player for Linux, MPlayer, which has improved maintenance for DVD menus; Brasero, as the default, CD / DVD burning utility and the latest version of GIMP editor of images, 2.4.6!

Moreover, Zenwalk 5,2 comes packaged with some new works of art, is now powered by Linux kernel 2.6.25.4 and Xfce 4.4.2 and resurrected in a summary / stop operations. Also, increasingly Web-based software store is now available for all users Zenwalk: "Many believers customers ask us to be a source of stock, rather than sending the source DVD discs on demand. So they have worked in mechanism to allow the development team to publish the source tarballs for each new package we release. This source of storage is now 100% ready for ISO packages, and contributed packages (aka "extra") is a source of stock active population. "

Having powered by the popular Linux distribution Slackware, Zenwalk Linux 5,2 comes with useful applications for everyday use. Among them, we can notice:
• Mozilla Firefox
• Mozilla Thunderbird
• Pidgin Multi-protocol Instant Messenger (MSN, Yahoo, ICQ, AIM, IRC)
• Openoffice.org Office Suite
• Abiword Word Processing
• Gnumeric Spreadsheet
• Tea Text Editor
• Gtkam Photo Viewer
The GIMP
• Bluefish HTML Editor
• Leafpad Text Editor
• Vim Advanced Text Editor
• Alsa Sound Server
• Gxine/Xine Media Player
• Brasero CD/DVD Burning Tool
If you wanto to download Zenwalk Linux 5,2 you can download it now from Softpedia.
Read more...

openSUSE 11.1 Alpha 1 KDE 4 desktop

|


For you that really fall in love in OpenSuse, it's a good news, the OpenSuse 11.1 is now out.







The first alpha version of openSUSE 11.1 was announced
last night by the hard working people behind the openSUSE project: "While testing this on a Thinkpad R51, the system didn't boot after first stage installation. We are still looking into this issue (#411937). In addition to that, the default GNOME installation will complain about a missing package (providing gnome-session-branding)," said Christoph Thiel in the release announcement. Therefore, the DVD version of this first alpha is not recommended to be used for installation. Among the new technologies and applications included in the final version of openSUSE 11.1, due for release on December 18th, you'll find:

• Linux kernel 2.6.27
• KDE 4.1.1
• KDE 3.5.10 (optional)
• GNOME 2.24
• OpenOffice.org 3.0
• Software update stack improvements and many more...

Download and test openSUSE 11.1 Alpha 1 right now from Softpedia.
The stable openSUSE 11 release can also be downloaded from Softpedia.
Read more...