[H-GEN] confusion re device namings
Mark Suter
mark at zwitterion.humbug.org.au
Tue Sep 28 05:49:11 EDT 1999
-----BEGIN PGP SIGNED MESSAGE-----
Clinton,
> I know I'll get into trouble for this, but I've been getting rid of my
> (badly sized) partitions for /home /usr etc and just been shoving them
> all in the one partition, currently I've got:
>
> hda1 Boot Primary Linux ext2 2944.66
> hda5 Logical Linux ext2 1266.70
> hda6 Logical Linux swap 98.71
Please, post the output to "/sbin/fdisk -l /dev/hda" if it
differs from this in any way. Don't proceed if you partition
table is not "sane".
> everything of mine is currently on hda5, and I want to move it to
> hda1, repartition and then try out ext2resize.
I'm assuming you want two partitions, the root filesystem
and swap.
> risky, yes, but i have backups :)
Have you done a compare?
> now, the problem is, how do I make a file system on hda1?
> When I boot up, some part of the kernel maps hda5 to hda1, why, i
> don't know...
The following will duplicate the root filesystem on /dev/hda1.
/sbin/mkfs -V -t ext2 -v /dev/hda1
/bin/mkdir -p /mnt/new_root
/bin/mount /dev/hda1 /mnt/new_root
cd /mnt/new_root
/sbin/dump 0f - / | /sbin/restore rf -
cd /
/bin/umount /mnt/new_root
Yours sincerely,
- -- Mark John Suter | I know that you believe you understand
suter at humbug.org.au | what you think I said, but I am not sure
PGP encryption is OK | you realise that what you heard is not
Ph: +61 4 1162 2316 | what I meant. anonymous
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Comment: Public key available from http://www.uq.edu.au/~suter/public_key.txt
Charset: noconv
iQCVAwUBN/CPE3BbxiOCJ17ZAQFT7wP/ZDt5Eiq7DknFxyT/b4pwvdka/+6buCBu
/8cToCkjuspaetASYa480yE35TknB5d8UDlgp+jwnSZOICDjdbR5iY/DXuk0oVhB
QbQvQK75LPaLHi3ft5qllCls8F1aHiiNlImCsix/qHcVX/xPs1AjeOYKRoZMXig+
/rLXDsJdazU=
=fM9W
-----END PGP SIGNATURE-----
More information about the General
mailing list