What's the easiest way to wipe HDD label & Partition info off drive?
#1
Question  What's the easiest way to wipe HDD label & Partition info off drive?
Hi,
  I'm experimenting with Irix OS installs...blanking the doot drive (ID1) enough to call it "empty" to try another install is seemly difficult.   I was hoping I could use what I do under linux and just DD the first 10MB or so of the drive to wipe all partitions and volume info so I could just re-FX everything. I'm afraid if I just mkfs on the root parittion that I'll still have old volhdr sash files stuff and such.  I'd rather the installer see the drive as blank...just easier.

Suggestions on how to do this without removing the drives. Can I just boot sash from CD and somehow run DD against partition 10?

OR can I reference the entire disk some other way from PROM miniroot to "blank" the used drive without low-level formatting it (I don't want this after I've already done it once on a disk during drive check-up).

Thanks!
(This post was last modified: 07-25-2021, 12:59 AM by weblacky.)
weblacky
I play an SGI Doctor, on daytime TV.

Trade Count: (10)
Posts: 1,719
Threads: 88
Joined: Jan 2019
Location: Seattle, WA
Find Reply
07-25-2021, 12:58 AM
#2
RE: What's the easiest way to wipe HDD label & Partition info off drive?
yeah, there's an option for this. When in a miniroot install:

admin

This brings up the admin menu, from here there's an option (forget the number) to format.

That does the trick Smile

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,264
Threads: 537
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
07-25-2021, 01:17 AM
#3
RE: What's the easiest way to wipe HDD label & Partition info off drive?
Isn't format = low-level format like FX?
weblacky
I play an SGI Doctor, on daytime TV.

Trade Count: (10)
Posts: 1,719
Threads: 88
Joined: Jan 2019
Location: Seattle, WA
Find Reply
07-25-2021, 01:34 AM
#4
RE: What's the easiest way to wipe HDD label & Partition info off drive?
More likely that only fx knows how to send SCSI FORMAT UNIT commands. Programs need to be linked against the SCSI library to talk to devices at a low level.

There are ways to do what you want, but what is the deeper reason for wanting that? There isn't anything really version-specific about the volume header or sash. I think the kernel is ECOFF throughout the history of Irix, so as long as the proper sash for the hardware architecture is installed it should work okay.

Yes, you can run sash from a CDROM (or a TFTP network server). Yes, you can blank a disk without low-level formatting it, from fx (use /exe/seq wr-only, and take the defaults).

If you know that you are using a 6.5 fx, you can use /auto. Note that 5.3 fx was bugged and did a (low-level) FORMAT when auto was selected (I guess on SMD/ESDI disks it was actually required and so the old behavior made some sense in the 1980s).

Personaliris O2 Indigo2 R10000/IMPACT Indigo2 R10000/IMPACT Indigo2 Indy   (past: 4D70GT)
(This post was last modified: 07-25-2021, 02:44 AM by robespierre.)
robespierre
refector peritus

Trade Count: (0)
Posts: 643
Threads: 3
Joined: Nov 2020
Location: Massholium
Find Reply
07-25-2021, 02:28 AM
#5
RE: What's the easiest way to wipe HDD label & Partition info off drive?
(07-25-2021, 01:34 AM)weblacky Wrote:  Isn't format = low-level format like FX?

No. it's a mkfs on the disk, which destroys all data.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,264
Threads: 537
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
07-25-2021, 02:56 AM
#6
RE: What's the easiest way to wipe HDD label & Partition info off drive?
(07-25-2021, 02:28 AM)robespierre Wrote:  More likely that only fx knows how to send SCSI FORMAT UNIT commands. Programs need to be linked against the SCSI library to talk to devices at a low level.

There are ways to do what you want, but what is the deeper reason for wanting that? There isn't anything really version-specific about the volume header or sash. I think the kernel is ECOFF throughout the history of Irix, so as long as the proper sash for the hardware architecture is installed it should work okay.

Yes, you can run sash from a CDROM (or a TFTP network server). Yes, you can blank a disk without low-level formatting it, from fx (use /exe/seq wr-only, and take the defaults).

If you know that you are using a 6.5 fx, you can use /auto. Note that 5.3 fx was bugged and did a (low-level) FORMAT when auto was selected (I guess on SMD/ESDI disks it was actually required and so the old behavior made some sense in the 1980s).

Yeah, I was using irix 5.3...so...yeah saw "format" a little too often and got stuck in low-level formats 3 times (auto being one of them)...good thing I'm dealing with small drives.  I used Auto in 6.5 and never remembered this happening...odd you mentioned that...but I fell for that too!

