View previous topic :: View next topic |
Author |
Message |
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Mon Jul 06, 2009 6:48 am Post subject: ASUS ee no space left on device |
|
|
im trying to install gentoo on my 4MB ASUS eee 701 . sda1&3 formatted as ext2
Quote: | livecd / # fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 4001 MB, 4001292288 bytes
255 heads, 63 sectors/track, 486 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90b490b4
Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 83 Linux
/dev/sda2 6 71 530145 83 Linux
/dev/sda3 72 486 3333487+ 83 Linux
Command (m for help):
|
Code: | ivecd / # tail -n 40 /var/log/genkernel.log
CC [M] drivers/usb/serial/kl5kusb105.o
CC [M] drivers/usb/storage/jumpshot.o
CC [M] drivers/usb/serial/kobil_sct.o
CC [M] drivers/usb/storage/alauda.o
CC [M] drivers/usb/serial/mct_u232.o
CC [M] drivers/usb/storage/karma.o
CC [M] drivers/usb/serial/mos7720.o
LD [M] drivers/usb/storage/usb-storage.o
CC [M] drivers/usb/serial/mos7840.o
CC [M] drivers/usb/serial/navman.o
CC [M] drivers/usb/serial/omninet.o
CC [M] drivers/usb/serial/option.o
CC [M] drivers/usb/serial/oti6858.o
CC [M] drivers/usb/serial/pl2303.o
CC [M] drivers/usb/serial/safe_serial.o
CC [M] drivers/usb/serial/sierra.o
CC [M] drivers/usb/serial/ti_usb_3410_5052.o
CC [M] drivers/usb/serial/visor.o
CC [M] drivers/usb/serial/whiteheat.o
LD [M] drivers/usb/serial/usbserial.o
Building modules, stage 2.
MODPOST 974 modules
drivers/misc/eeprom/eeprom_93cx6.mod.c: No space left on device
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
* Gentoo Linux Genkernel; Version 3.4.10.904
* Running with options: --menuconfig all
* ERROR: Failed to compile the "modules" target...
* -- Grepping log... --
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
livecd / #
|
no space left on device.
I cant 'df' from within the chroot but the livecd gives this . and /mnt/gentoo is not full
Code: |
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 252888 31852 221036 13% /
/dev/sr0 85424 85424 0 100% /mnt/cdrom
/dev/loop0 57728 57728 0 100% /mnt/livecd
udev 10240 136 10104 2% /dev
tmpfs 252888 2124 250764 1% /mnt/livecd/lib/firmware
tmpfs 252888 0 252888 0% /mnt/livecd/usr/portage
/dev/sda3 3281116 1891004 1223440 61% /mnt/gentoo
/dev/sda1 38856 4003 32847 11% /mnt/gentoo/boot
livecd / #
|
? _________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Mon Jul 06, 2009 7:42 am Post subject: |
|
|
|
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Mon Jul 06, 2009 8:33 am Post subject: |
|
|
Code: |
livecd ~ # df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
tmpfs 63222 5497 57725 9% /
/dev/sr0 0 0 0 - /mnt/cdrom
/dev/loop0 19963 19963 0 100% /mnt/livecd
udev 63222 1549 61673 3% /dev
tmpfs 63222 47 63175 1% /mnt/livecd/lib/firmware
tmpfs 63222 1 63221 1% /mnt/livecd/usr/portage
/dev/sda3 208416 208416 0 100% /mnt/gentoo
/dev/sda1 10040 15 10025 1% /mnt/gentoo/boot
livecd ~ #
|
ok - i see the problem . how do i fix it ? _________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Mon Jul 06, 2009 8:45 am Post subject: |
|
|
Reformat the partition, either with a smaller inode size, or a filesystem which avoids the problem entirely. If possible, make a full backup first. |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Mon Jul 06, 2009 8:52 am Post subject: |
|
|
its ext2 because its a flash disk and I think ive read somewhere that its better to not use a journalled file system.
so what should I use , or how do i specify a smaller inode size ? _________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
gentoo-dev Apprentice
Joined: 24 Jan 2006 Posts: 172
|
Posted: Mon Jul 06, 2009 10:40 am Post subject: |
|
|
man mke2fs |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Mon Jul 06, 2009 10:45 am Post subject: |
|
|
You don't actually want a smaller inode size - you want a filesystem formatted
with more inodes. A quick answer is to use "mkfs -t ext2 -T news /dev/whatever"
which doubles the number of inodes and ought to work; a better answer is to
read the mkfs manpage and work out how to set the number of inodes you need.
Will |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Mon Jul 06, 2009 3:33 pm Post subject: |
|
|
Also use "mkfs.ext2 -b 1024 " to give the most space. mkfs.ext2 defaults to 2048 or 4096 which will cut the actual storage in half. I just make a ext2 with a block size of 512 and the portage tree went from 570M to 285M.
Edit changed 512 to 1024 _________________ An A-Z Index of the Linux BASH command line
Last edited by hielvc on Wed Jul 08, 2009 3:28 am; edited 1 time in total |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Tue Jul 07, 2009 8:40 pm Post subject: |
|
|
from the man page
Quote: | -b block-size
Specify the size of blocks in bytes. Valid block size vales are 1024, 2048 and 4096 bytes per block. If omitted, mke2fs block-size is heuristically determined by the file system size and the expected usage of the filesystem (see the -T option). |
Code: | livecd / # mkfs.ext2 -T news /dev/sda3
mke2fs 1.41.3 (12-Oct-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
833664 inodes, 833371 blocks
41668 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=855638016
26 block groups
32768 blocks per group, 32768 fragments per group
32064 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
livecd / # mount /dev/sda3 /mnt/gentoo
livecd / # df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
tmpfs 63222 5489 57733 9% /
/dev/sr0 0 0 0 - /mnt/cdrom
/dev/loop0 19963 19963 0 100% /mnt/livecd
udev 63222 1549 61673 3% /dev
tmpfs 63222 47 63175 1% /mnt/livecd/lib/firmware
tmpfs 63222 1 63221 1% /mnt/livecd/usr/portage
/dev/sda3 833664 11 833653 1% /mnt/gentoo
|
Code: | livecd / # mkfs.ext2 -T news -b 1024 /dev/sda3
mke2fs 1.41.3 (12-Oct-2008)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
833536 inodes, 3333484 blocks
166674 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=70516736
407 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409, 663553,
1024001, 1990657, 2809857
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
livecd / #
|
Code: | livecd / # mount /dev/sda3 /mnt/gentoo
livecd / # df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
tmpfs 63222 5489 57733 9% /
/dev/sr0 0 0 0 - /mnt/cdrom
/dev/loop0 19963 19963 0 100% /mnt/livecd
udev 63222 1549 61673 3% /dev
tmpfs 63222 47 63175 1% /mnt/livecd/lib/firmware
tmpfs 63222 1 63221 1% /mnt/livecd/usr/portage
/dev/sda3 833536 11 833525 1% /mnt/gentoo
livecd / #
|
_________________ join the optout - http://nhsconfidentiality.org |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Wed Jul 08, 2009 2:33 pm Post subject: |
|
|
Can grub handle varying block sizes on an ext2 file system? I can recall some
size-change in the filesystem which upset grub, but I can't remember what.
Will |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Wed Jul 08, 2009 3:55 pm Post subject: |
|
|
When you format your disk you have a choice of 1024 2048 or 4096. Any one of the 3 is fine for grub. thecooptoo has only a 4gig drive, so he needs the most efficent for size.
As to grub it has no problem on a 1024 block size. You might be thinking of the boundries that your partition begin and end on, which can affect SSD performance and possibly grub booting. The OCZ forums are suppose to have the most info on this. _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
|