LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 11:10 AM   #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, 11:41 AM   #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, 12: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, 01:19 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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, 02:55 PM   #5
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

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

Last edited by r3sistance; 10-18-2009 at 02:57 PM.
 
Old 10-18-2009, 03: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



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 10:39 AM
Reformatting winxp partition PixieGirl47 Linux - Newbie 11 04-21-2009 01:10 PM
After reformatting Windows partition, Linux is corrupt and won't boot. JakeMH Linux - Software 3 05-31-2005 05:35 PM
Resizing/reformatting ext3 partition mark.johnson Linux - Hardware 3 04-25-2005 01:48 PM
Reformatting /home/user partition to reiserfs procedures wrc1944 Linux - General 1 06-01-2003 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 AM.

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