You are not logged in.
Pages: 1
I'd like to extend my /home partition (sdb4, ext4), so I tried using the gparted live cd. But when inspecting my partitions, all of them had warnings (e2label: no such file or directory, couldn't find a valid filesystem superblock, dumpe2fs no such file or directory).
I tried resizing anyway, but got an error when gparted issued "e2fsck -f -y -v /dev/sdb4": Superblock could not be read [...].
When booting Arch everything runs just fine, and when I try e2fsck myself I don't receive errors:
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
21121 inodes used (13.81%)
56 non-contiguous files (0.3%)
12 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 0/0/0
Extent depth histogram: 21100/10
176769 blocks used (28.96%)
0 bad blocks
1 large file
16020 regular files
5091 directories
0 character device files
0 block device files
0 fifos
0 links
1 symbolic link (1 fast symbolic link)
0 sockets
--------
21112 files
fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x86868686
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 39070079 19535008+ 83 Linux
/dev/sdb2 39070080 58605119 9767520 83 Linux
/dev/sdb3 58605120 60565049 979965 82 Linux swap / Solaris
/dev/sdb4 971884305 976768064 2441880 83 Linux
/etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
/dev/sdb1 / ext4 defaults 0 1
/dev/sdb2 /var ext4 defaults 0 1
/dev/sdb3 swap swap defaults 0 0
/dev/sdb4 /home ext4 defaults 0 1
After that, I tried resizing the partition myself:
umount /dev/sdb4
cfdisk /dev/sdb (delete sdb4, make a bigger one)
partprobe
fdisk -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x86868686
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 39070079 19535008+ 83 Linux
/dev/sdb2 39070080 58605119 9767520 83 Linux
/dev/sdb3 58605120 60565049 979965 82 Linux swap / Solaris
/dev/sdb4 60565050 976773167 458104059 83 Linux
resize2fs /dev/sdb4
resize2fs 1.41.14 (22-Dec-2010)
resize2fs: Bad magic number in super-block while trying to open /dev/sdb4
Couldn't find valid filesystem superblock.
As you can see resize2fs returns an error about filesystem superblock.
When I check cfdisk again, the fs type of sdb4 is "lsw_raid_mem", which is weird, because I set it to Linux (0x83).
What did I do wrong?
Offline
Resizing a filesystem is different from resizing a partition. I also bet that resize2fs, or thatversiondoes notwork with ext4. What you want is to use "gparted", that is the easy way to resize a partition. Make sure you do a backup first, just in case.
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
Resizing a filesystem is different from resizing a partition. I also bet that resize2fs, or thatversiondoes notwork with ext4. What you want is to use "gparted", that is the easy way to resize a partition. Make sure you do a backup first, just in case.
Like I said, I tried gparted at first, but to no avail (all my partitions had warnings for some reason...). (resize2fs does work with ext4, according to it's man btw)
I'll have a closer look at gparted, and why it's not working for me, thanks.
Offline
Reinstall your system using LVM2 for partitioning. You'll appreciate it in the long run.
Offline
Pages: 1