LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mnt folder (https://www.linuxquestions.org/questions/linux-general-1/mnt-folder-485940/)

Gins 09-22-2006 05:01 AM

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]#

Nylex 09-22-2006 05:18 AM

You need to mount the CD.

Nathanael 09-22-2006 05:21 AM

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

Gins 09-22-2006 05:21 AM

Thanks Nylex

Then I don't have to mount the Windows side to read the files there.

Nylex 09-22-2006 05:24 AM

Your Windows partition is most likely automatically mounted at boot time, because that's what's specified in your /etc/fstab.

Gins 09-22-2006 05:37 AM

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?

Nylex 09-22-2006 05:40 AM

You mounted to /cdrom and not /mnt/cdrom.

Gins 09-22-2006 05:44 AM

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.

Gins 09-22-2006 06:03 AM

I badly need your help. I want to read and copy some files from the CD I burnt.

Nathanael 09-22-2006 06:11 AM

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...

Gins 09-22-2006 06:54 AM

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?

Nathanael 09-22-2006 07:10 AM

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

and please note my sig.

Gins 09-22-2006 07:48 AM

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]#

Nylex 09-22-2006 07:51 AM

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?

Gins 09-22-2006 08:08 AM

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*


All times are GMT -5. The time now is 07:44 AM.