Re: adding a partition, fdisk, disklabel, and other fun
Ted Unangst wrote: On Tue, 6 Sep 2005, Kelly Martin wrote: I've got an A6 primary partition with various /usr and /var style partitions within. Pretty standard, but I ran out of disk space. I added a second primary A6 partition in the freespace of the same disk using fdisk, but don't do this. Can someone walk me through this as if I were a monkey, and take me step-by-step? I wanna tell disklabel it's got to be /var/www/htdocs on the above partition, then run newfs, then mount it, and then add it to my fstab for good. create some other parition type in fdisk, go into disklabel, use 'b' to edit the whole disk, and add a new partition with the appropriate values. i'd definitely use raw sector offsets for this, as chs geometry will likely be wrong. then newfs and away you go. Not that I have an issue with this now, but would it be possible to extend the current A6 partition and then update the disklabel accordingly, if there is free space is directly after, or could/will this hose stuff? I would feel more comfortable with this approach, keeping all OpenBSD stuff within the A6 in order not to (or less likely) mess upp stuff later. /Alexander
Re: adding a partition, fdisk, disklabel, and other fun
On Wed, Sep 07, 2005 at 09:20:51AM +0200, Alexander Hall wrote: Not that I have an issue with this now, but would it be possible to extend the current A6 partition and then update the disklabel accordingly, if there is free space is directly after, or could/will this hose stuff? I would feel more comfortable with this approach, keeping all OpenBSD stuff within the A6 in order not to (or less likely) Unmount the parttition to be grown, use disklabel(8) to enlarge it to the desired size then use growfs(8).
Re: adding a partition, fdisk, disklabel, and other fun
Bruno Rohee wrote: On Wed, Sep 07, 2005 at 09:20:51AM +0200, Alexander Hall wrote: Not that I have an issue with this now, but would it be possible to extend the current A6 partition and then update the disklabel accordingly, if there is free space is directly after, or could/will this hose stuff? I would feel more comfortable with this approach, keeping all OpenBSD stuff within the A6 in order not to (or less likely) Unmount the parttition to be grown, use disklabel(8) to enlarge it to the desired size then use growfs(8). Well, I was referring to the OBSD MBR partition (of type A6) (aka BIOS partitions), a' la fdisk(8). Maybe a bit unclear on that. So, basically, I wondered if it would be possible to extend MBR: ||A6 partition..|Unpartitioned|...| OBSD: |.|wd0a|..|wd0f| into MBR: ||A6 partition|...| OBSD: |.|wd0a|..|wd0f|wd0g|wd0h|...| /Alexander
Re: adding a partition, fdisk, disklabel, and other fun
On Wed, Sep 07, 2005 at 12:29:22PM +0200, Alexander Hall wrote: Well, I was referring to the OBSD MBR partition (of type A6) (aka BIOS partitions), a' la fdisk(8). Maybe a bit unclear on that. So, basically, I wondered if it would be possible to extend MBR: ||A6 partition..|Unpartitioned|...| OBSD: |.|wd0a|..|wd0f| into MBR: ||A6 partition|...| OBSD: |.|wd0a|..|wd0f|wd0g|wd0h|...| Using fdisk it seems possible... fdisk -e wd0 print edit the right number refuse to edit in CHS mode to enter in LBA mode then increase the size... I didn't actually saved but it seemed to work... -- There's no point in being grown up if you can't be childish sometimes. -- Dr. Who
Re: adding a partition, fdisk, disklabel, and other fun
On Wed, 7 Sep 2005, Alexander Hall wrote: Not that I have an issue with this now, but would it be possible to extend the current A6 partition and then update the disklabel accordingly, if there is free space is directly after, or could/will this hose stuff? I would feel more comfortable with this approach, keeping all OpenBSD stuff within the A6 in order not to (or less likely) mess upp stuff later. yeah, that'd work. -- And that's why you don't see him around today.
Re: adding a partition, fdisk, disklabel, and other fun
On Tuesday, September 6, Kelly Martin wrote: I've got an A6 primary partition with various /usr and /var style partitions within. Pretty standard, but I ran out of disk space. I added a second primary A6 partition in the freespace of the same disk using fdisk, but cannot figure out how to use disklabel and newfs properly to add this new partition and then mount it as /var/www/htdocs. In general, we don't support two A6 partitions. Having said that, there is nothing preventing you from partitioning it as something else (say.. um, MSDOS-16, or... some other non-descript number), and then using disklabel to use that space (I forget the command that let's you edit the label with out-of-bounds portions). Not necessarily recommended, will void your warranty, and you could loose data... --Toby.
Re: adding a partition, fdisk, disklabel, and other fun
On Wednesday, September 7, Alexander Hall wrote: Well, I was referring to the OBSD MBR partition (of type A6) (aka BIOS partitions), a' la fdisk(8). Maybe a bit unclear on that. So, basically, I wondered if it would be possible to extend MBR: ||A6 partition..|Unpartitioned|...| OBSD: |.|wd0a|..|wd0f| into MBR: ||A6 partition|...| OBSD: |.|wd0a|..|wd0f|wd0g|wd0h|...| Yes, that is very possible. Just edit the A6 partition to have a new end where you want it. --Toby.
Re: adding a partition, fdisk, disklabel, and other fun
On Tue, 6 Sep 2005, Kelly Martin wrote: I've got an A6 primary partition with various /usr and /var style partitions within. Pretty standard, but I ran out of disk space. I added a second primary A6 partition in the freespace of the same disk using fdisk, but don't do this. Can someone walk me through this as if I were a monkey, and take me step-by-step? I wanna tell disklabel it's got to be /var/www/htdocs on the above partition, then run newfs, then mount it, and then add it to my fstab for good. create some other parition type in fdisk, go into disklabel, use 'b' to edit the whole disk, and add a new partition with the appropriate values. i'd definitely use raw sector offsets for this, as chs geometry will likely be wrong. then newfs and away you go. -- And that's why we don't want to be expected to help clean up the mess you made.