* [gentoo-user] Resizing ext3 and burning cds...
@ 2005-07-17 20:52 Bruno Gola
2005-07-18 1:45 ` Zac Medico
0 siblings, 1 reply; 20+ messages in thread
From: Bruno Gola @ 2005-07-17 20:52 UTC (permalink / raw
To: gentoo-user
Hi guys, does anyone know any way to resize a ext3 partition? i'm trying
QTparted (parted) and i can't... when i try with qtparted it just does
not let me resize it, and with parted (text mode) it complains:
br ~ # parted /dev/hdb resize 1
Start? [32kB]?
End? [80GB]? 70GB
Error: File system was not cleanly unmounted! You should run e2fsck.
Modifying
an unclean file system could cause severe corruption.
Ignore/Cancel? Ignore
Error: File system has an incompatible feature enabled.
Information: Don't forget to update /etc/fstab, if necessary.
Note that the partition is umounted...
My other problem is with my cd-writer, i can open (read) any cd with
that... but when i try to burn (with k3b) i cant (it finds my device OK)
but when i try to burn it just display : writing, but the bar dont move
(the cd-writer starts to work), even i check the option SIMULATE, it
does not work....
Does anyone knows what should i do ?
Thanks,
Bruno Gola
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3 and burning cds...
2005-07-18 1:45 ` Zac Medico
@ 2005-07-17 22:49 ` Bruno Gola
2005-07-18 1:59 ` Nick Rout
2005-07-18 2:09 ` Zac Medico
0 siblings, 2 replies; 20+ messages in thread
From: Bruno Gola @ 2005-07-17 22:49 UTC (permalink / raw
To: gentoo-user
Zac Medico wrote:
> Bruno Gola wrote:
>
>> Hi guys, does anyone know any way to resize a ext3 partition? i'm trying
>> QTparted (parted) and i can't... when i try with qtparted it just does
>> not let me resize it, and with parted (text mode) it complains:
>>
>> br ~ # parted /dev/hdb resize 1
>> Start?
>> [32kB]?
>> End? [80GB]?
>> 70GB Error:
>> File system was not cleanly unmounted! You should run e2fsck. Modifying
>> an unclean file system could cause severe corruption.
>> Ignore/Cancel?
>> Ignore Error: File
>> system has an incompatible feature enabled.
>> Information: Don't forget to update /etc/fstab, if necessary.
>>
>>
>>
>> Note that the partition is umounted...
>>
>
> So, did you try e2fsck or not? No errors?
>
> You can also use ext2resize but it only resizes the filesystem. You
> would need to use fdisk or something to change the partition table.
>
>>
>>
>> My other problem is with my cd-writer, i can open (read) any cd with
>> that... but when i try to burn (with k3b) i cant (it finds my device OK)
>> but when i try to burn it just display : writing, but the bar dont move
>> (the cd-writer starts to work), even i check the option SIMULATE, it
>> does not work....
>>
>
> There's probably a tab or button you can click to see a log of the
> cdrecord output (cdrecord is the program that really does the
> burning). You need that in order to troubleshoot this.
>
> Zac
Man thanks for the reply, im trying the e2fsck right now, i will see if
i will work...
About the cd-writer, ive tried with cdrecord (command line) but, it
stills stop.. i dont know what could it be.. any idea?
I will reply after the e2fsck finish ... thanks again
Bruno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3 and burning cds...
2005-07-17 20:52 [gentoo-user] Resizing ext3 and burning cds Bruno Gola
@ 2005-07-18 1:45 ` Zac Medico
2005-07-17 22:49 ` Bruno Gola
0 siblings, 1 reply; 20+ messages in thread
From: Zac Medico @ 2005-07-18 1:45 UTC (permalink / raw
To: gentoo-user
Bruno Gola wrote:
> Hi guys, does anyone know any way to resize a ext3 partition? i'm trying
> QTparted (parted) and i can't... when i try with qtparted it just does
> not let me resize it, and with parted (text mode) it complains:
>
> br ~ # parted /dev/hdb resize 1
> Start? [32kB]?
> End? [80GB]? 70GB
> Error: File system was not cleanly unmounted! You should run e2fsck.
> Modifying
> an unclean file system could cause severe corruption.
> Ignore/Cancel? Ignore
> Error: File system has an incompatible feature enabled.
> Information: Don't forget to update /etc/fstab, if necessary.
>
>
>
> Note that the partition is umounted...
>
So, did you try e2fsck or not? No errors?
You can also use ext2resize but it only resizes the filesystem. You would need to use fdisk or something to change the partition table.
>
>
> My other problem is with my cd-writer, i can open (read) any cd with
> that... but when i try to burn (with k3b) i cant (it finds my device OK)
> but when i try to burn it just display : writing, but the bar dont move
> (the cd-writer starts to work), even i check the option SIMULATE, it
> does not work....
>
There's probably a tab or button you can click to see a log of the cdrecord output (cdrecord is the program that really does the burning). You need that in order to troubleshoot this.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3 and burning cds...
2005-07-17 22:49 ` Bruno Gola
@ 2005-07-18 1:59 ` Nick Rout
2005-07-18 2:09 ` Zac Medico
1 sibling, 0 replies; 20+ messages in thread
From: Nick Rout @ 2005-07-18 1:59 UTC (permalink / raw
To: gentoo-user
It would be worth checking permissions & ownership on the cd writer
device.
On Sun, 17 Jul 2005 19:49:17 -0300
Bruno Gola wrote:
> About the cd-writer, ive tried with cdrecord (command line) but, it
> stills stop.. i dont know what could it be.. any idea?
>
> I will reply after the e2fsck finish ... thanks again
--
Nick Rout
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3 and burning cds...
2005-07-17 22:49 ` Bruno Gola
2005-07-18 1:59 ` Nick Rout
@ 2005-07-18 2:09 ` Zac Medico
2005-07-18 2:42 ` Bruno Gola
1 sibling, 1 reply; 20+ messages in thread
From: Zac Medico @ 2005-07-18 2:09 UTC (permalink / raw
To: gentoo-user
Bruno Gola wrote:
>
> About the cd-writer, ive tried with cdrecord (command line) but, it
> stills stop.. i dont know what could it be.. any idea?
>
What output does cdrecord give before it stops? Does cdrecord actually exit or does it just hang? Try it with the -v option.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3 and burning cds...
2005-07-18 2:09 ` Zac Medico
@ 2005-07-18 2:42 ` Bruno Gola
2005-07-18 2:45 ` Bruno Gola
0 siblings, 1 reply; 20+ messages in thread
From: Bruno Gola @ 2005-07-18 2:42 UTC (permalink / raw
To: gentoo-user
Zac Medico wrote:
> Bruno Gola wrote:
>
>>
>> About the cd-writer, ive tried with cdrecord (command line) but, it
>> stills stop.. i dont know what could it be.. any idea?
>>
>
> What output does cdrecord give before it stops? Does cdrecord
> actually exit or does it just hang? Try it with the -v option.
>
> Zac
well, now, about the partition (after the e2fsck);
br ~ # parted /dev/hdb resize 1
Start? [32kB]?
End? [80GB]? 70GB
Error: File system has an incompatible feature enabled.
Information: Don't forget to update /etc/fstab, if necessary.
Still with this error ...
and about the cd-writer, ive tried cdrecord -scanbus, and it appears my
CD-writer there, but now, nothing appears...
When cdrecord stops it just broke in my display, i cant exit it, just
killing...
it stops something like that:
ATAPI 1:
and stops.... (ive already wait for 1 hour... and nothing happens)
Any idea for this problems? :-P
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3 and burning cds...
2005-07-18 2:42 ` Bruno Gola
@ 2005-07-18 2:45 ` Bruno Gola
2005-07-18 9:23 ` [gentoo-user] Resizing ext3 Bruno Gola
0 siblings, 1 reply; 20+ messages in thread
From: Bruno Gola @ 2005-07-18 2:45 UTC (permalink / raw
To: gentoo-user
Bruno Gola wrote:
>Zac Medico wrote:
>
>
>
>>Bruno Gola wrote:
>>
>>
>>
>>>About the cd-writer, ive tried with cdrecord (command line) but, it
>>>stills stop.. i dont know what could it be.. any idea?
>>>
>>>
>>>
>>What output does cdrecord give before it stops? Does cdrecord
>>actually exit or does it just hang? Try it with the -v option.
>>
>>Zac
>>
>>
>
>well, now, about the partition (after the e2fsck);
>
>br ~ # parted /dev/hdb resize 1
>Start? [32kB]?
>End? [80GB]? 70GB
>Error: File system has an incompatible feature enabled.
>Information: Don't forget to update /etc/fstab, if necessary.
>
>
>
>Still with this error ...
>
>and about the cd-writer, ive tried cdrecord -scanbus, and it appears my
>CD-writer there, but now, nothing appears...
>
>When cdrecord stops it just broke in my display, i cant exit it, just
>killing...
>
>it stops something like that:
>
>ATAPI 1:
>
>and stops.... (ive already wait for 1 hour... and nothing happens)
>
>
>Any idea for this problems? :-P
>
>
just a note:
br ~ # cdrecord -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg
Schilling
cdrecord: Warning: Running on Linux-2.6.12-gentoo-r2
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'CyberDrv' 'CW078D CD-R/RW ' '120D' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
br ~ # cdrdao scanbus
Cdrdao version 1.2.0 - (C) Andreas Mueller <andreas@daneb.de>
SCSI interface library - (C) Joerg Schilling
Paranoia DAE library - (C) Monty
Check http://cdrdao.sourceforge.net/drives.html#dt for current driver
tables.
Using libscg version 'schily-0.8'
ATA:1,1,0 CyberDrv, CW078D CD-R/RW , 120D
br ~ #
with cdrdao it finds my cd-writer, with cdrecord no :(
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* [gentoo-user] Resizing ext3
2005-07-18 2:45 ` Bruno Gola
@ 2005-07-18 9:23 ` Bruno Gola
2005-07-18 18:08 ` Zac Medico
` (2 more replies)
0 siblings, 3 replies; 20+ messages in thread
From: Bruno Gola @ 2005-07-18 9:23 UTC (permalink / raw
To: gentoo-user
Any way to resize a ext3 partition ?
I'm trying with parted:
br ~ # parted /dev/hdb resize 1
Start? [32kB]?
End? [80GB]? 70GB
Error: File system has an incompatible feature enabled.
Information: Don't forget to update /etc/fstab, if necessary.
but ... i get this error... anyone knows what should i do ?
Thanks,
Bruno Gola
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-18 9:23 ` [gentoo-user] Resizing ext3 Bruno Gola
@ 2005-07-18 18:08 ` Zac Medico
2005-07-18 18:17 ` Richard Fish
2005-07-18 21:35 ` James Hiscock
2 siblings, 0 replies; 20+ messages in thread
From: Zac Medico @ 2005-07-18 18:08 UTC (permalink / raw
To: gentoo-user
Bruno Gola wrote:
> and about the cd-writer, ive tried cdrecord -scanbus, and it appears my
> CD-writer there, but now, nothing appears...
>
> When cdrecord stops it just broke in my display, i cant exit it, just
> killing...
>
> it stops something like that:
>
> ATAPI 1:
>
> and stops.... (ive already wait for 1 hour... and nothing happens)
>
>
> Any idea for this problems? :-P
We need the exact arguments that you gave to cdrecord and the exact output. Use the cdrecord -v option.
> Any way to resize a ext3 partition ?
>
> I'm trying with parted:
>
>
>
> br ~ # parted /dev/hdb resize 1
> Start? [32kB]?
> End? [80GB]? 70GB
> Error: File system has an incompatible feature enabled.
> Information: Don't forget to update /etc/fstab, if necessary.
>
> but ... i get this error... anyone knows what should i do ?
>
Too bad that error message isn't more specific. Any idea what that incompatible feature might be? Maybe the output of "dumpe2fs -h /dev/hdb | grep features" will give you a clue.
Zac
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-18 9:23 ` [gentoo-user] Resizing ext3 Bruno Gola
2005-07-18 18:08 ` Zac Medico
@ 2005-07-18 18:17 ` Richard Fish
2005-07-18 21:35 ` James Hiscock
2 siblings, 0 replies; 20+ messages in thread
From: Richard Fish @ 2005-07-18 18:17 UTC (permalink / raw
To: gentoo-user
Bruno Gola wrote:
>Any way to resize a ext3 partition ?
>
>I'm trying with parted:
>
>
>
I guess you'll have to do it manually with resize2fs and fdisk. Just
read the man page carefully, and think of it as a 2 or 3-step process:
Growing:
1. use fdisk to grow the partition first.
2. use resize2fs to grow the filesystem.
Shrinking:
1. use resize2fs to shink the filesystem to a point well below (at least
10% below) the size you want for the partition.
2. use fdisk to resize the partition.
3. use resize2fs to grow the filesystem to fill the partitition.
HTH,
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-18 9:23 ` [gentoo-user] Resizing ext3 Bruno Gola
2005-07-18 18:08 ` Zac Medico
2005-07-18 18:17 ` Richard Fish
@ 2005-07-18 21:35 ` James Hiscock
2005-07-18 23:50 ` Bruno Gola
2 siblings, 1 reply; 20+ messages in thread
From: James Hiscock @ 2005-07-18 21:35 UTC (permalink / raw
To: gentoo-user
On 7/18/05, Bruno Gola <brunogola@terra.com.br> wrote:
> Error: File system has an incompatible feature enabled.
1) Remove the journal from the ext3 partition using tune2fs:
tune2fs -C ^has_journal <partition>
2) Resize using parted
3) Add the journal back using tune2fs:
tune2fs -j <partition>
See 'man tune2fs' (as root) for important warnings & information (and
I really hope I've got that right...)
Qtparted might be an easier way to do the resize, as well... <shrug>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-18 21:35 ` James Hiscock
@ 2005-07-18 23:50 ` Bruno Gola
2005-07-19 12:24 ` James Hiscock
0 siblings, 1 reply; 20+ messages in thread
From: Bruno Gola @ 2005-07-18 23:50 UTC (permalink / raw
To: gentoo-user
James Hiscock wrote:
>On 7/18/05, Bruno Gola <brunogola@terra.com.br> wrote:
>
>
>>Error: File system has an incompatible feature enabled.
>>
>>
>
>1) Remove the journal from the ext3 partition using tune2fs:
> tune2fs -C ^has_journal <partition>
>
>2) Resize using parted
>
>3) Add the journal back using tune2fs:
> tune2fs -j <partition>
>
>See 'man tune2fs' (as root) for important warnings & information (and
>I really hope I've got that right...)
>
>Qtparted might be an easier way to do the resize, as well... <shrug>
>
>
>
Man, thanks... but look:
br ~ # umount /dev/hdb1
br ~ # tune2fs -O ^has_journal /dev/hdb1
tune2fs 1.37 (21-Mar-2005)
br ~ # qtparted
Warning: Unable to open /dev/hdc read-write (Read-only file system).
/dev/hdc has been opened read-only.
Error: File system has an incompatible feature enabled.
Error: File system has an incompatible feature enabled.
br ~ # parted /dev/hdb resize 1
Start? [32kB]?
End? [80GB]? 60GB
Error: File system has an incompatible feature enabled.
Information: Don't forget to update /etc/fstab, if necessary.
br ~ #
It stills in trouble (with -C it does not work, so i tryied man tune2fs
and i found out that it should be -O)... any idea ?
note that now (after tune2fs ...) the option "Resize" in QTparted, is
avaiable for this partition, but when i put 60GB i get an error...
Thanks,
Bruno Gola
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-18 23:50 ` Bruno Gola
@ 2005-07-19 12:24 ` James Hiscock
2005-07-19 18:56 ` Bruno Gola
0 siblings, 1 reply; 20+ messages in thread
From: James Hiscock @ 2005-07-19 12:24 UTC (permalink / raw
To: gentoo-user
> It stills in trouble (with -C it does not work, so i tryied man tune2fs
> and i found out that it should be -O)... any idea ?
My guess? I wrote down the wrong option. <shrug> Wouldn't really
surprise me - I tend to reply to these things first thing in the
morning, and I'm rarely entirely awake. ;)
> note that now (after tune2fs ...) the option "Resize" in QTparted, is
> avaiable for this partition, but when i put 60GB i get an error...
The only other thing(s) I can think of is that there's an option
similar to the "has_journal" one that's turned on that parted can't
deal with, or you're trying to resize the partition too much, or
there's data past the 60GB mark on the disk that parted can't move for
you... that last one seems a bit of a stretch to me, though, given the
error you're getting.
I can't recall ever having used parted directly, though, so I'm a bit
out of my depth here.
You might want to look at the man page for tune2fs again, and see if
there's a way to spit out the filesystem features on the partition
you're trying to resize, and disable them the same way you did with
the journal... not sure if that'll help, though...
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-19 12:24 ` James Hiscock
@ 2005-07-19 18:56 ` Bruno Gola
2005-07-19 21:54 ` James Hiscock
0 siblings, 1 reply; 20+ messages in thread
From: Bruno Gola @ 2005-07-19 18:56 UTC (permalink / raw
To: gentoo-user
James Hiscock wrote:
>>It stills in trouble (with -C it does not work, so i tryied man tune2fs
>>and i found out that it should be -O)... any idea ?
>>
>>
>
>My guess? I wrote down the wrong option. <shrug> Wouldn't really
>surprise me - I tend to reply to these things first thing in the
>morning, and I'm rarely entirely awake. ;)
>
>
>
>>note that now (after tune2fs ...) the option "Resize" in QTparted, is
>>avaiable for this partition, but when i put 60GB i get an error...
>>
>>
>
>The only other thing(s) I can think of is that there's an option
>similar to the "has_journal" one that's turned on that parted can't
>deal with, or you're trying to resize the partition too much, or
>there's data past the 60GB mark on the disk that parted can't move for
>you... that last one seems a bit of a stretch to me, though, given the
>error you're getting.
>
>I can't recall ever having used parted directly, though, so I'm a bit
>out of my depth here.
>
>You might want to look at the man page for tune2fs again, and see if
>there's a way to spit out the filesystem features on the partition
>you're trying to resize, and disable them the same way you did with
>the journal... not sure if that'll help, though...
>
>
>
Man look this:
br ~ # tune2fs -l /dev/hdb1
tune2fs 1.37 (21-Mar-2005)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 7bbe5861-7bbc-4fde-a5be-55cce4ea3c84
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal resize_inode filetype needs_recovery
e_super large_file
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 8192000
Block count: 16384000
Reserved block count: 655360
Free blocks: 7996721
Free inodes: 8166224
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1024
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 16384
Inode blocks per group: 512
Filesystem created: Sun Apr 17 01:58:25 2005
Last mount time: Tue Jul 19 00:11:17 2005
Last write time: Tue Jul 19 00:11:17 2005
Mount count: 7
Maximum mount count: 28
Last checked: Sun Jul 17 19:53:46 2005
Check interval: 15552000 (6 months)
Next check after: Fri Jan 13 20:53:46 2006
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: ff201bda-a730-40f7-b712-24dd18109a4d
Journal backup: inode blocks
br ~ #
i think the line
Filesystem features: has_journal resize_inode filetype needs_recovery
can help me, but i dont know how... any idea about wich feature i can
desable ?
Thanks,
Bruno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-19 18:56 ` Bruno Gola
@ 2005-07-19 21:54 ` James Hiscock
2005-07-20 5:00 ` Richard Fish
0 siblings, 1 reply; 20+ messages in thread
From: James Hiscock @ 2005-07-19 21:54 UTC (permalink / raw
To: gentoo-user
> i think the line
> Filesystem features: has_journal resize_inode filetype needs_recovery
> can help me, but i dont know how... any idea about wich feature i can
> desable ?
I think you're right, but as I said, I'm kinda out of my depth, now.
...but, you may want to pay attention to that "needs_recovery" flag:
you may want to fsck the partition, and correct any potential errors
(if any) before continuing.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-19 21:54 ` James Hiscock
@ 2005-07-20 5:00 ` Richard Fish
2005-07-20 7:44 ` charly ghislain
0 siblings, 1 reply; 20+ messages in thread
From: Richard Fish @ 2005-07-20 5:00 UTC (permalink / raw
To: gentoo-user
James Hiscock wrote:
>>i think the line
>>Filesystem features: has_journal resize_inode filetype needs_recovery
>>can help me, but i dont know how... any idea about wich feature i can
>>desable ?
>>
>>
>
>I think you're right, but as I said, I'm kinda out of my depth, now.
>
>...but, you may want to pay attention to that "needs_recovery" flag:
>you may want to fsck the partition, and correct any potential errors
>(if any) before continuing.
>
>
FYI, the "needs_recovery" flag is normal for any currently mounted
filesystem.
Bruno, have you tried using resize2fs directly as I suggested previously?
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-20 5:00 ` Richard Fish
@ 2005-07-20 7:44 ` charly ghislain
2005-07-20 12:19 ` James Hiscock
0 siblings, 1 reply; 20+ messages in thread
From: charly ghislain @ 2005-07-20 7:44 UTC (permalink / raw
To: gentoo-user
On Wed, 20 Jul 2005 07:00:09 +0200, Richard Fish <bigfish@asmallpond.org>
wrote:
> James Hiscock wrote:
>
>>> i think the line
>>> Filesystem features: has_journal resize_inode filetype
>>> needs_recovery
>>> can help me, but i dont know how... any idea about wich feature i can
>>> desable ?
Hi James
Im new to the list, so i havent all you first message :(
Following the subject, you want to resize an ext3 partition. This is
impossible with resize2fs. You can make your ext3 an ext2 partition by
removing the "has_journal" feature (tune2fs -O ^has_journal
/dev/partition). It should be safe, i did it few times. You can then
resize your filesystem then your partition with a program or with
resize2fs & fdisk. Read the resize2fs manual page for more information.
You should re-enable the journal after resizing with 'tune2fs -j
/dev/partition'.
Make sure to make backups to avoid data loss!
Charly
>>>
>>
>> I think you're right, but as I said, I'm kinda out of my depth, now.
>>
>> ...but, you may want to pay attention to that "needs_recovery" flag:
>> you may want to fsck the partition, and correct any potential errors
>> (if any) before continuing.
>>
>
> FYI, the "needs_recovery" flag is normal for any currently mounted
> filesystem.
>
> Bruno, have you tried using resize2fs directly as I suggested previously?
>
> -Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-20 7:44 ` charly ghislain
@ 2005-07-20 12:19 ` James Hiscock
2005-07-20 14:26 ` charlyghislain
2005-07-20 14:36 ` charlyghislain
0 siblings, 2 replies; 20+ messages in thread
From: James Hiscock @ 2005-07-20 12:19 UTC (permalink / raw
To: gentoo-user
> Hi James
Just for clarification, I'm not the one trying to resize an ext3
partition: Bruno is...
<snip>
> You can make your ext3 an ext2 partition by
> removing the "has_journal" feature (tune2fs -O ^has_journal
> /dev/partition).
</snip>
...and your advice was similar to the advice I gave him (but you
actually managed to write the command out correctly, whereas I didn't
;), but he's still running into problems (parted is complaining that
there's an "unsupported filesystem feature enabled", which is why he
posted the output of tune2fs).
I'm at a loss to help, but I've also been suggesting using parted
(which I've used successfully in the past)... maybe resize2fs will
work better as both you and Richard have suggested, but I've got no
experience with it...
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-20 12:19 ` James Hiscock
@ 2005-07-20 14:26 ` charlyghislain
2005-07-20 14:36 ` charlyghislain
1 sibling, 0 replies; 20+ messages in thread
From: charlyghislain @ 2005-07-20 14:26 UTC (permalink / raw
To: gentoo-user
On Wed, 20 Jul 2005 14:19:47 +0200, James Hiscock <boxroot@gmail.com>
wrote:
>> Hi James
>
> Just for clarification, I'm not the one trying to resize an ext3
> partition: Bruno is...
>
> <snip>
>> You can make your ext3 an ext2 partition by
>> removing the "has_journal" feature (tune2fs -O ^has_journal
>> /dev/partition).
> </snip>
>
> ...and your advice was similar to the advice I gave him (but you
> actually managed to write the command out correctly, whereas I didn't
> ;), but he's still running into problems (parted is complaining that
> there's an "unsupported filesystem feature enabled", which is why he
> posted the output of tune2fs).
>
> I'm at a loss to help, but I've also been suggesting using parted
> (which I've used successfully in the past)... maybe resize2fs will
> work better as both you and Richard have suggested, but I've got no
> experience with it...
>
I used to get trouble with parted (and qtparted), so i managed to find
another solution. Its the resize2fs & fdisk one. DONT FORGET TO MAKE
BACKUP. I will describe here the method i used (saw in the resize2fs
manual) for everyone who want to know:
1 - remove the has_journal feature from your ext3 partition. It is now an
ext2 partition and resize2fs can operate.
# tune2fs -O ^has_journal /dev/partition
2 - a) If you want to shrink the partition, start by shrinking the
filesystem as described in the resize2fs manual page.
# resize2fs /dev/partition xxxs (s for 512bytes sectors)
b) If you want to enlarge the partition, start by enlarging the
partition itself with fdisk. You will have to delete the partition then
recreate it STARTING FROM THE SAME CYLINDER.
3 - For this step, check several times what youre going to do before
pressing enter!
a) After having shrinked the filesystem, shrink the partition with
fdisk. Start by deleting the partition then recreate it STARTING FROM THE
SAME CYLINDER. Dont make the partition smaller than the filesystem. You
can make fdisk print size in sectors (press u). You should keep a marge to
be sure.
b) After having enlarged the partition, enlarge the filesystem with
resize2fs and DONT MAKE IT GREATER THAN THE PARTITION. You should make it
1 or 2 mo smaller to be sure.
# resize2fs /dev/partition xxxs (s for sectors)
4 - You can now re-enable the 'has_journal' feature to convert your ext2
to ext3 back.
# tune2fs -j /dev/partition.
With this method, the first block of the partition cant be moved :(
Hope this help. this is somewhat a manual method, but it works. Be sure to
have a pen and paper next to you :)
(and excuse my poor english)
charly
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] Resizing ext3
2005-07-20 12:19 ` James Hiscock
2005-07-20 14:26 ` charlyghislain
@ 2005-07-20 14:36 ` charlyghislain
1 sibling, 0 replies; 20+ messages in thread
From: charlyghislain @ 2005-07-20 14:36 UTC (permalink / raw
To: gentoo-user
On Wed, 20 Jul 2005 14:19:47 +0200, James Hiscock <boxroot@gmail.com>
wrote:
>> Hi James
>
> Just for clarification, I'm not the one trying to resize an ext3
> partition: Bruno is...
>
> <snip>
>> You can make your ext3 an ext2 partition by
>> removing the "has_journal" feature (tune2fs -O ^has_journal
>> /dev/partition).
> </snip>
>
> ...and your advice was similar to the advice I gave him (but you
> actually managed to write the command out correctly, whereas I didn't
> ;), but he's still running into problems (parted is complaining that
> there's an "unsupported filesystem feature enabled", which is why he
> posted the output of tune2fs).
parted used to not support ext3 resizing, so, there are chances it is the
'has_journal' feature causing problems. For now, it seems it is supported
as with the methosd by resize2fs: the start of the partition must stay
fixed :( (http://www.gnu.org/software/parted/parted.html)
>
> I'm at a loss to help, but I've also been suggesting using parted
> (which I've used successfully in the past)... maybe resize2fs will
> work better as both you and Richard have suggested, but I've got no
> experience with it...
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2005-07-20 14:41 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-17 20:52 [gentoo-user] Resizing ext3 and burning cds Bruno Gola
2005-07-18 1:45 ` Zac Medico
2005-07-17 22:49 ` Bruno Gola
2005-07-18 1:59 ` Nick Rout
2005-07-18 2:09 ` Zac Medico
2005-07-18 2:42 ` Bruno Gola
2005-07-18 2:45 ` Bruno Gola
2005-07-18 9:23 ` [gentoo-user] Resizing ext3 Bruno Gola
2005-07-18 18:08 ` Zac Medico
2005-07-18 18:17 ` Richard Fish
2005-07-18 21:35 ` James Hiscock
2005-07-18 23:50 ` Bruno Gola
2005-07-19 12:24 ` James Hiscock
2005-07-19 18:56 ` Bruno Gola
2005-07-19 21:54 ` James Hiscock
2005-07-20 5:00 ` Richard Fish
2005-07-20 7:44 ` charly ghislain
2005-07-20 12:19 ` James Hiscock
2005-07-20 14:26 ` charlyghislain
2005-07-20 14:36 ` charlyghislain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox