The time now is Sun 19 May 2013, 01:14
All times are UTC - 4 |
| Author |
Message |
MustardMan
Joined: 15 May 2006 Posts: 21 Location: Australia
|
Posted: Fri 07 Dec 2012, 19:39 Post subject:
Problem with very large hard disks. Subject description: USB connected 3TB hard disk not accessable. |
|
I am unsure as to whether this problem is a bug in Puppy, so I'll start by enquiring in this sub-forum...
I am using Puppy with Kernel 2.6.31.14. I believe it is Cielo but I can't be sure as 'system information' does not tell me. I am not at the level of rebuilding Puppy to suit my own needs, so i am using an out-of-the-box download that does most things for me. I mainly run this on an EeePC (ASUS) as it was the only one I found that actually worked (details at the end for the interested).
To the problem...
I have a 3TB Western Digital (elements) hard disk. However, when I connect it to Puppy it reports a size of 746.5GB, and refuses to mount it.
At first I thought it might be the EeePC, so I booted Puppy (same version) on a desktop machine, and the same thing.
The disk is fine, as I can read/write it using both windows and ubuntu. The full capacity is reported and available.
Details of my EeePC install. The 'Cielo' version of Puppy was the only one I found that
- the sound in the EeePC worked
- it had libreoffice
- it had a VLC player install that worked
It has problems though
- the WiFi can't do AES connections. I don't use it for internet, so it is something I have not put a great deal of effort into solving.
- I would like a 'second monitor' on the external VGA port. I have to boot windoze to use this.
Cheers,
MM.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9841 Location: Arizona USA
|
Posted: Fri 07 Dec 2012, 22:33 Post subject:
|
|
This probably has nothing to do with the problem, but what filesystem is the disk formatted?
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Fri 07 Dec 2012, 22:45 Post subject:
|
|
verify the bios supports it before you get too far banging your head
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
MustardMan
Joined: 15 May 2006 Posts: 21 Location: Australia
|
Posted: Thu 27 Dec 2012, 06:07 Post subject:
|
|
OK, done a bit more thinking about this during the holidays...
If I (dual) boot the computer using Win XP, the disk is fully accessible, and the correct size is reported.
The disk is formatted NTFS: Puppy does support NTFS for all my other disks, perhaps there is a problem with large NTFS volumes?
When I ask Puppy to mount the drive, it tells me it can't, and prompts again. When I hover over the icon, it reports a disk size of about 750GB. Interestingly this is one of the 'newer' type drives with the so called 'advanced' format : the sector size is 4096 bytes rather than the usual 512 bytes.
More interestingly, if I multiply the sector size difference (8x) by the size that Puppy reports the drive size to be, I get double the actual size.
IE: 8 x 750 GB ~ 6 TB (3 TB drive).
It is probably important that I add this is an external USB attached drive (I forgot in my original post), as apparently there is some issue with internal 3TB (and larger) drives - predominantly with Windoze though.
Is Puppy OK with 4k sectors, or is there some issue?
Ubuntu is OK with this drive, so it is unlikely to be a Kernel thing (unless my Puppy is extremely out of date).
Any ideas?
Cheers,
MM.
|
|
Back to top
|
|
 |
jamesbond
Joined: 26 Feb 2007 Posts: 1531 Location: The Blue Marble
|
Posted: Thu 27 Dec 2012, 07:57 Post subject:
|
|
you need a puppy with a kernel compiled with support for GPT partition.
_________________ Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
|
|
Back to top
|
|
 |
pemasu

Joined: 08 Jul 2009 Posts: 5165 Location: Finland
|
Posted: Thu 27 Dec 2012, 09:47 Post subject:
|
|
What is the DOTconfig option called which enables gpt support ?
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9841 Location: Arizona USA
|
Posted: Thu 27 Dec 2012, 10:50 Post subject:
|
|
| pemasu wrote: | | What is the DOTconfig option called which enables gpt support ? |
Does this help? I've never compiled a kernel so I don't know what to look for.
A little background (from the Wikipedia article):
| Quote: | | Nikkel, Bruce J. (September 2009). "Forensic analysis of GPT disks and GUID partition tables". Digital Investigation 6 (1-2): 39–47. "The current popular BIOS and MBR partitioning scheme was originally developed in the early 1980s for the IBM Personal Computer using IBM PC-DOS or MS-DOS. The Basic Input/Output System (BIOS) provides an interface to the hardware and initiates the boot process (IBM, 1983). The MBR, located in sector zero, contains the initial boot code and a four entry partition table (Microsoft, 1983). Intended to solve booting and partitioning limitations with newer hardware, a replacement for both the BIOS and the MBR partition table was developed by Intel in the late 1990s (Intel, 2000). This is now called the Unified EFI (UEFI, 2008 UEFI Forum. Unified extensible firmware interface specification version 2.2 2008.UEFI, 2008) specification, and managed by the UEFI Forum (UEFI, 2009). A subset of this specification includes GUID (globally unique identification) Partition Tables, or GPT, intended to replace the DOS/MBR partition tables." |
|
|
Back to top
|
|
 |
pemasu

