LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-22-2006, 05:01 AM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638

Rep: Reputation: 46
Mnt folder


[nissanka@c83-250-110-112 ~]$ su root
Password:
[root@c83-250-110-112 nissanka]# cd /mnt
[root@c83-250-110-112 mnt]# ls
cdrom/ floppy/ win_c/ win_d/
[root@c83-250-110-112 mnt]# cd cdrom
[root@c83-250-110-112 cdrom]# ls
[root@c83-250-110-112 cdrom]#


I just burnt or rather copied some files using the CD burner.

The ls command doesn't show the files inside the CD.

What the heck is this?
How can I read the files there?
Your help is appreciated.
------------------------------------------------------------
Here win_c means the windows side of my computer. When the computer starts I could go select Windows XP.It works beautifully.

[root@c83-250-110-112 mnt]# cd win_c
[root@c83-250-110-112 win_c]# ls
acrocrashlog.html* CONFIG.SYS* hpfr5600.log* NTDETECT.COM* Program Files/
AUTOEXEC.BAT* cygwin/ IO.SYS* ntldr* RECYCLER/
boot.ini* Documents and Settings/ Kpcms/ pagefile.sys* System Volume Information/
Compression Tools AIO/ hiberfil.sys* MSDOS.SYS* PGP/ WINDOWS/
[root@c83-250-110-112 win_c]#

Last edited by Gins; 09-22-2006 at 05:02 AM.
 
Old 09-22-2006, 05:18 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to mount the CD.
 
Old 09-22-2006, 05:21 AM   #3
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
either your cd drive is not mounted or it is mounted to another location (/media/cdrom has become somewhat common on some distros)

as i am unfamiliar with mandrake i could not tell you where your cd drive usually should be mounted to.

but if you run 'mount' the commands output will give you enough info
in this output you will also see if the cd drive is mounted at all

if not mounted run 'mount /dev/cdrom' or 'mount /dev/cdrom /mnt/cdrom'
that should do the trick

win_c will also me mentioned in the output of 'mount'
as if the partition was not mounted, /mnt/win_c would be an empty directory just lik /mnt/cdrom

EDIT: 3 mins too slow :-P
 
Old 09-22-2006, 05:21 AM   #4
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638

Original Poster
Rep: Reputation: 46
Thanks Nylex

Then I don't have to mount the Windows side to read the files there.
 
Old 09-22-2006, 05:24 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Your Windows partition is most likely automatically mounted at boot time, because that's what's specified in your /etc/fstab.
 
Old 09-22-2006, 05:37 AM   #6
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638

Original Poster
Rep: Reputation: 46
Thanks Nylex and Nathan for the replies.

Why didn't following work?

[nissanka@c83-250-110-112 ~]$ su root
Password:
[root@c83-250-110-112 nissanka]# #mount /dev/hda -t iso9660 -r /cdrom
[root@c83-250-110-112 nissanka]# cd /mnt
[root@c83-250-110-112 mnt]# ls
cdrom/ floppy/ win_c/ win_d/
[root@c83-250-110-112 mnt]# cd cdrom
[root@c83-250-110-112 cdrom]# ls
[root@c83-250-110-112 cdrom]#

----------------------------
It accepted the mount command; however it was hollow.


---------------------------

[root@c83-250-110-112 cdrom]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@c83-250-110-112 cdrom]# ls
[root@c83-250-110-112 cdrom]#


What does the above implie?

Last edited by Gins; 09-22-2006 at 05:40 AM.
 
Old 09-22-2006, 05:40 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You mounted to /cdrom and not /mnt/cdrom.
 
Old 09-22-2006, 05:44 AM   #8
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638

Original Poster
Rep: Reputation: 46
When it mounts read-only, you should be able to read the files. I mean the ls command should work and I should be able to copy files too.
 
Old 09-22-2006, 06:03 AM   #9
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638

Original Poster
Rep: Reputation: 46
I badly need your help. I want to read and copy some files from the CD I burnt.
 
Old 09-22-2006, 06:11 AM   #10
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
run
Code:
umount /dev/hda
mount -t iso9660 /dev/hda /mnt/cdrom
that is if you are sure /dev/hda is your cd drive...
often /dev/cdrom is mapped to the device of your cd drive...
 
Old 09-22-2006, 06:54 AM   #11
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638

Original Poster
Rep: Reputation: 46
Thanks Nathan

I rebooted the computer and tried the command you suggested.

