LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 05-12-2006, 07:23 PM   #1
MetalStorm
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.
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.
 
Old 05-12-2006, 08:22 PM   #2
Brian1
LQ 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,700

Rep: Reputation: 65
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
 
Old 05-12-2006, 08:47 PM   #3
MetalStorm
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. 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.
 
Old 05-12-2006, 08:59 PM   #4
MetalStorm
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, 09:05 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

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


Reply

Tags
partition, resize



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 12:25 AM
how to resize partition with no data loss? jonohana Linux - Newbie 3 11-15-2005 08:20 AM
Does the Suse 10.0 installation resize fat32 partitions without data loss? augu2000 SUSE / openSUSE 4 10-26-2005 05:28 PM
Resize Reiser without data loss dlublink Linux - Hardware 2 05-18-2005 04:46 PM
Resize / partition without loss of data techsimian Linux - Hardware 6 03-19-2005 12:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:41 PM.

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