LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-15-2010, 08:32 AM   #1
Orangutanklaus
Member
 
Registered: May 2006
Posts: 93

Rep: Reputation: 15
The need of a partition


Hiho mates!

I've surprisely recognized that it's possible to write a filesystem on a hard disk without any valid partition. Well, the general advantages of partitions are clearly. But what are possible disadvantages or limitaions if you don't use a partition (e.g. if you want to use the complete space as one volume for data mining or so)?

Regards
pace
 
Old 11-15-2010, 09:19 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
The only disadvantage is that it could confuse the sysadmin who, finding no partitions, might assume the disk was not being used!
 
1 members found this post helpful.
Old 11-15-2010, 10:31 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
No limitations that I aware of but I agree it could cause a lot of confusion.
 
Old 11-16-2010, 10:16 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
I'd have thought that the disk actually had one partition, i.e. the whole thing. You can't usually format a drive until you've labled it, that is, written the partition data to it. If you buy a disk it probably has a partition file already on it.

Play Bonny!
 
Old 11-16-2010, 10:35 AM   #5
Orangutanklaus
Member
 
Registered: May 2006
Posts: 93

Original Poster
Rep: Reputation: 15
Sometimes, yes. But my new hard disk drives haven't any partitions from scratch. Further I don't believe that you can equate a blank drive with a "full size partition".
 
Old 11-16-2010, 11:24 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
External drives are usually already partitioned/formatted from the factory but internal drives are not. Many embedded systems record raw data directly to a disk or maybe to a partition without a file system. I have several Imation flash drives that are not partitioned. Neither windows or linux has any problems with reading or writing to them.
 
Old 11-16-2010, 03:26 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
It has been a long time since drives and tapes have been used in raw mode or other OS's and computer types.

Most linux doc's say you should not do it in linux.

There is little to be gained anymore.
 
Old 11-16-2010, 05:07 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
Originally Posted by jefro View Post
It has been a long time since drives and tapes have been used in raw mode or other OS's and computer types.

Most linux doc's say you should not do it in linux.

There is little to be gained anymore.
I would agree.
 
Old 11-16-2010, 05:21 PM   #9
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
i would add that there are still some drives that are accessed in raw mode
those would be floppies (1.44 megs isn't really big enough to split into partitions\,though i believe you CAN partition a floppy in linux) and optical disks such as cd/dvd/blu-ray disks
any larger storage mediums though use partitions
 
Old 11-16-2010, 06:41 PM   #10
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Hmmm... Disks, including floppies are block devices. The last floppies I bought were DOS preformatted. You need to have a partition, which may be the whole drive, before you can format the drive and create a file system on the partition. Flash drives under 4Gb are usually preformatted as FAT32 devices.
I have to admit that most of my experience has been with Sun systems where the Solaris Format command allows the geometry of the disk to be re-defined but you can not format the drive until it has had the partition lable written to it.
I remember formatting a R/W CD once which meant we had a CD that acted as it it were a 680Mb floppy. If you buy a new disk for internal use, it'll be preformatted, probably NTFS. I don't believe you can write data to a disk with an undefined file system!

Play Bonny!
 
Old 11-16-2010, 09:02 PM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by jefro View Post
It has been a long time since drives and tapes have been used in raw mode or other OS's and computer types.

Most linux doc's say you should not do it in linux.

There is little to be gained anymore.
Do any of those docs (it would be nice to have links) say why not?
 
Old 11-16-2010, 09:47 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by Soadyheid View Post
You need to have a partition, which may be the whole drive, before you can format the drive and create a file system on the partition.
Rubbish. Read the first post in this thread.
Quote:
I don't believe you can write data to a disk with an undefined file system!
This may be your experience on Solaris (and maybe even Windows), but is most certainly not true.
 
Old 11-16-2010, 10:01 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
From wiki but I have read it many times.

"There are large differences in how disk errors are processed by various kernels. Operating systems such as FreeBSD, NetBSD, OpenBSD, Solaris, as well as different Linux kernels (i.e. hda vs. sda (<2.6.20)) behave differently. Also, Linux lacks "raw" disk devices like *BSD has, which makes it less desirable for low-level data recovery. Non-raw devices read larger blocks than requested, obscuring the actual location where the error occurred. You may wish to use "dmesg |tail -n8" to see the error messages on the console."


I'd bet you can't provide me any good reason to use a raw hard drive in any normal linux situation. As I pointed out before other OS's and other hardware are not part of this situation. If using raw hard drives were to be of any good use I think we would have seen all sorts of Distro's showing us how to use them. My guess is 99% of advanced users have only limited uses for a raw hard drive. Everyone else uses then like normal partitioned and formatted drives.

Sure one could make a claim that swap space on a raw drive is faster, I agree. Sure one might even make a claim about more usable space and that would be true as it is in other OS's. I might even agree with some raid arrays having a use.

I still think the average use is a partition and a properly selected format.

Last edited by jefro; 11-16-2010 at 10:09 PM.
 
Old 11-17-2010, 07:08 PM   #14
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
On Linux raw devices are deprecated and scheduled for removal, because the O_DIRECT flag can be used instead.[1] Instead of accessing a special raw device file, the application simply can (and should!) access a file with the O_DIRECT flag enabled, and caching will be disabled. Since there is still a userbase for raw devices and applications without support for O_DIRECT still exist, it has been a controversial subject on the Linux kernel mailing list.Raw devices are character devices (major number 162). The first minor number (i.e. 0) is reserved as a control interface and is usually found at /dev/rawctl. A utility called raw (see man raw) can be used to bind a raw device to an existing block device. These "existing block devices" may be disks or CDROMs/DVDs whose underlying interface can be anything supported by Linux (e.g. IDE/ATA or SCSI)
Source: Wikipedia, "Raw Device"

I stand corrected.

Play Bonny!
 
1 members found this post helpful.
Old 11-17-2010, 08:34 PM   #15
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I found that post helpful.
 
  


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
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 01:31 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:14 PM.

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