LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 10-09-2003, 04:28 PM   #1
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
tune2fs screwed up my partitions (or it was me :)


okay, I wanted to resize a few partitions with partition magic. When I loaded it (v.8) it would only give me the resize option for ext2 file systems and not ext3. The partition I want to resize is ext3, so I figured I would just make it ext2 and then change it back when I was done.

So, I had a hard time with tune2fs at first because it told me I would need to run it with the root partition read-only or unmounted. The first thing I tried was changing my rc.S script. I commented out the first line that remounted the root partition read only and I changed the second one to remount it ro instead of rw. I then tried to restart but got a bunch of errors and decided that was a bad idea. I changed the script back and booted from the slack cdrom.

I then mounted my normal root partition (hda2) on /mnt/root as read only and chrooted into /mnt/root. I ran
Code:
tune2fs -O ^has_journal /dev/hda2
and it finished. I then tried to run it on /dev/hda3 but it gave an error and said to run e2fsck. So I did and then ran tune2fs with no problems.

When I tried to boot back into them I get a kernel panic with the following messages:
Code:
FAT: bogus logical sector size 0
UMSDOS: msdos_read_super failed, mount aborted.
FAT: bogus logical sector size 0
FAT: bogus logical sector size 0
read_super_block: can't find reiserfs filesystem on (dev 03:02, block 64, size 1024)
read_super_block: can't find reiserfs filesystem on (dev 03:02, block 64, size 1024)
Kernel panic: VFS: Unable to mount root fs on 03:02
But here is the funny part (its not funny at all ) I can boot into that same partition with my slack cd using:
Code:
bare.i root=/dev/hda2 noinitrd ro
So, I guess I really don't understand enough about this whole process to figure out why there is a difference. Why would one kernel boot but not another? I didn't change anything even remotely assosciated with the kernel.

Help would be greately appreciated. I am at work and would hate it if I have to boot into windoz for the rest of the day.

--UPDATE

I am now really frustrated. I used my old kernel to boot and it WORKED!!! BUT WHY??? I DIDN'T CHANGE ANYTHING ON THE KERNEL DID I?

--UPDATE

Uh...don't compile the kernel without ext2 support ... he he

--UPDATE

Okay...I only post this in case anyone can use the information. I do have a question though. Does slackware do something different with their ext2 file system? I have had 3 situations now where other programs have said that my ext2 partitions were different. partition magic said my "file version" was not supported, and parted said it had an "incapatable attribute". Anyone know why this is happening?
 
Old 10-09-2003, 04:31 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,667

Rep: Reputation: 217Reputation: 217Reputation: 217
Probably because the 'move'. have you added the journal again? It should help.
 
Old 10-10-2003, 08:22 AM   #3
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Original Poster
Rep: Reputation: 31
Yes, I did add the journal back and everything is working fine now.

I still wonder if the slack filesystem is somehow different than other filesystems. Three times of having similar issues just seems like too much of a coincidence.
 
Old 10-11-2003, 05:37 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,667

Rep: Reputation: 217Reputation: 217Reputation: 217
No...filesystems are all the same (they use the same kernel drivers). It must be something different...
 
  


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
tune2fs -c 4 -C 3 calutateo Linux - General 2 07-06-2005 03:13 PM
tune2fs & fsck backne Mandriva 2 04-26-2005 09:13 AM
tune2fs?? blackzone Linux - Newbie 1 01-07-2005 02:24 AM
tune2fs Q - how to set count cbjhawks Linux - General 2 10-07-2004 01:37 PM
Screwed w2k partitions! sharon63 Linux - Newbie 2 08-18-2003 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:35 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