Reply
 
Thread Tools Display Modes
  #1  
Old 07-09-2010, 09:07 PM
Fzza3a Fzza3a is offline
Junior Member
 
Join Date: Dec 2008
Location: Algeria
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Fzza3a Send a message via Skype™ to Fzza3a
Unhappy how to Mount read/write EXT4
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

Last edited by Fzza3a; 07-09-2010 at 10:49 PM.
Reply With Quote
  #2  
Old 07-09-2010, 09:27 PM
jpaetzel's Avatar
jpaetzel jpaetzel is offline
Administrator
 
Join Date: Apr 2010
Location: Gilroy, CA
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jpaetzel Send a message via Yahoo to jpaetzel
Default how to Mount read/write EXT4
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.
Reply With Quote
  #3  
Old 07-11-2010, 10:13 AM
Fzza3a Fzza3a is offline
Junior Member
 
Join Date: Dec 2008
Location: Algeria
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Fzza3a Send a message via Skype™ to Fzza3a
Arrow
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.
Reply With Quote
  #4  
Old 07-11-2010, 11:28 AM
Fzza3a Fzza3a is offline
Junior Member
 
Join Date: Dec 2008
Location: Algeria
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Fzza3a Send a message via Skype™ to Fzza3a
Default
[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]#
Reply With Quote
  #5  
Old 07-11-2010, 11:59 AM
Fzza3a Fzza3a is offline
Junior Member
 
Join Date: Dec 2008
Location: Algeria
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Fzza3a Send a message via Skype™ to Fzza3a
Default
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 !!!?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:27 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.