Post #176,811
9/28/04 2:48:55 PM
9/29/04 12:01:32 AM
|

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.

Edited by drewk
Sept. 29, 2004, 12:01:32 AM EDT
Will do tonight
===
Implicitly condoning stupidity since 2001.
|
Post #176,919
9/29/04 12:38:50 AM
|

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!] @ iwetheyNo 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]
|
Post #176,936
9/29/04 5:27:42 AM
|

Better
..but this is still bad advice. Let's see what Drew says.
-drl
|
Post #176,944
9/29/04 8:03:01 AM
|

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!] @ iwetheyNo 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]
|
Post #176,956
9/29/04 8:54:02 AM
|

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
|
Post #176,961
9/29/04 9:09:32 AM
|

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.
|
Post #176,963
9/29/04 9:29:07 AM
|

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!] @ iwetheyNo 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]
|
Post #176,945
9/29/04 8:03:51 AM
|

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.
|
Post #176,947
9/29/04 8:08:46 AM
|

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!] @ iwetheyNo 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]
|
Post #176,948
9/29/04 8:11:56 AM
|

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]
|
Post #176,949
9/29/04 8:15:39 AM
|

It was formatted as EXT3... :)
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwetheyNo 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]
|