Weblog entry #9 for Grimnar
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
# sfdisk -l /dev/hda
With that info we could help you.
[ Parent | Reply to this comment ]
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 ]
# 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 ]
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 ]
But it has to be an ext2 filesystem first and your /dev/hda5 had no filesystem yet.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
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.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
That wouldn't stop if from trying to do a DNS lookup ..
[ Parent | Reply to this comment ]