Sponsored Content
Top Forums UNIX for Dummies Questions & Answers I need help choosing a linux. Post 302095658 by pbsrinivas on Wednesday 8th of November 2006 10:01:59 PM
Old 11-08-2006
Quote:
Originally Posted by lithuaniaakid
i have 32 g of free space how do you partion???

u said u are good at windows Smilie

Load ur Windows CD and try it out but the data u have on the drive u r trying to make partion will be lost

U can even try Control Panel/Administratiive Tool/Computer Management/Storage/DiskManagement same data loss applies here too

and the best is to try some software like Partition Magic etc which create a partition without deleting and available data
 

9 More Discussions You Might Find Interesting

1. Programming

Choosing Java or C++

Listen, if you know a bit of programming in C and need to program unix-type operating systems the next transitive stage is for sure C++. However, have in mind that Java is like learning C but 99% object-oriented(o.o.) and with no pointers or memory-management tricks. It would be good for you to see... (5 Replies)
Discussion started by: SolidSnake
5 Replies

2. Linux

Choosing Linux Kernel

Hi All I recently upgraded my Mandrake 9.1 box to Mandrake 10.0 and the 2.6 kernel. However when I execute uname -a I still get a 2.4 kernel: Linux hostname 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686 unknown unknown GNU/Linux I assume this means I am still booting into a 2.4 kernel?... (1 Reply)
Discussion started by: saabir
1 Replies

3. UNIX for Dummies Questions & Answers

Choosing a version

I know that the rules say no school questions but I am in advanced topics and am going to go to college for programming and I want to find a easy first OS to start me out, please help, thanks (3 Replies)
Discussion started by: KoKo
3 Replies

4. Linux

Choosing the best distro.

Hi all Help me find the best distro for the following configurations: Intel pentium IV 1.6 Ghz 128 MB RAM :( 40 GB Hardisk with one very big partition more than 35 gb n another 2 gb partition. windows xp is already installed but has enough free space (26gb). Which linux will be... (0 Replies)
Discussion started by: bbala
0 Replies

5. Slackware

Help for choosing Slackware

Dear Friends, If I use Slackware for learning whether it will make any confusion in administering/using Redhat and SuSE since I have checked slackware is more like BSD. Thank you. (4 Replies)
Discussion started by: Tlogine
4 Replies

6. UNIX for Dummies Questions & Answers

Help Choosing Unix/Linux for Project management

I'm in the process of really comitting to learning a Unix or Linux OS/distro really well for career opportunities and to use as my main desktop OS. I've been mulling through the choices and I'm having a hard time. Maybe someone can help me. I'm not a noob and I have some FreeBSD and Slackware /... (1 Reply)
Discussion started by: lobill
1 Replies

7. Shell Programming and Scripting

Dynamically choosing the interpreter

Hi, Is it possible to choose the inerpreter conditionally. For example, if whereis bash returns /usr/bin/bash then i need to choose #!/usr/bin/bash else i need to use #!/usr/bin/sh. Is it possible to achieve in a shell script? Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies

8. Linux

Choosing a UNIX

i have a project in numerical calculus in c language what unix i get better for this? (7 Replies)
Discussion started by: gitac
7 Replies

9. Linux

Help choosing distro

Hi, I just ordered an Skylake NUC and will run Linux on it. My distro of choice has been Ubuntu but I am fed up with the release cycle and would like more of a rolling release. I would say I am an intermediate level Linux user. It's going to be a HTPC, I want to have the latest kernels... (0 Replies)
Discussion started by: rthorntn
0 Replies
Data::ObjectDriver::Driver::Partition(3pm)		User Contributed Perl Documentation		Data::ObjectDriver::Driver::Partition(3pm)

NAME
Data::ObjectDriver::Driver::Partition - base class for partitioned object drivers SYNOPSIS
package SomeObject; __PACKAGE__->install_properties({ ... primary_key => 'id', driver => Data::ObjectDriver::Driver::Partition->new(get_driver => &find_partition), }); # Say we have a list of 5 arrayrefs of the DBI driver information. my @DBI_INFO; sub find_partition { my ($part_key, $args) = @_; my $id; if (ref $terms && ref $terms eq 'HASH') { # This is a search($terms, $args) call. my $terms = $part_key; $id = $terms->{id} or croak "Can't determine partition from a search() with no id field"; } else { # This is a lookup($id) or some method invoked on an object where we know the ID. my $id = $part_key; } # "ID modulo N" is not a good partitioning strategy, but serves as an example. my $partition = $id % 5; return Data::ObjectDriver::Driver::DBI->new( @{ $DBI_INFO[$partition] } ); } DESCRIPTION
Data::ObjectDriver::Driver::Partition provides the basic structure for partitioning objects into different databases. Using partitions, you can horizontally scale your application by using different database servers to hold sets of data. To partition data, you need a certain criteria to determine which partition data goes in. Partition drivers use a "get_driver" function to find the database driver for the correct partition, given either the arguments to a "search()" or the object's primary key for a "lookup()", "update()", etc where the key is known. SUGGESTED PRACTICES
While you can use any stable, predictable method of selecting the partition for an object, the most flexible way is to keep an unpartitioned table that maps object keys to their partitions. You can then look up the appropriate record in your get_driver method to find the partition. For many applications, you can partition several classes of data based on the ID of the user account that "owns" them. In this case, you would include the user ID as the first part of a complex primary key. Because multiple objects can use the same partitioning scheme, often Data::ObjectDriver::Driver::Partition is subclassed to define the "get_driver" function once and automatically specify it to the Data::ObjectDriver::Driver::Partition constructor. Note these practices are codified into the Data::ObjectDriver::Driver::SimplePartition class. USAGE
"Data::ObjectDriver::Driver::Partition->new(%params)" Creates a new partitioning driver. The required members of %params are: o "get_driver" A reference to a function to be used to retrieve for a given object or set of search terms. Your function is invoked as either: o "get_driver(\%terms, \%args)" Return a driver based on the given "search()" parameters. o "get_driver($id)" Return a driver based on the given object ID. Note that $id may be an arrayref, if the class was defined with a complex primary key. o "pk_generator" A reference to a function that, given a data object, generates a primary key for it. This is the same "pk_generator" given to "Data::ObjectDriver"'s constructor. "$driver->search($class, $terms, $args)" "$driver->lookup($class, $id)" "$driver->lookup_multi($class, @ids)" "$driver->exists($obj)" "$driver->insert($obj)" "$driver->update($obj)" "$driver->remove($obj)" "$driver->fetch_data($what)" Performs the named action, by passing these methods through to the appropriate database driver as determined by $driver's "get_driver" function. DIAGNOSTICS
No errors are created by Data::ObjectDriver::Driver::Partition itself. Errors may come from a specific partitioning subclass or the driver for a particular database. BUGS AND LIMITATIONS
There are no known bugs in this module. SEE ALSO
Data::ObjectDriver::Driver::SimplePartition LICENSE
Data::ObjectDriver is free software; you may redistribute it and/or modify it under the same terms as Perl itself. AUTHOR &; COPYRIGHT Except where otherwise noted, Data::ObjectDriver is Copyright 2005-2006 Six Apart, cpan@sixapart.com. All rights reserved. perl v5.12.4 2011-08-29 Data::ObjectDriver::Driver::Partition(3pm)
All times are GMT -4. The time now is 03:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy