Newsgroup: it.comp.os.linux.iniziare
Titolo: 988 GB = 74 GB ??

Salve a tutti,
ho appena installato Debian (ed e' il quinto computer su cui la
installo, non e' proprio la prima volta) su un disco WD green da 1TB.
Nell'installazione ho scelto "usa tutto il disco, unica partizione", e
mi ha fatto una partizione da 988 GB, correttamente. Pero', il sistema
e' convinto che ci siano solo 74 GB. Riporto l'output di fdisk e df:
# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0001c91f
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1      120122   964879933+  83  Linux
/dev/sda2          120123      121601    11880067+   5  Extended
/dev/sda5          120123      121601    11880036   82  Linux swap /
Solaris
# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              74G   50G   20G  72% /
tmpfs                 2.0G     0  2.0G   0% /lib/init/rw
udev                   10M  192K  9.9M   2% /dev
tmpfs                 2.0G   12K  2.0G   1% /dev/shm
Me ne sono accorto perche' stavo copiando un file da 100 GB e mi ha
dato errore "disco pieno", il che non ha senso... da dove viene fuori
quel 74 GB??
Qualche suggerimento?
Pleg

 Qualche suggerimento?
$ mount
cosa dice?

 cosa dice?
# mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)

 Qualche suggerimento?
# sfdisk -s
# sfdisk -l
# mount
# cat /etc/fstab 
Copia, incolla e posta i risultati.

 Qualche suggerimento?
E' strano, ma potrebbe aver sbarellato mkfs.ext3 durante l'installazione...
Se provi a fare un resize2fs /dev/sda1 che dice?

BTW, c'e' solo un disco sul sistema al momento, un WD10EADS.  I
comandi:
# sfdisk -s
/dev/sda: 976762584
total: 976762584 blocks
# sfdisk -l
Disk /dev/sda: 121601 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting
from 0
   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+ 120121  120122- 964879933+  83  Linux
/dev/sda2     120122  121600    1479   11880067+   5  Extended
/dev/sda3          0       -       0          0    0  Empty
/dev/sda4          0       -       0          0    0  Empty
/dev/sda5     120122+ 121600    1479-  11880036   82  Linux swap /
Solaris
# mount

# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name
devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=08173da9-0c85-4614-9850-172b9c7dcc86 /               ext3
errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=600c1605-670f-44dd-aaf5-535686bf303d none            swap
sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0

 Se provi a fare un resize2fs /dev/sda1 che dice?
-- 
Flavio Visentin
Ubuntu in Zulu significa "Non so usare Debian". (cit. CtRiX)

 comandi:
Questo si evince da df ma dato che riporta dati sbagliati...
Ora prova:
# dumpe2fs -h /dev/sda1

Il resize sembra aver funzionato, grazie a tutti!
# resize2fs /dev/sda1
resize2fs 1.41.11 (14-Mar-2010)
Filesystem at /dev/sda1 is mounted on /; on-line resizing required
old desc_blocks = 5, new_desc_blocks = 58
Performing an on-line resize of /dev/sda1 to 241219983 (4k) blocks.
The filesystem on /dev/sda1 is now 241219983 blocks long.
# dumpe2fs -h /dev/sda1
dumpe2fs 1.41.11 (14-Mar-2010)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          08173da9-0c85-4614-9850-172b9c7dcc86
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index
filetype needs_recovery sparse_super large_file
Filesystem flags:
signed_directory_hash
Default mount options:
(none)
Filesystem state:
clean
Errors behavior:
Continue
Filesystem OS type:
Linux
Inode count:
60309504
Block count:
241219983
Reserved block count:
12056718
Free blocks:
140038056
Free inodes:
38915820
First block:
0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      966
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Filesystem created:       Wed Mar 24 18:50:58 2010
Last mount time:          Thu Mar 25 12:09:45 2010
Last write time:          Wed Mar 24 19:01:20 2010
Mount count:              5
Maximum mount count:      33
Last checked:             Wed Mar 24 18:50:58 2010
Check interval:           15552000 (6 months)
Next check after:         Mon Sep 20 19:50:58 2010
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
First orphan inode:       3801338
Default directory hash:   half_md4
Directory Hash Seed:      12e23e56-f945-4b03-856f-99bda4d6aae0
Journal backup:           inode blocks
Journal features:         journal_incompat_revoke
Journal size:             128M
Journal length:           32768
Journal sequence:         0x00019053
Journal start:            24276
# sfdisk -l
Disk /dev/sda: 121601 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting
from 0
   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+ 120121  120122- 964879933+  83  Linux
/dev/sda2     120122  121600    1479   11880067+   5  Extended
/dev/sda3          0       -       0          0    0  Empty
/dev/sda4          0       -       0          0    0  Empty
/dev/sda5     120122+ 121600    1479-  11880036   82  Linux swap /
Solaris
# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             906G   53G  808G   7% /
tmpfs                 2.0G     0  2.0G   0% /lib/init/rw
udev                   10M  180K  9.9M   2% /dev
tmpfs                 2.0G   12K  2.0G   1% /dev/shm
# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0001c91f
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1      120122   964879933+  83  Linux
/dev/sda2          120123      121601    11880067+   5  Extended
/dev/sda5          120123      121601    11880036   82  Linux swap /
Solaris