LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-27-2006, 07:38 AM   #16
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612

gpart is something else you might look at:
http://distro.ibiblio.org/pub/linux/...afx-i486-1.tgz
 
Old 07-27-2006, 09:16 AM   #17
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by drkstr
HI. Thank you everyone for your responses. For what I am going to be doing, dumping the partition table, updating it, then writing back over the original will work the best for me. This will allow me to modify the partition table without having to reboot the system (pretty neat little trick).

Moved rest of post to it's own thread since it was sort of off-topic
http://www.linuxquestions.org/questi...newthread&f=14
I'm not sure if this is a safe assumption- some OS and apps may cache the partition table and not refresh the cache. I am pretty sure for example that OpenBSD maintains a cache of its own disklabel based on what it finds during init.

It's probably best to reboot after modifying the partition table on disk.
 
Old 07-27-2006, 10:14 AM   #18
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
thanks for the warning.

The system will actually be rebooted after all is said and done. I didn't really mention the other reason for using this method which is the fact that it is "perl firendly". I need to write a perl function that will be called with rewritePartitionTable($strDeviceName); where $strDevice name = the Name of the Disk. The function will then delete a selected partition and turn it into 2 smaller partitions at a ratio of 80:20

this is for a GPL project I am working on with a friend of mine. He is writing all the user interface code and I am writing the functionality. The way the function is called is out of my controll.

regards,
...drkstr

Last edited by drkstr; 07-27-2006 at 10:31 AM.
 
Old 07-27-2006, 12:36 PM   #19
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Very interesting! Let us know how it turns out.
 
  


Reply



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
You will not be able to write the partition table ulmo_55 Slackware - Installation 6 02-20-2009 04:10 AM
How write new MBR using command line only lonecrow Linux - Newbie 2 11-02-2005 10:17 AM
Write to MBR while in the command line? EThitop Linux - Newbie 10 05-11-2004 11:04 PM
cant write partition table brandonloserkid Slackware - Installation 1 01-19-2004 01:04 AM
you will not be able to write the partition table 5oh Linux - Newbie 9 01-05-2004 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:50 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
Open Source Consulting | Domain Registration