Gentoo Archives: gentoo-user

From: Stefan Schulte <stefan.schulte@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Resizing ntfs creates a hidden partition
Date: Sat, 20 Feb 2010 13:59:51
Message-Id: 20100220135938.GA2422@nebukadnezar.matrix.de
In Reply to: [gentoo-user] Resizing ntfs creates a hidden partition by Mick
1 Hi Mick,
2
3 AFAIK the asterisk behind the partition just indicates, that it is not
4 aligned to a cylinder boundary. I think this doesnt have any effect (or
5 maybe some old OS like DOS depend on it). If you use cfdisk for
6 partitioning you can avoid that by given the space in c(ylinders). e.g.
7 New Partition with a size of '100c'.
8
9 I guess your hidden partition has something to do with Windows
10 behaviour, because if you install Windows and create partitions during
11 the installation process, it also creates an extra 8MB partition.
12 Maybe gparted adopted that behaviour.
13
14 But I can't tell you the reason why. Some people say it's for temp data
15 (which I doubt) and others say it's used to store metadatas if the user
16 decides to use flexible disks or software RAIDs.
17
18 I just can say that windows is running fine without it on my computer,
19 because i decided to partition with cfdisk before running the
20 installation.
21
22 On Sat, Feb 20, 2010 at 11:23:27AM +0000, Mick wrote:
23 > Hi All,
24 >
25 > I am resizing a Windows partition to get some space for Gentoo. I
26 > noticed that when gparted finished and I rebooted the machine there is
27 > a blank unallocated space in front of the Windows 7 partition, shown
28 > below as 6.33MB:
29 >
30 > ===================================================
31 > cfdisk (util-linux-ng 2.16.1)
32 >
33 > Disk Drive: /dev/sda
34 > Size: 500107862016 bytes, 500.1 GB
35 > Heads: 255 Sectors per Track: 63 Cylinders: 60801
36 >
37 > Name Flags Part Type FS Type [Label] Size (MB)
38 > ------------------------------------------------------------------------------
39 > sda1 Primary Dell Utility 41.13
40 > sda2 Boot Primary NTFS [] 15728.64*
41 > Pri/Log Free Space 6.33*
42 > sda3 Primary NTFS [] 52426.47*
43 > Pri/Log Free Space 431902.70*
44 >
45 > ===================================================
46 >
47 > Also, when I used gparted to create a new extended partition over the
48 > 431G free space at the end of the disk I ended up with a similar small
49 > unallocated space in front of it. This is something I have observed
50 > happening recently on 3 laptops that I have worked on, i.e. resizing
51 > or creating a new partition inevitably creates a small blank partition
52 > in front of it.
53 >
54 > Looking at the sectors table I see this:
55 > ===================================================
56 > Partition Table for /dev/sda
57 >
58 > First Last
59 > # Type Sector Sector Offset Length Filesystem Type (ID) Flag
60 > -- ------- ----------- ----------- ------ ----------- -------------------- ----
61 > 1 Primary 0 80324 63 80325 Dell Utility (DE) None
62 > 2 Primary 80325 30800324* 0 30720000*HPFS/NTFS (07) Boot
63 > Pri/Log 30800325* 30812669 0 12345*Free Space None
64 > 3 Primary 30812670 133208104* 0 102395435*HPFS/NTFS (07) None
65 > Pri/Log 133208105* 976768064 0 843559960*Free Space None
66 > ===================================================
67 >
68 > I am not sure what the asterisks are for after the last sector on the
69 > second and third partitions.
70 >
71 > Could this empty space jump be related to gparted somehow shifting the
72 > start of a partition to make it align with a particular sector as per
73 > previous thread on the 4k sector topic?
74 >
75 > Should I do anything about it, or just run with it and let gparted
76 > align what it wants to align as part of the partitioning process?
77 > --
78 > Regards,
79 > Mick
80 >

Replies

Subject Author
Re: [gentoo-user] Resizing ntfs creates a hidden partition Mick <michaelkintzios@×××××.com>