Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-12-2006, 07:23 PM
|
#1
|
|
LQ Newbie
Registered: Mar 2003
Location: UK
Distribution: Fedora Core 6
Posts: 8
Rep:
|
partition resize, loss of data?
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?
Cheers,
stu.
|
|
|
|
05-12-2006, 08:22 PM
|
#2
|
|
Guru
Registered: Jan 2003
Location: Seymour, Indiana
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,697
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.
Curious what web site did you follow this from?
Brian1
|
|
|
|
05-12-2006, 08:47 PM
|
#3
|
|
LQ Newbie
Registered: Mar 2003
Location: UK
Distribution: Fedora Core 6
Posts: 8
Original Poster
Rep:
|
Thanks for the reply Brian.
I actually got the idea from the resize2fs man page after trying to figure out how fdisk was used to resize partitions. http://man.linuxquestions.org/?query...ction=0&type=2
I did try with parted first, but it didn't like it.
Quote:
|
Error: File system has an incompatible feature enabled.
|
|
|
|
|
05-12-2006, 08:59 PM
|
#4
|
|
LQ Newbie
Registered: Mar 2003
Location: UK
Distribution: Fedora Core 6
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
|
05-12-2006, 09:05 PM
|
#5
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,219
|
What you did was fine - and the sensible way to do it. So long as you make sure you get the two partition to start on the same cylinder.
Don't understand the ownership issues - never had it happen.
As for parted, I find it *very* unreliable - use the method you chose.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:14 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|