----------------------------------------
[nissanka@c83-250-110-112 ~]$ su root
Password:
[root@c83-250-110-112 nissanka]# mount -t iso9660 /dev/hda /mnt/cdrom
mount: /dev/hda already mounted or /mnt/cdrom busy
[root@c83-250-110-112 nissanka]# cd /mnt
[root@c83-250-110-112 mnt]# ls
cdrom/ floppy/ win_c/ win_d/
[root@c83-250-110-112 mnt]# cd cdrom
[root@c83-250-110-112 cdrom]# ls
[root@c83-250-110-112 cdrom]#
----------------------------------------------

What the heck is this?
 
Old 09-22-2006, 07:10 AM   #12
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
ok - just post the output of 'sfdisk -l' 'mount' and 'cat /etc/fstab'

and please note my sig.
 
Old 09-22-2006, 07:48 AM   #13
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638

Original Poster
Rep: Reputation: 46
Thanks Nathanael



[root@c83-250-110-112 nissanka]# sfdisk -l

Disk /dev/hda: 24321 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 4560 4561- 36636201 7 HPFS/NTFS
/dev/hda2 4561 24320 19760 158722200 f W95 Ext'd (LBA)
start: (c,h,s) expected (1023,254,63) found (1023,0,1)
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
/dev/hda5 4561+ 14263 9703- 77939316 b W95 FAT32
start: (c,h,s) expected (1023,254,63) found (1023,1,1)
/dev/hda6 14264+ 24128 9865- 79240581 83 Linux
start: (c,h,s) expected (1023,254,63) found (1023,1,1)
/dev/hda7 24129+ 24320 192- 1542208+ 82 Linux swap / Solaris
start: (c,h,s) expected (1023,254,63) found (1023,1,1)
[root@c83-250-110-112 nissanka]#

-------------------------------------------------------


[root@c83-250-110-112 nissanka]# mount
/dev/hda6 on / type ext2 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=ext2:vfat,--)
/dev/hda1 on /mnt/win_c type ntfs (ro,umask=0,nls=iso8859-1)
/dev/hda5 on /mnt/win_d type vfat (rw,umask=0,iocharset=iso8859-1,codepage=850)
none on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=43)
[root@c83-250-110-112 nissanka]#

--------------------------------------------


[root@c83-250-110-112 nissanka]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda6 / ext2 defaults 1 1
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hda1 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/hda5 /mnt/win_d vfat umask=0,iocharset=iso8859-1,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda7 swap swap defaults 0 0
[root@c83-250-110-112 nissanka]#
 
Old 09-22-2006, 07:51 AM   #14
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Your CD drive appears to be /dev/hdc and not /dev/hda, so you should be trying to mount /dev/hdc instead. Does /dev/cdrom point to /dev/hdc?
 
Old 09-22-2006, 08:08 AM   #15
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,638

Original Poster
Rep: Reputation: 46
Thanks Nylex
Now it works.
----------------------------
[root@c83-250-110-112 nissanka]# mount -t iso9660 /dev/hdc /mnt/cdrom
mount: block device /dev/hdc is write-protected, mounting read-only
[root@c83-250-110-112 nissanka]# cd /mnt
[root@c83-250-110-112 mnt]# ls
cdrom/ floppy/ win_c/ win_d/
[root@c83-250-110-112 mnt]# cd cdrom
[root@c83-250-110-112 cdrom]#
----------------------------------


[root@c83-250-110-112 mnt]# cd cdrom
[root@c83-250-110-112 cdrom]# ls
Anantayata Yana.mpg
remove1~

anduru reye.DAT
remove11.html~~

antecedent
remove122.html

Anton_Jones_Ratin_Ratata.zip
remove122.html~

Anton Paulovich Chekov(1)
remove2

argument1*
remove2~
argument1~*
remove3.html
argument2*

Last edited by Gins; 09-22-2006 at 08:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i get the error Could not enter folder /mnt/hdb1 linuxretard Linux - Hardware 2 04-10-2005 10:54 AM
Mounting a ftp folder in /mnt actionthomas Linux - Newbie 2 01-20-2004 06:09 PM
i changed /mnt/cdrom to /mnt/CD-RW - now i've got a problem?!?! spyghost Linux - Software 7 09-30-2003 02:06 PM
/mnt/cdrom & /mnt/scd0 locks up machine RIgimp75 Mandriva 7 09-01-2003 09:32 PM
mount -t //192.168.0.1/mnt /mnt/windows -o password='' generates error broadsoft Linux - Networking 3 08-07-2003 04:51 AM


All times are GMT -5. The time now is 05:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration