|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Quote:
Quote:
Last edited by gillindu; 31st January 2012 at 07:00 PM. |
|
|||
Quote:
Quote:
Quote:
|
|
|||
During my last double-check of my original disklabel table and all my fdisk outputs, I've discovered that all my logical partitions were distanced by 63 sectors from one another. The NetBSD slice too, it was starting 63 sectors after the end of its preceding (NTFS) partition. I can only vaguely suspect why it's so, but, it does make some sense about those 189 sectors "missing" from c: 63 x 3 (for its 3 subpartitions that are not distanced themselves) = 189! There used to be a free space after that partition, so it didn't cause any troubles. But now, I should make sure to have the slice starting at the same point as before, but, ending 63 sectors before the start of the next (ext2) partition. Or, maybe it should be 63 x number of intended sub-partitions?
|
|
|||
I've started plain fstab, but, I don't see there is an option to choose the type of a partition one would create (!?) Cfdisk does have that option. (Might it be that your Linux fdisk is nothing else, but, a meta-program, that, in realty, runs cfdisk?). So, I've run cfdisk, deleted the "sun-ufs" partition and, after that (without having committed the change), I've chosen "New" in that same free space. Under "custom" it offers the list of partition types, so I've chosen "sun-ufs". Then it has proposed me a partition's starting point and it was immediately after the end of the preceding partition. I've corrected it (+63) to have the same starting point as before. At my surprise, it has proposed an ending point as much as 15531 sectors before the start of the next partition. I didn't even try to increase it, I've accepted the proposal. (I don't mind if I lose a couple of megabytes, as long as I make it right in disklabel table... and I've taken a note from cfdisk's info.) But, when, at the end, I've tried "Make FS", it said - "Can't create filesystem sun-ufs, you'll have to choose another... Press any key to continue". So, I've followed your advice - to exit (c)fdisk without saving changes and I think I'll wait till you have some time, never mind when it might be.
|
|
||||
Quote:
My sense is that 63 sector gap between the partitions should be enough. E.g., the ext2 partition has no idea what's inside the prior slice. |
|
||||
Quote:
Quote:
Code:
-rwxr-xr-x 1 root root 85380 Sep 10 2008 /sbin/fdisk* -rwxr-xr-x 1 root root 53208 Sep 10 2008 /sbin/cfdisk* Quote:
Quote:
|
|
|||
Obviously my mind hasn't been too fresh.
Quote:
Quote:
Quote:
OK, now I'm done with it and I'm going to boot the NetBSD InstallCD. Should I re-create wd0a, wd0b and wd0h too (/, swap and /usr), or I just have to change disklabel? (Creating of the new partition is something I can leave for a later moment.) BTW, fdisk has propsed me the same default values for START and END as cfdisk. There's always that gap of 15531 sectors till the next partition. I don't understand why, but, I've accepted it. (And I've corrected my protofile and saved it at a place accessible from the InstallCD) Last edited by gillindu; 1st February 2012 at 07:05 AM. |
|
|||
Done that too. Changed the disklabel, it seems everything OK. I can mount and list both wd0a and wd0h It seems... (better not to say, for the moment ). Of course, I could create wd0g now, as well (may I, by chance, do it from the running NetBSD?), but, I'd prefer to go first under (disk) NetBSD to see... whether it will boot.
|
|
|||
YES, IT DOES!!!!!
|
|
|||
Quote:
Code:
<...> g: 12273471 200957274 4.2BSD 2048 16384 0 h: 11514762 189442512 4.2BSD 2048 16384 0 <...> Code:
newfs /dev/wd0g Code:
newfs: /dev/wd0g is a block device. use raw device |
|
|||
[QUOTE=IdOp;42364]the command
Code:
newfs /dev/wd0g Code:
newfs /dev/rwd0g But, I'm looking now at NetBSD's /dev (mounted from Debian) and rwd0d is marked as being last modified a week ago (???), rwd1d - the day before yesterday (?) and all other rdwXY devices seem to have been as they are since the very first installation (only rwd0h somewhat later) |
|
||||
Quote:
Yes, I think "raw device" means use rwd0g. It may be in the man page so would be good idea to recheck it carefully. Certainly it should not be done on the entire disk, nor the entire slice, nor any BSD-partition in the slice that is already formatted. It would wipe out all the data on any of those! newfs is like mke2fs under Linux, or format under DOS. It makes a new empty filesystem ready on the prepared partition, and will kill anything that is already there! So just do the new one you created. As for the other new ext2 partition outside the NetBSD slice, that I would again create with fdisk, using f to fix the order (expert mode again) if needed, and then format it with mke2fs running from Linux. After that you can go to NetBSD and add it to your disklabel if it isn't there already. Hope this helps, got to run for a bit again ... |
|
|||
Quote:
P.S. Well... almost done. I only have to export some big /usr/subdirectory (/usr/pkg) to the new partition, to add the mounting point in /etc/fstab and to delete the original content (from InstallCD shell) Thank you, IdOp, for your assistence! |
|
||||
That is awesome!
Quote:
Quote:
|
|
|||
Quote:
And once again - thank you very much! Only... I see (I'm new in this forum) that in your header you have "Thanked 14 Times in 13 Posts" and your result hasn't changed after my last thanksgiving few posts above. Maybe that thanksgiving hasn't been sufficient? So, what should I do (I am too dumb for any phone) to thank you officially? |
|
|||
Maybe it's not necessary, I don't know yet (I've just finished copying and in this moment I'm running diff to verify whether they're identical). If I mount the new partition as /usr/pkg now, I obviously won't be able to remove from /usr what would remain beyond the mounting point. If I don't mount the new partiton, I'm not sure the system would allow me to delete the contents of /usr/pkg (or, at leaste, something of that), something is probably in use. And I feel it more simple just to boot from the InstallCD, for a moment, then to examine who is using what, where and why.
|
|
||||
Quote:
Quote:
|
|
||||
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
NetBSD 5.1 Installation issues | acottag | NetBSD Installation and Upgrading | 8 | 14th January 2011 05:06 AM |
Resizing slices | jewsofeast | NetBSD General | 1 | 20th November 2010 11:34 AM |
Resizing /usr | jewsofeast | OpenBSD Installation and Upgrading | 11 | 19th November 2010 01:46 PM |
Resizing /usr | abdo88 | FreeBSD General | 15 | 12th July 2008 01:49 PM |
NetBSD installation problem | fgs | NetBSD Installation and Upgrading | 3 | 26th June 2008 04:01 PM |