LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2009, 12:10 PM   #1
vendtagain
Member
 
Registered: Sep 2009
Distribution: Slackware, Debian, Mac OS X, Zenwalk, Puppy, Gentoo
Posts: 199

Rep: Reputation: 32
fixing partition after resizing (pref w/o reformatting)


I have a dual boot system set up for a friend, win and Ubuntu,

I resized the ubuntu partition from 45 GB to 35 GB to give some space for both OSs to share
using puppy 4.2.1 Gparted to resize (its ext3)

now when trying to boot ubuntu, error occurs relating to partition, it asks me to hit ctrl-D to continue (which loops back to same error), or enter root password to fix,

when i log in root i try fsck
it continually gives me
"Error writing block 9240597 (invalid argument) while getting next inode from scan. Ignore error?"
it asks this twice, then
"Force rewrite?"
ive held down Yes for at least a minute or so while it scrolls up block number and continues same pattern.

I decided to go back to puppy and "check" the partition,
in GParted There is ! next to the partition, when I tell it to "check",
it instantly gives me an error and doesn't continue to check/repair.

One other thing i noticed
I booted with Knoppix to and noticed the label of partition "hda5 35 GB"
but, when i open it on the window it says "36 GB free out of 45 GB", (45 being the original size before i resized it to 35)

the new ~10 GB fat32 partition is working, windows can use it, and puppy can use it.

I would rather not have to reformat the partition, as i dont want to worry the owner and redo settings.
 
Old 10-18-2009, 12:41 PM   #2
vendtagain
Member
 
Registered: Sep 2009
Distribution: Slackware, Debian, Mac OS X, Zenwalk, Puppy, Gentoo
Posts: 199

Original Poster
Rep: Reputation: 32
also in Gparted(w/puppy boot), it says Unable to read contents of this filesystem!, because of this some operations may be unavailable.

although I can mount the partition and see files inside just fine.
 
Old 10-18-2009, 01:32 PM   #3
vendtagain
Member
 
Registered: Sep 2009
Distribution: Slackware, Debian, Mac OS X, Zenwalk, Puppy, Gentoo
Posts: 199

Original Poster
Rep: Reputation: 32
well now I got this yes loop going for about 10 mins now, anyway to automate this?
the -y wont work, cause the first option is a no.

well i can access everything on the "corrupted" partition. so I'm guessing the superblock is wrong, since looking at partition sizes from live cds shows the old and new size of the partition.
 
Old 10-18-2009, 02:19 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Just boot with the install media or a livecd. Then perform the fsck on the filesystem. You don't perform maintenance on a live or mounted partition.
 
Old 10-18-2009, 03:55 PM   #5
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Edited: nevermind me... ><

Last edited by r3sistance; 10-18-2009 at 03:57 PM.
 
Old 10-18-2009, 04:01 PM   #6
vendtagain
Member
 
Registered: Sep 2009
Distribution: Slackware, Debian, Mac OS X, Zenwalk, Puppy, Gentoo
Posts: 199

Original Poster
Rep: Reputation: 32
I rand fsck with a backup superblock, and got it working
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reformatting old ubuntu disk partition JDska55 Linux - Newbie 1 06-17-2009 11:39 AM
Reformatting winxp partition PixieGirl47 Linux - Newbie 11 04-21-2009 02:10 PM
After reformatting Windows partition, Linux is corrupt and won't boot. JakeMH Linux - Software 3 05-31-2005 06:35 PM
Resizing/reformatting ext3 partition mark.johnson Linux - Hardware 3 04-25-2005 02:48 PM
Reformatting /home/user partition to reiserfs procedures wrc1944 Linux - General 1 06-01-2003 09:15 PM


All times are GMT -5. The time now is 04:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration