PDA

View Full Version : how to Mount read/write EXT4


Fzza3a
07-09-2010, 09:07 PM
first ... sorry because this must post in BSD Forum like FreeBSD Forum.

how to Mount read/write EXT4 file system .... step by step

plzz help me ... all my BSD data at ext4 partition

jpaetzel
07-09-2010, 09:27 PM
There is limited read only support for ext4 filesystems.
You can mount them by:
# mount -t ext2fs -o ro /dev/name /mountpoint

If there are optional features enabled that FreeBSD can't handle then it
will refuse to mount.

Fzza3a
07-11-2010, 10:13 AM
look:

[root@pcbsd-744 /mnt]# mount -t ext2fs -o ro /dev/ad
ad0 ad0s1 ad4 ad4s1 ad4s2 ad4s2a ad4s2b ad4s4
[root@pcbsd-744 /mnt]# mount -t ext2fs -o ro /dev/ad0s1 /mnt/ad0s1/
mount: /dev/ad0s1 : Invalid argument
[root@pcbsd-744 /mnt]#


ad0 is my hard and ad0s1 is ext4 home partition in linux.

Fzza3a
07-11-2010, 11:28 AM
[root@pcbsd-744 /usr/home/farhat]# fdisk /dev/ad0
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=159560 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=159560 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 131 (0x83),(Linux native)
start 63, size 160826652 (78528 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>


[root@pcbsd-744 /usr/home/farhat]# fdisk /dev/ad4
******* Working on device /dev/ad4 *******
parameters extracted from in-core disklabel are:
cylinders=155061 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=155061 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 131 (0x83),(Linux native)
start 63, size 49700864 (24268 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 49700952, size 102399192 (49999 Meg), flag 80 (active)
beg: cyl 154/ head 8/ sector 1;
end: cyl 364/ head 15/ sector 63
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
sysid 130 (0x82),(Linux swap or Solaris x86)
start 152100963, size 4194477 (2048 Meg), flag 0
beg: cyl 365/ head 13/ sector 1;
end: cyl 430/ head 15/ sector 63
[root@pcbsd-744 /usr/home/farhat]#

Fzza3a
07-11-2010, 11:59 AM
I see:

[root@pcbsd-744 /usr/home/farhat]# tune2fs -l /dev/ad0s1 | grep Inode
Inode count: 5029888
Inodes per group: 8192
Inode blocks per group: 512
Inode size: 256

[root@pcbsd-744 /usr/home/farhat]# tune2fs -l /dev/ad4s1 | grep Inode
Inode count: 1553440
Inodes per group: 8176
Inode blocks per group: 511
Inode size: 256
[root@pcbsd-744 /usr/home/farhat]#

how to convert to 128 inode or mount 256 inode partition !!!?