Weblog entry #9 for Grimnar

Confused about some hdd stuff.
Posted by Grimnar on Wed 19 Jul 2006 at 21:24
Tags: none.
Hi again, this is beginning to quite a routine. New week and a new "need help post" from me.

Well, this time im referring to my problems with booting debian without any problems. And to sort this problem I need to fix some stuff with my disks.

One way of fixing this is really to comment out a line in my /etc/fstab and live it like that. But that makes my system 170gb smaller and that is really not a option.


The problems is that I have my /dev/hda divided into 2 partitions one /dev/hda1 and one /dev/hda5 (used to be /dev/hda2). Now, how can I make use of the /dev/hda5? And I want a ext3 system, like my /dev/hda1.

In before some comments about searching google and stuff I really gave it a go and tried some stuff of but without any success.
This is one of them:


debian:/home/andreas# tune2fs -j /dev/hda5
tune2fs 1.39 (29-May-2006)
tune2fs: Bad magic number in super-block while trying to open /dev/hda5
Couldn't find valid filesystem superblock.


Some infomation from my system:


debian:/home/andreas# df -a    
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1             24027628   4404452  18402640  20% /
proc                         0         0         0   -  /proc
sysfs                        0         0         0   -  /sys
tmpfs                   485704         0    485704   0% /dev/shm
devpts                       0         0         0   -  /dev/pts
/dev/hdb5             76920384    184464  72828516   1% /mnt/opt2
/dev/hde             153837436    131244 145891648   1% /mnt/opt3
/dev/hdf             240365240  17543544 210611768   8% /mnt/opt4
usbfs                        0         0         0   -  /proc/bus/usb



# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
#/dev/hda2       /mnt/opt1       ext2    defaults        0       2
/dev/hdb5       /mnt/opt2       ext3    defaults,errors=remount-ro      0       1
/dev/hde        /mnt/opt3       ext3    defaults,errors=remount-ro      0       1
/dev/hdf        /mnt/opt4       ext3    defaults,errors=remount-ro      0       1
#/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0




To sum it all up, I want to make use of /dev/hda5 (old /dev/hda2)

-Andreas

 

Comments on this Entry

Posted by rodaballo (213.73.xx.xx) on Wed 19 Jul 2006 at 22:20
[ Send Message ]
What about pasting the output of
# sfdisk -l /dev/hda

With that info we could help you.

[ Parent | Reply to this comment ]

Posted by Grimnar (85.221.xx.xx) on Wed 19 Jul 2006 at 22:34
[ Send Message | View Weblogs ]
Thanks a lot for that reply, maybe I might get this fixed tonight:)

Disk /dev/hda: 24321 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hda1   *      0+   3038    3039-  24410736   83  Linux
/dev/hda2       3039   24320   21282  170947665    5  Extended
/dev/hda3          0       -       0          0    0  Empty
/dev/hda4          0       -       0          0    0  Empty
/dev/hda5       3039+  24320   21282- 170947633+  83  Linux


[ Parent | Reply to this comment ]

Posted by rodaballo (213.73.xx.xx) on Wed 19 Jul 2006 at 22:43
[ Send Message ]
If you are completely sure that /dev/hda5 is empty or you don't need the data anymore, just create a filesystem with
# mkfs.ext3 /dev/hda5

So then you can edit your fstab, changing /dev/hda2 for /dev/hda5 and uncommenting the line.

[ Parent | Reply to this comment ]

Posted by Grimnar (85.221.xx.xx) on Wed 19 Jul 2006 at 22:48
[ Send Message | View Weblogs ]
hehe, this is very weird. I did exactly this on some of the other disks on my system but i could not for the life of me remember the syntax and google gave me tune2fs -j /dev/hdX. So what is the difference?

Anyway, the syntax you provided did the trick and it got to work. Thanks a lot.

(feels a bit stupid)

[ Parent | Reply to this comment ]

Posted by rodaballo (213.73.xx.xx) on Wed 19 Jul 2006 at 22:59
[ Send Message ]
tune2fs -j creates a journal in an ext2 filesystem, converting it to ext3.

But it has to be an ext2 filesystem first and your /dev/hda5 had no filesystem yet.

[ Parent | Reply to this comment ]

Posted by Grimnar (85.221.xx.xx) on Wed 19 Jul 2006 at 23:56
[ Send Message | View Weblogs ]
Everything is working like a charm. Uploading my backup to the disks and no troubles. Reboot works great as well. Although ssh login takes forever.

[ Parent | Reply to this comment ]

Posted by Steve (62.30.xx.xx) on Thu 20 Jul 2006 at 00:27
[ Send Message | View Steve's Scratchpad | View Weblogs ]
Although ssh login takes forever.

Probably unrelated. It might just be that your SSH server is trying to lookup the IP address of the connecting host - and that fails, after waiting for a while to timeout.

(When servers are slow to connect I always suspect DNS!)

Try adding host + IP address of your client to /etc/hosts on the server - and if that fixes it you'll know that was the cause.

Steve

[ Parent | Reply to this comment ]

Posted by Grimnar (85.221.xx.xx) on Thu 20 Jul 2006 at 01:51
[ Send Message | View Weblogs ]
Well, its only a server on my local network. So its a internal ip on both ends.

[ Parent | Reply to this comment ]

Posted by Steve (62.30.xx.xx) on Thu 20 Jul 2006 at 09:05
[ Send Message | View Steve's Scratchpad | View Weblogs ]

That wouldn't stop if from trying to do a DNS lookup ..

Steve

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search