So yeah I do have a real "big boy" reason for wanting the the drive appear empty. I'm going from 5.3 and 6.5.x...so I don't want any "cruft" in the volume header sections.  I don't want old sashes, UNIX.IPXX, and the like.  YES they are different for each disk (overlay) so I don't want to "mix and match".  The OS already does all this for me (on a blank drive) when I do label/create/all and partition/rootdrive under FX...OS install does the rest. I do not want it to find previous files in partition 8 and such.  I don't care about empty partitions...but they aren't empty right now and if I do a label/create/all and partition with ROotdrive under the installer for 5.3...it doesn't erase ANYTHING...just surfaces the old XFS filesystem and I've done nothing to help my case.

It's EASIER for me to have a blank drive than hope it gets upgraded as I go up and down the Irix version tree.

So you're saying you think a surface scan is the fastest way to wipe the drive...are you sure you don't  now a way to run a small overwrite the drive's first portion of space to wipe formatting/partition info so it just "looks" blank?  If I had a Linux Boot disk...it's just DD the front of the drive and it would be seen as blank. That's really what I'd pref to do.
weblacky
I play an SGI Doctor, on daytime TV.

Trade Count: (10)
Posts: 1,719
Threads: 88
Joined: Jan 2019
Location: Seattle, WA
Find Reply
07-25-2021, 03:08 AM
#7
RE: What's the easiest way to wipe HDD label & Partition info off drive?
There's no way to do this unless you wanna say, keep a spare scsi2sd around for your system, and then boot from that, and dd over the volume header of the drive to corrupt the data on it.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,264
Threads: 537
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
07-25-2021, 03:15 AM
#8
RE: What's the easiest way to wipe HDD label & Partition info off drive?
this is what I do when I want to install over an existing installation, or when the installer complains about "unable to mount partition realroot.."

$ bootp():/6.5.30/Overlay/disc1/stand/fx.64

enter write mode by answering yes. select disk..
in the main menu enter:

[r] to enter repartition menu
[ro] to repartition rootdrive, confirm with [y]
[..] to return to the main menu
[d/fi] to enter debug menu and fillbuf

buf offset = (0) press enter
fill string = () type [a] and press enter
nbytes = (524288) type 0x10000 and press enter

[d/w] to enter debug menu and writebuf
buf offset = (0) press enter
nblocks=(xxx) type [128] and press enter

[l/sy] to enter label menu and sync

then exit, restart and install IRIX
flexion
O2

Trade Count: (0)
Posts: 23
Threads: 0
Joined: Oct 2020
Location: Zurich
Find Reply
07-25-2021, 05:37 AM
#9
RE: What's the easiest way to wipe HDD label & Partition info off drive?
(07-25-2021, 01:34 AM)weblacky Wrote:  Isn't format = low-level format like FX?
The best results I had using  a Windows XP computer.

Indigo2  Indigo2 R10000/IMPACT  Indigo2 R10000/IMPACT  Indigo2 R10000/IMPACT   O2  1600SW-on  Octane2  Octane2   Fuel  Tezro Indy    Origin 350
blacksmith
Tezro

Trade Count: (1)
Posts: 57
Threads: 17
Joined: Jun 2018
Find Reply
07-25-2021, 01:39 PM
#10
RE: What's the easiest way to wipe HDD label & Partition info off drive?
(07-25-2021, 05:37 AM)flexion Wrote:  this is what I do when I want to install over an existing installation, or when the installer complains about "unable to mount partition realroot.."

$ bootp():/6.5.30/Overlay/disc1/stand/fx.64

enter write mode by answering yes. select disk..
in the main menu enter:

[r] to enter repartition menu
[ro] to repartition rootdrive, confirm with [y]
[..] to return to the main menu
[d/fi] to enter debug menu and fillbuf

buf offset = (0) press enter
fill string = () type [a] and press enter
nbytes = (524288) type 0x10000 and press enter

[d/w] to enter debug menu and writebuf
buf offset = (0) press enter
nblocks=(xxx) type [128] and press enter

[l/sy] to enter label menu and sync

then exit, restart and install IRIX
NICE, you found a way to write over the front of the drive..exactly what I wanted to do!  I'll try this out, thanks!
weblacky
I play an SGI Doctor, on daytime TV.

Trade Count: (10)
Posts: 1,719
Threads: 88
Joined: Jan 2019
Location: Seattle, WA
Find Reply
07-26-2021, 01:04 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)