Unix Technical Forum

parted problems

This is a discussion on parted problems within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi All; Tried to use parted to resize the / partition on my dev system , reducing the size ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:35 AM
Pat Ford
 
Posts: n/a
Default parted problems

Hi All;
Tried to use parted to resize the / partition on my dev system , reducing
the size to 24Gb no warning or error but when I tried to reboot I got the
Kernel panic: init not found message. Boot up with a parted boot disk and
was told to run fschk, after several hours of not much happening ( system
unresponsive hd activity stoped) I ^C'd fschk there was messages that seemed
to indicate the FS still extended past the end of the partition.
What should my next step be.
I'm coping the fs over to another partition by:
cd /mnt/sysimage
rm -rF dev
find . | cpio -pvmd /mnt/hda4


any ideas?
thanks
Pat


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:36 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: parted problems

Pat Ford wrote:

> Hi All;
> Tried to use parted to resize the / partition on my dev system , reducing
> the size to 24Gb no warning or error but when I tried to reboot I got the
> Kernel panic: init not found message. Boot up with a parted boot disk and
> was told to run fschk, after several hours of not much happening ( system
> unresponsive hd activity stoped) I ^C'd fschk there was messages that seemed
> to indicate the FS still extended past the end of the partition.
> What should my next step be.
> I'm coping the fs over to another partition by:
> cd /mnt/sysimage
> rm -rF dev
> find . | cpio -pvmd /mnt/hda4


You need to reset your MBR, since the files that it points to have moved
on the disk. If you have one, use your installation medium to get into
rescue mode, mount the original drive at a designated directory such as
"/mnt/sysimage", and do a "chroot /mnt/sysimage /bin/sh" to get a
working shell in your original location. That provides your boot-loader
tools, and access to things to provide labels on your partitions (if
your /etc/fstab uses them instead of the /dev/ filenames).

And as to your transfer technique: do not copy /proc, feel free to copy
/dev, and use "cp -a" instead of the cpio oddness.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:42 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com