Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how should I do this ext3 to ext4 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 711
Location: IL

PostPosted: Thu Jun 23, 2011 2:07 pm    Post subject: how should I do this ext3 to ext4 [SOLVED] Reply with quote

Hello,

I have following mounted partitions,

df -kh

Code:
Filesystem            Size  Used Avail Use% Mounted on
rootfs                 20G   17G  2.5G  87% /
/dev/root              20G   17G  2.5G  87% /
rc-svcdir             1.0M  160K  864K  16% /lib64/rc/init.d
udev                   10M  220K  9.8M   3% /dev
shm                   1.9G   12K  1.9G   1% /dev/shm
/dev/sda10             14G  7.9G  5.3G  60% /nfs
/dev/sda11             73G   67G  1.7G  98% /nfs1


mount
Code:
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,noatime,errors=continue,barrier=0,data=writeback)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
rc-svcdir on /lib64/rc/init.d type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1024k,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda10 on /nfs type ext4 (rw,noatime)
/dev/sda11 on /nfs1 type ext4 (rw,noatime,data=writeback)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
nfsd on /proc/fs/nfsd type nfsd (rw,noexec,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)


I'd like to make / full featured ext4 from ext3. As you can see it is using 17G disk space from /dev/root (/dev/sda8).

I can take my system down if required. What is the easiest and most reliable way of doing so? Any ideas?


Last edited by upengan78 on Mon Jun 27, 2011 2:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
trippels
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2010
Posts: 137
Location: Berlin

PostPosted: Thu Jun 23, 2011 7:01 pm    Post subject: Reply with quote

https://ext4.wiki.kernel.org/index.php/Ext4_Howto#Converting_an_ext3_filesystem_to_ext4
Back to top
View user's profile Send private message
upengan78
l33t
l33t


Joined: 27 Jun 2007
Posts: 711
Location: IL

PostPosted: Mon Jun 27, 2011 2:20 pm    Post subject: Reply with quote

Sorry for the delay in reply but I couldn't reply as I thought of doing it the hard way meaning, rsynced /dev/sda8 /USB/drive/directory from run level 1.

Then mke2fs -t ext4 /dev/sda8 and rsync again .

Everything worked fine but I did mess up big time with the ownership and perms. Thought rsyync -av --stats --progress would take care of perms but it didn't , everything got owned by root and perms got set to 777 for the 90% of files/directories if not all.

Somehow brought the system up and emerge -e system and emerge -e world got me out of trouble.

I chose doinng ext4 fs this way because it will be ideal and will yield full benefits in future.

Thanks for the link, it is useful, I am already using that way for my other partitions which are way to big for which I don't have large USB drive to run rsync :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum