IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Tried it, no dice
drook@drookenstein:~$ sudo dd if=/dev/zero of=/dev/hdb bs=1024 count=1024 1024+0 records in\n1024+0 records out\n1048576 bytes transferred in 0.205743 seconds (5096534 bytes/sec)\ndrook@drookenstein:~$ sudo mount /c\nmount: wrong fs type, bad option, bad superblock on /dev/hdb1,\n       or too many mounted file systems\ndrook@drookenstein:~$ cat /etc/fstab\n# /etc/fstab: filesystem table.\n#\n# filesystem  mountpoint  type  options  dump  pass\n/dev/hda1  /  ext3  defaults,errors=remount-ro  0  1\n/dev/hda2  none  swap  sw  0  0\n/dev/hdb1  /c  ext3  defaults,errors=remount-ro  0  1\nproc  /proc  proc  defaults  0  0\n/dev/fd0  /floppy  vfat  defaults,user,noauto,showexec,umask=022  0  0\n/dev/cdrom  /cdrom  iso9660  defaults,ro,user,noexec,noauto  0  0\ndrook@drookenstein:~$ sudo fdisk /dev/hdb\nDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel\nBuilding a new DOS disklabel. Changes will remain in memory only,\nuntil you decide to write them. After that, of course, the previous\ncontent won't be recoverable.\n\n\nThe number of cylinders for this disk is set to 26354.\nThere is nothing wrong with that, but this is larger than 1024,\nand could in certain setups cause problems with:\n1) software that runs at boot time (e.g., old versions of LILO)\n2) booting and partitioning software from other OSs\n   (e.g., DOS FDISK, OS/2 FDISK)\nWarning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)\n\nCommand (m for help): p\n\nDisk /dev/hdb: 13.6 GB, 13601193984 bytes\n16 heads, 63 sectors/track, 26354 cylinders\nUnits = cylinders of 1008 * 512 = 516096 bytes\n\n   Device Boot      Start         End      Blocks   Id  System\n\nCommand (m for help): n\nCommand action\n   e   extended\n   p   primary partition (1-4)\np\nPartition number (1-4): 1\nFirst cylinder (1-26354, default 1):\nUsing default value 1\nLast cylinder or +size or +sizeM or +sizeK (1-26354, default 26354):\nUsing default value 26354\n\nCommand (m for help): p\n\nDisk /dev/hdb: 13.6 GB, 13601193984 bytes\n16 heads, 63 sectors/track, 26354 cylinders\nUnits = cylinders of 1008 * 512 = 516096 bytes\n\n   Device Boot      Start         End      Blocks   Id  System\n/dev/hdb1               1       26354    13282384+  83  Linux\n\nCommand (m for help): w\nThe partition table has been altered!\n\nCalling ioctl() to re-read partition table.\nSyncing disks.\ndrook@drookenstein:~$ sudo mount /c\nmount: wrong fs type, bad option, bad superblock on /dev/hdb1,\n       or too many mounted file systems\n


I'm stumped.
===

Implicitly condoning stupidity since 2001.
Collapse Edited by drewk Sept. 29, 2004, 12:01:32 AM EDT
Will do tonight
===

Implicitly condoning stupidity since 2001.
New Okay Step by step
1) dd if=/dev/zero of=/dev/hdb bs=1024 count=1024
2) cfdisk /dev/hdb (create and write new partition table one primary partition)
3) mkfs.ext3 /dev/hdb1 (this one you missed)
4) mount -text3 /dev/hdb1 /c

