View previous topic :: View next topic |
Author |
Message |
Sendell n00b
Joined: 30 Sep 2002 Posts: 6 Location: Belgium
|
Posted: Sat Nov 20, 2004 6:50 pm Post subject: confusing partition table |
|
|
Hello all,
I'm doing a new installation, and wanted to try out reiser4 (lxnay livecd).
During partitioning and creation of the filesystems I mistyped and changed my mind a few times but when it finally was ok I rebooted, mounted and it all looked good (as far as I could see with mount command)
Later on I noticed that there was something wrong. (hiding hdc to keep it clear, it contains /var /tmp /home /usr)
what I wanted:
Code: | /dev/hda7 reiserfs 30M /boot
/dev/hda8 linux-swap 500M swap
/dev/hda9 reiser4 5G /
| It all looks ok when mounting:
Code: | lxnaycd tecnico # mount /dev/hda9 /mnt/gentoo/
lxnaycd tecnico # mount /dev/hda7 /mnt/gentoo/boot/
lxnaycd tecnico # swapon /dev/hda8
lxnaycd tecnico # mount
...
/dev/hda9 on /mnt/gentoo type reiser4 (rw)
/dev/hda7 on /mnt/gentoo/boot type reiserfs (rw)
...
| but output of 'fdisk -l' tells me something else:
Code: | /dev/hda7 82 Linux swap
/dev/hda8 b W95 FAT32
/dev/hda9 83 Linux
| and qtparted tells me a third thing:
Code: | /dev/hda7 unknown 30M
/dev/hda8 reiserfs 500M
/dev/hda9 linux-swap 5G
| Clearly there is something wrong as the disk seems to remember some things from the past.
Now to solve it I was thinking of:
- booting with livecd, mounting a partition on hdc (reiser4) and then using mv command to move / and /boot to each his own new directory.
- make hdc somehow forget these strange things and recreate the partitions
- mv / and /boot back and live happily ever after
Questions :
- What happen ?
- How do I do number 2? (I don't want to lose the other partitions on hda)
- Would there be a problem with permissions if I start moving the files around?
- What did I overlook?
|
|
Back to top |
|
|
Crenshaw Guru
Joined: 23 Jun 2004 Posts: 474 Location: Poland
|
Posted: Sat Nov 20, 2004 7:36 pm Post subject: |
|
|
Permissions will be ok if you will cp -p everything. |
|
Back to top |
|
|
Sendell n00b
Joined: 30 Sep 2002 Posts: 6 Location: Belgium
|
Posted: Sun Nov 21, 2004 10:26 pm Post subject: |
|
|
thanks,
I looked into cp arguments and used 'cp -Rpd'
FYI, It's solved, fdisk said something about wrong order of partitions. wich I could fix in the eXpert menu in fdisk. |
|
Back to top |
|
|
|