Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had an ext2 partition that I wanted to resize (increase), after some searching on google I followed roughly this procedure.
fdisk to delete the old partition
fdisk to create a new partition with the new size.
resize2fs to resize the file system to the whole of the partition.
e2fsck
I was quite supprised that all appeared to be well when I mounted the file system again.
But... It's gone a bit wierd.
From Nautilus I can't access any directories further down than the second level e.g., Nautilus will display the contents of /mnt/hd and even the contents of /mnt/hd/somedir but it'll go no further than that. However I can see the contents of those directories and browse the files from the terminal.
It's a bit confusing but I'm glad I don't have to go and find the backup as the data is obviously still there.
Any ideas how I can fix it so that Nautilus can read the directories again?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
What you did doesn't seem write. You deleted the partition then created a new one but larger?
If so then I would say the filesystem table is corrupt.
Not sure what to do to fix it if possiable. My only idea is to do exactly what you did before but restore the to the orginal partition size. No guarentee. If any of the data that you can get too and need I would back up before doing this again. If this works and restores the partition then use parted or the gui qtparted to resize the partition.
Really then only idea is copy the files off and redo the partition.
Agh, fixed. Something strange with the permissions that had the files showing up as 0 bytes.
When I realised the only difference between me being in terminal and using Nautilus was that I was root on the terminal, I attacked the entire mounted file system with chmod -R and it's showing up correctly now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.