Cheers!
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
Here is an example: [link|http://www.greymagic.com/security/advisories/gm001-ie/|Executing arbitrary commands without Active Scripting or ActiveX when using Windows]
New Better
..but this is still bad advice. Let's see what Drew says.
-drl
New No... not bad advice.
Give us YOUR advice then.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
Here is an example: [link|http://www.greymagic.com/security/advisories/gm001-ie/|Executing arbitrary commands without Active Scripting or ActiveX when using Windows]
New Re: No... not bad advice.
It's not wrong, it's uncommented, making it bad.

It's like an obession among admins. Say nothing to the proles.
-drl
New No, the *first* one was bad for that reason
He assumed I'd know the step I missed. I didn't. But since setting up new disks is something I have to do rarely, and expect to do very few times in the future, I really don't have any desire to absorb the lore. A real sysadmin knew what I wanted (a working filesystem[*]) and told me the steps to do it. It's all magic incantations at some level. This is one I just needed done.


* Actually, all I cared about is that ever since I tried to put XP on the second disk I haven't been able to boot it without being there to hit Ctrl-D halway into the process. If that goes away, without having to crack the case (again) and unplug the damn drive I'm happy.
===

Implicitly condoning stupidity since 2001.
New No. With Drew I ass-u-me a certain base level.
But, I can see from your comments YOU don;t think of it that way.

He understand what "man foo" does. He understands command line switches. He understands what "shift" will do inside a shell script. Basically he is a very competent user.

I address the level of the user typically, when I am proven to have aimed a bit to high... I aim lower.

And to Address you "undocumented advice" concern.

Watch out. You give advice that isn't documented properly (cumbersomely documented not be be enough) I'll be on you like flies on Shiite.
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
Here is an example: [link|http://www.greymagic.com/security/advisories/gm001-ie/|Executing arbitrary commands without Active Scripting or ActiveX when using Windows]
New Looks like that got it
Do I need to modify my fstab to have it mount ext3 instead of ext2?
===

Implicitly condoning stupidity since 2001.
New Nah... but it won't use the journaling of ext3
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
Here is an example: [link|http://www.greymagic.com/security/advisories/gm001-ie/|Executing arbitrary commands without Active Scripting or ActiveX when using Windows]
New Re: Looks like that got it
tune2fs -j <partition>


Peter
[link|http://www.debian.org|Shill For Hire]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Blog]
New It was formatted as EXT3... :)
--
[link|mailto:greg@gregfolkert.net|greg],
[link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey
No matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]
Here is an example: [link|http://www.greymagic.com/security/advisories/gm001-ie/|Executing arbitrary commands without Active Scripting or ActiveX when using Windows]
     How do I fix a bad superblock? - (drewk) - (29)
         should be able to relocate it - (daemon) - (4)
             Tried it, no luck - (drewk) - (3)
                 Re: Tried it, no luck - (JayMehaffey) - (2)
                     correct -NT - (pwhysall)
                     Will try tonight, didn't notice that, thanks -NT - (drewk)
         dd if=/dev/zero of=/dev/hdb bs=1024 count=1024 - (folkert) - (23)
             Tried it, no dice - (drewk) - (10)
                 Okay Step by step - (folkert) - (9)
                     Better - (deSitter) - (4)
                         No... not bad advice. - (folkert) - (3)
                             Re: No... not bad advice. - (deSitter) - (2)
                                 No, the *first* one was bad for that reason - (drewk)
                                 No. With Drew I ass-u-me a certain base level. - (folkert)
                     Looks like that got it - (drewk) - (3)
                         Nah... but it won't use the journaling of ext3 -NT - (folkert)
                         Re: Looks like that got it - (pwhysall) - (1)
                             It was formatted as EXT3... :) -NT - (folkert)
             Amateur. - (inthane-chan) - (6)
                 Funny ... think I found my next April 1 disk -NT - (drewk) - (1)
                     I keep mine next to the NT admin password reset disk. - (inthane-chan)
                 bookmarked ta -NT - (daemon)
                 idiot -NT - (deSitter) - (2)
                     Stop being a moron, Ross. -NT - (pwhysall)
                     Nice to know you can't take a joke. -NT - (inthane-chan)
             glib -NT - (deSitter) - (4)
                 HUH? -NT - (folkert) - (3)
                     Re: HUH? - (deSitter) - (2)
                         Better idea. - (pwhysall)
                         Ahhh, yeah. *I* built this machine he - (folkert)

Life is too short for tears. I recommend flatulence. It appeals to more senses.
106 ms