Joined: 08 Jul 2009 Posts: 5165 Location: Finland
|
Posted: Thu 27 Dec 2012, 11:20 Post subject:
|
|
Thanks Flash. I found a good page about gpt and linux. It needs gpt enabled kernel and also boot loader which supports gpt. Grub2 supports it natively. Grub legacy needs patch for supporting it.
http://www.ibm.com/developerworks/linux/library/l-gpt/
And the answer to my question:
| Code: | | CONFIG_EFI_PARTITION=y |
I believe most Puppy kernels have support for gpt.
|
|
Back to top
|
|
 |
JustGreg
Joined: 24 May 2005 Posts: 651 Location: Connecticut USA
|
Posted: Thu 27 Dec 2012, 11:27 Post subject:
|
|
I have been trying to UEFI (Unified Electronic Firmware Interface) with Puppy. In the process. I did learn something about a GPT disk (required by UEFI). The older BIOS used for hard disks, the hard disk geometry (cylinders and heads) approach with sectors of 512 bytes in the partition table. The newer GPT approach uses sectors of 4096 bytes (8 times the old 512 byte sector). Additionally, all GPT partitions must end on a 1 Megabyte boundary. This can be a source of problems (unused or mapped sectors) with a mix of file system and partitions. This sounds like the source of the problem.
Puppy maybe mounting the disk with partition table information and not the GPT information. I have a similar ASUS EeePc with XP. I do know the disk is partition with a GPT approach. However, it is much smaller than yours.
Unfortunately, like Flash, I have never done any kernel work. I do not have a clue on what needs to be done. But, maybe the experts can use this.
Looks like Pemasu and I will composing posts at the same time and he won!
_________________ Enjoy life, Just Greg
Live Well, Laugh Often, Love Much
|
|
Back to top
|
|
 |
MustardMan
Joined: 15 May 2006 Posts: 21 Location: Australia
|
Posted: Tue 01 Jan 2013, 02:29 Post subject:
|
|
Without knowing too much about EFI partitions (I gave away keeping up with computer hardware long ago - no time!), I was under the impression a GPT was not essential to define a disk of this size...
Whether a disk is bootable or not, the MBR (first track, first sector) contains data about the geometry of the disk. Of course, much of it is no longer physical, it is logical (CHS : tracks, heads...) but some of it does relate to the real device (sector size, cluster size...).
So, in this 'table', one of the entries is 'bytes per sector' (a word at 0B). It always used to contain 512 (00 02), but for the 3TB disk I refer to it contains 4096 (00 10).
Does the linux kernel not use this information? Does it really need to refer to a GPT to get the size of a disk right?
|
|
Back to top
|
|
 |
James C

Joined: 26 Mar 2009 Posts: 4737 Location: Kentucky
|
Posted: Tue 01 Jan 2013, 02:40 Post subject:
|
|
Might contain some useful info...
http://www.linux-mag.com/id/7897/
and
http://www.ibm.com/developerworks/linux/library/l-gpt/
| Quote: | | Summary: Once a remote prospect, an important barrier in disk storage has become a reality: the venerable master boot record (MBR) partitioning scheme can't fully handle disks larger than 2.2TB (2TiB). With disks as large as 3TB readily available and with much larger RAID arrays common, alternatives to the MBR partitioning scheme have become important to understand. The heir apparent is the GUID Partition Table (GPT). Learn how to make sure your Linux system is fully prepared for the future of disk storage. |
| Quote: | | Three main classes of software all require GPT support: the kernel, the boot loader, and low-level disk utilities |
My bad, just noticed pemasu had already provided same link.
|
|
Back to top
|
|
 |
jamesbond
Joined: 26 Feb 2007 Posts: 1531 Location: The Blue Marble
|
Posted: Tue 01 Jan 2013, 07:46 Post subject:
|
|
| MustardMan wrote: | | Without knowing too much about EFI partitions (I gave away keeping up with computer hardware long ago - no time!), I was under the impression a GPT was not essential to define a disk of this size... |
Unfortunately, it is. MBR (also known as msdos disklabel) is limited to define a disk up to 2 TiB. Anything bigger would require GPT. It won't do to split your 3TB disk into 2TB + 1TB partition too - the limit isn't per-partition, it is for the entire disk. Afterall MBR definition encompasses the entire disk.
GPT has absolutely nothing to do with EFI (though the name of kernel config option, as pemasu has found out above, may mislead you). The only relationship is this: EFI/UEFI is capable of booting from GPT partition, BIOS does not, though there are some hacks around this.
| Quote: | | Whether a disk is bootable or not, the MBR (first track, first sector) contains data about the geometry of the disk. Of course, much of it is no longer physical, it is logical (CHS : tracks, heads...) but some of it does relate to the real device (sector size, cluster size...). | Correct. When you use GPT, you no longer use MBR to define the geometry of the disk. GPT replaces MBR, it does not live within the confines MBR.
| Quote: | | So, in this 'table', one of the entries is 'bytes per sector' (a word at 0B). It always used to contain 512 (00 02), but for the 3TB disk I refer to it contains 4096 (00 10). | It used to work like that, but suffice to say that the field is ignored for harddisk. It's a long story and I won't bore you here.
| Quote: | | Does the linux kernel not use this information? |
No.
| Quote: | | Does it really need to refer to a GPT to get the size of a disk right? | Yes, if your disk is bigger than 2 TiB (that is, bigger than 2.2 TB). If you wish you can use GPT on smaller disks too. Try creating GPT partition on your flash drive
_________________ Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|