All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: CD writing in ext2 filesystem
@ 2002-04-23 17:48 Suriya Narayanan M S
  2002-04-23 18:47 ` Pierre Rousselet
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Suriya Narayanan M S @ 2002-04-23 17:48 UTC (permalink / raw)
  To: Pierre Rousselet; +Cc: GNU/Linux Newbie

On Monday 22 April 2002 01:29, Pierre Rousselet wrote:
  > Suriya Narayanan M S wrote:
  > > # mount -t ext2 -o ro /dev/cdrom /mnt/cdrom
  >
  > Is there any error message following this command line ?
Yes.
mount: wrong fs type, bad option, bad superblock on /dev/cdrom, 
       or too many mounted file systems
--
Guru Brahma Gurur Vishnu
Gurur Dhevo Maheshwaraha
Gurur Saakshaath Parabramha
Thasmai Shree Gurave Namaha

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 15+ messages in thread
* CD writing in ext2 filesystem
@ 2002-04-25  1:24 Suriya Narayanan M S
  2002-04-25 15:52 ` Richard Adams
  0 siblings, 1 reply; 15+ messages in thread
From: Suriya Narayanan M S @ 2002-04-25  1:24 UTC (permalink / raw)
  To: Pierre Rousselet; +Cc: GNU/Linux Newbie

Hi,
	Thank you very much for help. Now I am able to write
CDs in native ext2 format. This is very useful since there is
no need to bother about long filenames, maximum depth, etc.
I would like to summarize how to do it. This is for the benefit
of others who are new to the list or have lost track of this
discussion.
	The point to note is the block size has to be 4k.

	Create a file of the required size
$ dd if=/dev/zero of=file.ext2 bs=650M count=1
	Create an ext2 filesystem in it. Block size 4096 is important
$ mkfs.ext2 file.ext2 -b 4096
$ mkdir mountdir
# mount file.ext2 mountdir -o loop
# cp something mountdir
# umount mountdir
	Write the CD
# cdrecord dev=0,0,0 speed=4 -data file.ext2
	Now mount the CD and use it
# mount /dev/cdrom mountdir -t ext2 -o ro

Thank you,
Suriya Narayanan M S
-- 
Guru Brahma Gurur Vishnu
Gurur Dhevo Maheshwaraha
Gurur Saakshaath Parabramha
Thasmai Shree Gurave Namaha

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 15+ messages in thread
* CD writing in ext2 filesystem
@ 2002-04-21 16:51 Suriya Narayanan M S
  2002-04-21 19:59 ` Pierre Rousselet
  0 siblings, 1 reply; 15+ messages in thread
From: Suriya Narayanan M S @ 2002-04-21 16:51 UTC (permalink / raw)
  To: GNU/Linux Newbie

Hi all,
	I wrote a CD in ext2 filesystem (that is what I 
thought I did) but now I am unable to read the CD.
What I did was
$ dd if=/dev/zero of=file.ext2 bs=400M count=1
$ mkfs.ext2 file.ext2
# mount file.ext2 /mnt/fileimage -t ext2 -o loop
# cp something /mnt/fileimage
# umount /mnt/fileimage
# cdrecord -v speed=4 dev=0,0,0 -data file.ext2

I was unabe to mount the CD with the command
# mount -t ext2 -o ro /dev/cdrom /mnt/cdrom 

Some observations I made were
$ file file.ext2
file.ext2: Linux rev 1.0 ext2 filesystem data
$ cat /dev/cdrom | file -
standard input:              Linux rev 1.0 ext2 filesystem data
$ dd if=/dev/cdrom of=newfile.ext2
Now I am able to mount newfile.ext2

Could somebody please help me on what could have gone wrong.

Thanks in advance
Suriya Narayanan M S
-- 
Guru Brahma Gurur Vishnu
Gurur Dhevo Maheshwaraha
Gurur Saakshaath Parabramha
Thasmai Shree Gurave Namaha


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-04-25 19:29 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-23 17:48 CD writing in ext2 filesystem Suriya Narayanan M S
2002-04-23 18:47 ` Pierre Rousselet
2002-04-23 20:43 ` Staci
2002-04-24  9:45 ` Paul Furness
2002-04-24 14:50   ` Richard Adams
2002-04-25 17:00   ` Suriya Narayanan M S
2002-04-25 18:34     ` Richard Adams
2002-04-25 18:49       ` Pierre Rousselet
2002-04-25 19:20         ` Richard Adams
2002-04-25 19:12       ` Steven Smith
2002-04-25 19:29         ` Richard Adams
  -- strict thread matches above, loose matches on Subject: below --
2002-04-25  1:24 Suriya Narayanan M S
2002-04-25 15:52 ` Richard Adams
2002-04-21 16:51 Suriya Narayanan M S
2002-04-21 19:59 ` Pierre Rousselet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.