can not use 20 gb of internal hdd (/var/lib/ureadahead/debugfs)

Bug #539653 reported by Numan Demirdöğen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Mint
Triaged
Undecided
Unassigned
gparted (Ubuntu)
Invalid
Undecided
Unassigned
ubiquity (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

I had used Ubuntu Koala Karmic before i started to use Linux Mint 8 fluxbox that is installed on now. While i was installing Linux Mint 8 Fluxbox, i realized that approximately 20 GB of internal hdd has not been shown. If i choose "Use all HDD" on install screen, my hdd is shown 320 GB. But if i choose "Specify partitions manually", my hdd is shown 298.1 GB. After installiation i checked my hdd ny GParted and it showed 298.1 GB. Then i gave this commang

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 2.7G 17G 15% /
udev 249M 276K 248M 1% /dev
none 249M 0 249M 0% /dev/shm
none 249M 276K 248M 1% /var/run
none 249M 0 249M 0% /var/lock
none 249M 0 249M 0% /lib/init/rw
none 20G 2.7G 17G 15% /var/lib/ureadahead/debugfs
/dev/sda6 274G 277M 260G 1% /home/numan/desktop

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0007b86c

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 2614 20996923+ 83 Linux
/dev/sda2 2615 38913 291571717+ 5 Extended
/dev/sda5 2615 2678 514017 82 Linux swap / Solaris
/dev/sda6 2679 38913 291057606 83 Linux

sudo cat /etc/mtab
/dev/sda1 / ext4 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
none /dev/shm tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
none /var/lib/ureadahead/debugfs debugfs rw 0 0
/dev/sda6 /home/numan/desktop ext4 rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0

Changed in linuxmint:
assignee: nobody → numand46 (numand46)
Revision history for this message
Clement Lefebvre (clementlefebvre) wrote :

Marking as upstream -> ubiquity.

Changed in linuxmint:
status: New → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

/var/lib/ureadahead/debugfs is just mounted off somewhere on your / filesystem. It has nothing to do with the difference in reported sizes.

The difference is due to a confusion between various tools as to what "GB" means. The installer matches what hard disk manufacturers generally use, so 320 GB = 320 * 1000 * 1000 * 1000 bytes. GParted is apparently reporting in binary units (sometimes spelled "GiB"), and 298.1 GiB = 298.1 * 1024 * 1024 * 1024 bytes, which if you do the sums comes out to about 320.08 GB. So you haven't lost any disk space - you're just seeing different numbers reported by different programs.

Ubuntu has recently adopted a policy stating that: (a) GB must always mean decimal units and GiB must always mean binary units; (b) hard disk sizes are to be reported in decimal units; (c) some other things that aren't relevant here. This policy is controversial for various reasons and we may amend it, but I don't think too many people seriously disagree with the notion that hard disk sizes should be reported in units that match what the label on the disk you bought says, or at least that you should be able to see them in those units.

The installer is abiding by this policy, as in fact it has done since Ubuntu started; but GParted looks as though it ought to be changed to use decimal units rather than binary units.

affects: ubiquity (Ubuntu) → gparted (Ubuntu)
Revision history for this message
Colin Watson (cjwatson) wrote :

Actually, I just read your report more closely and noticed that you pointed out that the installer itself reports 298.1 GB on the manual partitioning screen. good point - I'll get that fixed.

Changed in ubiquity (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → Medium
status: New → Triaged
Colin Watson (cjwatson)
Changed in ubiquity (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Numan Demirdöğen (if.gnu.linux) wrote :

Thank you for your explanation about the difference GB and GiB, @Colin.

Could you explain what "/var/lib/ureadahead/debugfs" exactly is?

Sincereley,

Numan.

Revision history for this message
Jan Claeys (janc) wrote :

GParted already uses binary prefixes correctly (and it doesn't make much sense to use decimal prefixes in some parts of the program IMHO, e.g. when editing). Also see bug #538747 for that topic though.

Changed in gparted (Ubuntu):
status: New → Invalid
Changed in linuxmint:
assignee: numand46 (numand46) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 2.2.6

---------------
ubiquity (2.2.6) lucid; urgency=low

  [ Evan Dandrea ]
  * Properly set the text for the release notes label after the user
    runs the 'update this installer' option.
  * Correctly set up GtkComboBoxEntry widgets (LP: #539204).
  * In the KDE frontend, call reboot with root privileges and try
    rebooting via dbus only if a KDE dbus session exists (LP: #540856).
  * Remove the apport hook, it lives in Ubuntu's apport package now.
  * Don't let the user select both "Try Ubuntu" and "Install Ubuntu".
  * Provide visual feedback for clicking "Try Ubuntu" in the form of a
    spinning cursor.
  * Automatic update of included source packages: base-installer
    1.103ubuntu5, console-setup 1.34ubuntu12, partman-base 139ubuntu1.

  [ Colin Watson ]
  * If pkgsel/install-language-support is set to false, then don't install
    new language packs from the network, but nevertheless keep any language
    packs that are in the live filesystem (LP: #540878).
  * Install oem-config-kde in the KDE user-setup plugin (LP: #540895).
  * Don't fall through to the failsafe X server if the main X server
    succeeds (LP: #540938).
  * ubiquity-frontend-gtk depends on gksu (LP: #540331).
  * Change .desktop translation domain to ubiquity-desktop (LP: #540936).
  * Report disk sizes in decimal units in the manual partitioner, for
    consistency with partman and to abide by the new units policy
    (LP: #539653).

  [ Mario Limonciello ]
  * Don't delete the cache too early in select_language_packs.

  [ Roman Shtylman ]
  * Fix for 100% cpu usage in kde frontend (LP: #538505)

  [ Michael Terry ]
  * Upstart jobs: start on starting uxlaunch, Moblin's display manager
    (LP: #540257).
 -- Evan Dandrea <email address hidden> Fri, 19 Mar 2010 23:52:24 +0000

Changed in ubiquity (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.