Summary: | Unable to resize ext2 filesystem on Alpha using e2fsprogs-1.38 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mike Hlavac <mike> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | alpha |
Priority: | Normal | ||
Version: | 2006.0 | ||
Hardware: | Alpha | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Mike Hlavac
2006-04-29 12:47:04 UTC
(In reply to comment #0) > Step 1: dd if=/dev/zero of=/tmp/virtual bs=1k count=512 > Step 2: mke2fs -q -F -o Linux -b 1024 -g 256 /tmp/virtual 1024 You are telling mke2fs that the device it is on is bigger than it actually is. The final arguement in Step 2 is 1024 (ie 1024 blocks) while your file from Step 1 is only 512 blocks (count=512). Changing the last arguement of mke2fs to 512 worked for me. (In reply to comment #0) > Step 2: mke2fs -q -F -o Linux -b 1024 -g 256 /tmp/virtual 1024 From mke2fs man page: -g blocks-per-group ... There is generally no reason the user to ever set this parameter, as the default is optimal for the filesystem.... |