LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2008, 12:35 PM   #1
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Rep: Reputation: 30
Disk Partitions


Do extended / Logical partitions offer the same protection as Primary partitions?

Meaning.... are logical partitions safe from data being written over to the next logical partition even though they all are within a primary partition?
 
Old 02-21-2008, 01:24 PM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
disk partiotions

Put it this way if you divide you,re drive in different partitions
you can create in each partition logical drives
For the programs each logical drive is totally separate drive





good luck
 
Old 02-21-2008, 02:26 PM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
The primary/logical difference is primarily in the data structures used on disk to store the information about the partitions. The behavior of the partitions in Linux doesn't depend on that: Linux won't let you overwrite sda6 by an incorrect operation on sda5.

But Linux will allow you to destroy any of the partitions by an incorrect operation on sda (assuming you are root or have some other way gotten write access to sda). I'm not certain, but I think the same applies to sda4, assuming sda4 is an extended partition containing logical partitions sda5 and sda6, I think root could trash sda6 by trashing sda6 directly or by trashing sda4 or by trashing sda, but couldn't do it by trashing sda5. So sda2 has a bit more protection in that root can only trash it two ways instead of three (but I could be wrong about how sda4 works).
 
Old 02-21-2008, 02:35 PM   #4
digital8doug
Member
 
Registered: Aug 2006
Location: Near Binghamton, NY-the recent FLOOD zone
Distribution: Sabayon 351, Mepis8, oSuse11.3, Kubuntu8.1, Fed10, Slack12.1 #426299 RLU
Posts: 145
Blog Entries: 1

Rep: Reputation: 15
Angry Improper use of maintenance commands can trash anything easily

Root can do anything, including execute proper syntax, but that are improperly issued commands. Linux lacks an `Edit / Undo' as administrators know better than to fdisk /dev/sda4
Not sure what Safe / protection you are referring to irt to differences btwn Primary & Logical
 
Old 02-21-2008, 02:38 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If you use low-level tools like dd, you can trash things with equal ease--no matter what kind of partitions you have. Once you are inside of a primary or logical partition, there is no difference in how things work. (Most tools, utilities, etc. would not even know what kind of partition they were operating in.)

As I understand it, Windows has a problem being in a logical partition, but that's only associated with the partition tables (ie the routing TO the partition).

Note that partition tables which include extended/logical partitions act as "linked lists"--specifically, an "extended partition" does not define space on the drive--it is only link to a partition table where the first logical partition is defined. The fact that an extended has a size is--I assume--only to tell partition managers how much space is being set aside for logicals.

I've never tried writing data to an extended partition. ( I would not attempt this on any machine being used for any real work....
 
  


Reply

Tags
partition



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
Disk partitions Tomermory Debian 7 06-05-2007 03:44 PM
Using disk partitions ecuas Linux - Newbie 3 01-24-2007 07:54 AM
removed disk partitions - disk is now too small jordanthompson Linux - Software 18 12-09-2004 03:07 PM
How many partitions on one disk? alanbarnard Linux - Newbie 3 12-04-2004 09:04 AM
Help with disk partitions gagda1 Linux - Newbie 3 10-14-2004 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:38 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