LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-08-2004, 10:38 PM   #1
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
using parted to resize ext3 (problem)


Hi!

I am encountering a problem using parted. Below is the command and error message:
Code:
root@testy:/# parted -i /dev/hdb resize 1 1 62880
Warning: Unable to determine if partitions are mounted via /proc/mounts or /etc/mtab.  Make sure you don't attempt to resizeor modify mounted file systems.  (Even read-only mounted)
Ignore/Cancel? Ignore
No Implementation: This ext2 filesystem has a rather strange layout!  Parted can't resize this (yet).
Information: Don't forget to update /etc/fstab, if necessary.
/dev/hdb1 is currently formatted with ext3 filesystem. It is on a 80Gbyte disk. I want to shrink it to 60Gbyte.
what is the problem? What should I do?


edited:
extra information
Code:
root@testy:/# fdisk -l /dev/hdb

Disk /dev/hdb: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1      158816    80043232+  83  Linux
And from parted /dev/hdb print
Code:
root@testy:/# parted /dev/hdb print
Warning: Unable to determine if partitions are mounted via /proc/mounts or /etc/mtab.  Make sure you don't attempt to resizeor modify mounted file systems.  (Even read-only mounted)
Ignore/Cancel? Ignore
Disk geometry for /dev/hdb: 0.000-78167.250 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031  78167.250  primary   ext3
Information: Don't forget to update /etc/fstab, if necessary.

Last edited by carboncopy; 10-08-2004 at 10:48 PM.
 
Old 10-08-2004, 11:09 PM   #2
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Original Poster
Rep: Reputation: 45
I downloaded the 1.6.15 source and compiled it.
And use it.

I still get the same error.
 
Old 10-08-2004, 11:47 PM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Do you have a backup of the data on it? If you can trash it, then i'd suggest you to delete the partition and recreate it.
Also, did you unmount it before trying to resize?
 
Old 10-09-2004, 01:17 AM   #4
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Original Poster
Rep: Reputation: 45
Yes, I unmounted it before I tried resizing.

Delete it? Ouch.. it has 18Gbyte of data inside. Sigh.. I guess I can transfer it to an external USB drive and copy it back in later. USB 2.0 is pretty fast. May take up a few hours. HEhehehehe...

Anyway of getting parted to work?

edit:
cleaning up harddisk is a chore, I wish to have spotlight technology in Slackware.

Now it is down to 14Gbyte. Still pretty substantial. At least it can fit comfortably into 20Gbyte harddrive.

Last edited by carboncopy; 10-09-2004 at 01:57 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't resize ext3 partition (using "parted"). Help or advise another app, plz kornerr Linux - General 2 04-28-2005 10:01 AM
Resize Partition with parted jdmml Linux - Hardware 0 07-08-2004 08:43 PM
problem with parted resize on reiserfs Sammy2ooo Linux - General 2 12-24-2003 02:34 PM
Another resize ext3 problem gemini91 Linux - Newbie 7 12-16-2003 03:59 AM
parted fails to resize dnla Linux - General 0 11-16-2003 07:46 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration