Toon posts:

schijfgrootte klopt niet na fdisk en mount

Pagina: 1
Acties:

Verwijderd

Topicstarter
Goedeavond mede-tweakers,

Ik probeer een schijf die ik op de onderstaande maniet heb gefdisked te mounten. Dit heeft als resultaat een veel te kleine schijf. Zie ik nu iets over het hoofd? Zou toch gewoon 30 GB moeten zijn?

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[root@localhost mnt]# umount /dev/hdb1 /mnt/tmp
umount: /dev/hdb1: not mounted
[root@localhost mnt]# fdisk /dev/hdb

The number of cylinders for this disk is set to 3736.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): p

Disk /dev/hdb: 30.7 GB, 30735581184 bytes
255 heads, 63 sectors/track, 3736 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-3736, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-3736, default 3736):
Using default value 3736

Command (m for help): p

Disk /dev/hdb: 30.7 GB, 30735581184 bytes
255 heads, 63 sectors/track, 3736 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1             1      3736  30009388+  83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@localhost mnt]# mount /dev/hdb1 /mnt/tmp
[root@localhost mnt]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2              3787140   2548488   1046276  71% /
/dev/hda1               101086      6336     89531   7% /boot
none                     63000         0     63000   0% /dev/shm
/dev/hdb1                46636     26591     17637  61% /mnt/tmp

[ Voor 26% gewijzigd door Verwijderd op 03-03-2004 20:53 ]


  • BoAC
  • Registratie: Februari 2003
  • Laatst online: 21-02 22:14

BoAC

Memento mori

Volgens mij moet je eerst een filesystem aanmaken op je nieuwe partitie ;)

code:
1
mke2fs /dev/hdb1

of
code:
1
mkreiserfs /dev/hdb1

[ Voor 36% gewijzigd door BoAC op 03-03-2004 21:06 ]


Verwijderd

Topicstarter
we gaan het eens even proberen met bovengenoemde


code:
1
mke2fs /dev/hdb1

Verwijderd

Topicstarter
thnx heeft gewerkt, lijkt er nu meer op:

code:
1
2
3
4
5
6
[root@localhost root]# df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/hda2                 3699      2489      1022  71% /
/dev/hda1                   99         7        88   7% /boot
none                        62         0        62   0% /dev/shm
/dev/hdb1                28847         1     28554   1% /mnt/tmp

  • igmar
  • Registratie: April 2000
  • Laatst online: 31-01 23:50

igmar

ISO20022

Verwijderd schreef op 03 maart 2004 @ 20:52:

Calling ioctl() to re-read partition table.
Syncing disks.
[root@localhost mnt]# mount /dev/hdb1 /mnt/tmp
[root@localhost mnt]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 3787140 2548488 1046276 71% /
/dev/hda1 101086 6336 89531 7% /boot
none 63000 0 63000 0% /dev/shm
/dev/hdb1 46636 26591 17637 61% /mnt/tmp
[/code]
fdisk is niet zo vriendelijk om meteen je FS te resizen, dan zul je zelf moeten doen, of een nieuwe FS aanmaken.

  • CyBeR
  • Registratie: September 2001
  • Niet online

CyBeR

💩

hint: df -h
veel leesbaarder :) (de h staat voor Human :P)

All my posts are provided as-is. They come with NO WARRANTY at all.

Pagina: 1