LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 05-12-2006, 08:23 PM   #1
LQ Newbie
Registered: Mar 2003
Location: UK
Distribution: Fedora Core 6
Posts: 8

Rep: Reputation: 0
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.

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?

Old 05-12-2006, 09:22 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
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?

Old 05-12-2006, 09:47 PM   #3
LQ Newbie
Registered: Mar 2003
Location: UK
Distribution: Fedora Core 6
Posts: 8

Original Poster
Rep: Reputation: 0
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.

I did try with parted first, but it didn't like it.
Error: File system has an incompatible feature enabled.
Old 05-12-2006, 09:59 PM   #4
LQ Newbie
Registered: Mar 2003
Location: UK
Distribution: Fedora Core 6
Posts: 8

Original Poster
Rep: Reputation: 0
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.
Old 05-12-2006, 10:05 PM   #5
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,827

Rep: Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452Reputation: 1452
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.


partition, resize

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition without Data Loss SirJinX Linux - Software 9 08-26-2006 01:25 AM
how to resize partition with no data loss? jonohana Linux - Newbie 3 11-15-2005 09:20 AM
Does the Suse 10.0 installation resize fat32 partitions without data loss? augu2000 SUSE / openSUSE 4 10-26-2005 06:28 PM
Resize Reiser without data loss dlublink Linux - Hardware 2 05-18-2005 05:46 PM
Resize / partition without loss of data techsimian Linux - Hardware 6 03-19-2005 01:19 AM

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration