LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-24-2004, 12:24 PM   #1
rogk
Member
 
Registered: Feb 2004
Location: Finland
Distribution: Mandrake 10.0
Posts: 70

Rep: Reputation: 15
fdisk


I'll try to learn those linux commands and now is "fdisk" turn. "fdisk is maybe more than a command. Here is my question, could I change my partitions with fdisk, if I partioned the disk in installation like this - "boot", "swap" and the rest is "/"? I have tried the "fdisk" but I didn't do the "w" command there. There isn't anything important in my computer, I just want to know could I add the "usr" and "home" partitions without a new Mandrake installation?
 
Old 07-24-2004, 12:34 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
fdisk only reads/changes/writes the partition table. It does not move data around to match changes you are contemplating. There are programmes that do what you wish:
parted
http://www.gnu.org/software/parted/m...no/parted.html

and PartitionMagic
 
Old 07-24-2004, 01:30 PM   #3
rogk
Member
 
Registered: Feb 2004
Location: Finland
Distribution: Mandrake 10.0
Posts: 70

Original Poster
Rep: Reputation: 15
Could you tell me more about "fdisk"? What exactly could I do with it? I don't understand these things very well with my knowledge?
 
Old 07-24-2004, 02:49 PM   #4
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
There is an area on the harddrive called the partition table. It records where each filesystem on the harddrive begins and ends and what type of filesystem it is. With fdisk you can change the number and kinds of partitions and their starting and ending places, but you cannot move the existing data around so changing the table with fdisk can cause you to lose data. This is not important if you do not care about existing data. This is less imprtant if you have a backup. This is suicidal if you have imprtant data on the drive and change the starting point of a filesystem and allow the filesystems to be written/deleted/formatted.

When fdisk starts, it reads the partition table. You can edit the table in memory, but, until you tell fdisk to write it back to disk, nothing irreversible happens.

One can use the anaolgy of a book. The partition table is like the table of contents. If you change the table to say Chapter 3 starts on page 47 instead of 23 and the reader needs to use the table, the book is useless unless you edit the book to adjust Chapter 3 in the book and the table both. Otherwise, one needs to rewrite the book.
 
Old 07-24-2004, 03:25 PM   #5
rogk
Member
 
Registered: Feb 2004
Location: Finland
Distribution: Mandrake 10.0
Posts: 70

Original Poster
Rep: Reputation: 15
Thank you very much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
Fdisk help GUIPenguin Linux - General 3 01-22-2005 04:24 PM
using fdisk jonn Linux - Newbie 2 08-03-2004 04:10 PM
Fdisk rstmn957 Slackware 2 12-23-2003 08:15 PM
can't fdisk new hd nmistry Linux - Hardware 4 11-03-2003 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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