DimGR
04-06-2004, 06:37 PM
I am looking for the command:)
|
Click to See Complete Forum and Search --> : how to mount hard drives? DimGR 04-06-2004, 06:37 PM I am looking for the command:) EnigmaOne 04-06-2004, 06:46 PM read: 'man mount' Then use: 'mount' DimGR 04-07-2004, 08:55 AM i need to mound my 2 hard drives , cdrom and cdrw. After the mount /dev/hda/windows -t ntfs -o, ro what do i type? Taqwus 04-07-2004, 09:04 AM you need a mount point I use the /mnt directory just type mount -t filesystem /dev/hda /mnt/whichever folder you are using here is an example of the cd rom mount /dev/cdrom /mnt/cdrom DimGR 04-07-2004, 09:14 AM filesytem is NTFS in my case cause what i want to do is to mount my drives so i can be able to listen to music from windows partitions ( NTFS) Should it be like this? (one drive has 2 partitions ) mount -t NTFS/dev/hda /mnt/ mount -t NTFS /dev/hda1 /mnt/ mount -t NTFS/dev/hdb /mnt/ XiaoKJ 04-07-2004, 09:36 AM Its more like #mount /dev/hda1 -t NTFS /mnt/winxp Make sure you have the folder /mnt/winxp. The filesystem type isnt neccessary when the system can guess it. You may want to add it to your fstab so that it is more readily accessible. mdwatts 04-07-2004, 10:28 AM Have a look at /etc/fstab. cat /etc/fstab If you already have the device defined in fstab, you only need to use mount /mnt/<mountpoint> to mount the device. As suggested, read the mount manpage (man mount) and search the JL forums for i.e. 'mount ntfs' to find lots of previous threads on the subject. <edit> Do yourself (and us :) ) a favor and take the time to review the JL Help File Library. Most of your questions should be answered. DimGR 04-07-2004, 01:16 PM first off all my 2 hard drives are partitioned like C and D ( and the other drive is E under Windows. NTFS file systems. I know Linux can only read them . Thats fine . As root i type mount /dev/hda1/mnt/windows -t ntfs -o,ro . So far its good. mkdir/mnt/windows does not work mount/windows does not work /dev/hda1/ does not work either. I right click on the desktop and choose new item then hard drive. I click on mount. It works. I double click it to open it and it says file:/mnt/win_d you do not have permissions. Same error for the floppy drive and my cd rom and cd burner. How can i continue? mdwatts 04-07-2004, 01:24 PM Originally posted by DimGR mkdir/mnt/windows does not work mount/windows does not work /dev/hda1/ does not work either. With no spaces between mkdir and /mnt/windows? As I previously posted, have a look at the contents of /etc/fstab as the Windows partition devices AND MOUNTPOINTS may already exist. If they do, you do not need to create the mountpoints with 'mkdir etc.' cat /etc/fstab Look for something like /dev/hda1 /mnt/windows vfat defaults,noauto 0 0 and then you only need to mount manually with mount /mnt/windows and umount with mount /mnt/windows Again as previously suggested, read some of the other threads on this subject (search for 'mount windows') and read the JL Help Files. RTFM !!! :) mdwatts 04-07-2004, 01:26 PM http://justlinux.com/nhf/Filesystems/Mounting_NTFS_Filesystems.html http://justlinux.com/nhf/Miscellaneous/Accessing_Files_on_Another_Disk_Partition_from_Lin ux.html The second one does not work for some reason. Go to http://justlinux.com/nhf/Miscellaneous and click on Accessing Files on another Disk Partition from Linux. DimGR 04-07-2004, 02:15 PM where can i find the /etc/fstab and /mnt directory ? Thank you very much :) gehidore 04-07-2004, 02:45 PM first off did you actualy take the grand masters (mdwatts) advice? it seems that while reviewing this thread md has said times to look at the jl helpfiles hes even taken his time to give you links to these files. i would say unless you wish to be ignored, you should do some reading of your own. in linux you have something called root ie the base of all folders and files this is located at / when you ask where /mnt/ is then your actualy answering your own question the mnt folder is at / mnt/ so cd /mnt would take you there. windoze = C: D: E: linux = /dev/hda1 /dev/hda2 /dev/hdb1 where /dev is device /hda is which storage device ie hard drive and 2 would equal the partition number once again READ something any thing on the jlhfl DimGR 04-07-2004, 09:58 PM i tried, i READ and i mounted them. The problem now is that they all appear locked and when i click on them i get a message saying i do not have permissions j79zlr 04-07-2004, 10:15 PM use this mount command, set the umask to 0 to allow all users access mount -t ntfs -o umask=0,ro /dev/hda1 /windows gehidore 04-07-2004, 10:18 PM if they're ntfs unless you have ntfs write support enabled in your kernel they WILL be readonly. if you dont youll have to either add modules for them or recompile the kernel if you look at mdwatts sig he has precompiled ntfs modules for redhat there mdwatts 04-08-2004, 10:28 AM If a normal user does not have sufficient permissions to mount or umount a filesystem, please search the JL forums for either 'mount ntfs permission' or 'mount vfat permission' as we have loads and loads of previous threads on this same issue. That and soundcard related problems are likely the most popular questions posted here at JL. DimGR 04-10-2004, 02:27 PM i read the articles but i still get these problems. /etc ans some other directories are locked too . Drives are locked too. from dmseg as root cdrom: open failed. cdrom: open failed. hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 0 hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 4 MSDOS FS: IO charset iso8859-1 MSDOS FS: Using codepage 850 hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 0 FAT: unable to read boot sector FAT: freeing iocharset=iso8859-1 hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 0 hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 1 hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 2 hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 3 hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 4 hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 5 hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 6 hdc: command error: status=0x51 { DriveReady SeekComplete Error } hdc: command error: error=0x54 end_request: I/O error, dev 16:00 (hdc), sector 7 from lsmod nls_cp850 4316 1 (autoclean) vfat 12012 1 (autoclean) fat 39256 0 (autoclean) [vfat] floppy 55868 2 sr_mod 16888 0 (autoclean) audigy 75336 0 sound 74028 0 [audigy] soundcore 6788 0 [audigy sound] ac97_codec 12616 0 [audigy] af_packet 16360 1 (autoclean) natsemi 19616 1 (autoclean) ohci1394 19784 0 (unused) ieee1394 49196 0 [ohci1394] nls_iso8859-1 3516 4 (autoclean) ntfs 77420 3 (autoclean) ide-cd 33888 0 cdrom 31808 0 [sr_mod ide-cd] ide-scsi 11344 0 scsi_mod 106516 2 [sr_mod ide-scsi] pl2303 12728 0 (unused) usbserial 21628 0 [pl2303] ehci-hcd 19208 0 (unused) usb-ohci 21320 0 (unused) usb-uhci 25772 0 (unused) usbcore 76608 1 [pl2303 usbserial ehci-hcd usb-ohci usb-uhci] rtc 8892 0 (autoclean) ext3 62636 2 jbd 42600 2 [ext3] cat /etc/fstab /dev/hdb1 / ext3 defaults 1 1 none /dev/pts devpts mode=0620 0 0 /dev/hdb7 /home ext3 defaults 1 2 /dev/hdc /mnt/cdrom auto user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0 /dev/scd0 /mnt/cdrom2 auto user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0 /dev/fd0 /mnt/floppy auto user,iocharset=iso8859-1,sync,codepage=850,noauto,exec 0 0 /dev/hda1 /mnt/win_c ntfs iocharset=iso8859-1,ro 0 0 /dev/hdb5 /mnt/win_c2 ntfs iocharset=iso8859-1,ro 0 0 /dev/hda5 /mnt/win_d ntfs iocharset=iso8859-1,ro 0 0 none /proc proc defaults 0 0 /dev/hdb6 swap swap defaults 0 0 /dev/hda1/mnt/hda1 vfat ro, defaults,users,noauto 0 0 bash: /dev/hda1/mnt/hda1: Not a directory /dev/hda1/mnt/hda1 vfat ro, defaults, users, noauto 0 0 bash: /dev/hda1/mnt/hda1: Not a directory as root again... hdparm -d0 -u0 -c0 -m0 /dev/hdc && badblocks /dev/hdc /dev/hdc: setting 32-bit IO_support flag to 0 setting multcount to 0 HDIO_SET_MULTCOUNT failed: Invalid argument setting unmaskirq to 0 (off) setting using_dma to 0 (off) HDIO_GET_MULTCOUNT failed: Invalid argument IO_support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 0 (off) badblocks: No medium found while trying to determine device size [root@dhcppc2 XXX]# bash: hdparm: command not found bash: bash:: command not found --this is a 3monthes old Maxtor 120gb --- ( i tried that on Mandrakee not a live cd) mount /dev/hdb1 on / type ext3 (rw) none on /proc type proc (rw) none on /proc/bus/usb type usbdevfs (rw) none on /dev/pts type devpts (rw,mode=0620) /dev/hdb7 on /home type ext3 (rw) /dev/hda1 on /mnt/win_c type ntfs (ro,iocharset=iso8859-1) /dev/hdb5 on /mnt/win_c2 type ntfs (ro,iocharset=iso8859-1) /dev/hda5 on /mnt/win_d type ntfs (ro,iocharset=iso8859-1) gehidore 04-10-2004, 04:33 PM i remember seeing something under the kernel config that says if you see this or similar error hda: set_multmode: status=0x51 { DriveReady SeekComplete Error } hda: set_multmode: error=0x04 { DriveStatusError } then enable this. device Drivers>ata/atapi/mfm/rll support>include ide/ata-2 disk support> usemulti-mode by default> not sure if this actualy is relevent to your problem but figured i throw my 2 cents in justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved. |