Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As above. Mandrake detects the external harddisk connected as a USB device but i cannot access the contents of it . Guys can u teach me how to mount the external harddisk ?
If you don't have a scsi drive then your USB drive is named sda1. So as root do:
Code:
mount /dev/sda1 /mnt/<somedir>
Keep in mind that if the drive has a windows partition you must precede /dev/sda1 with -t vfat or -t ntfs (for fat32 or ntfs partitions) and that the directory <somedir> must exist before mount. If you have other scsi drives then the command dmesg will tell you then device name of your disk.
ok ok it says i can only mount if i am root...
i su to root...but then when i mount it in root...
i can only access the files on the external drive using my root account using the terminal i wanna give access to the drives to my user account hw do i go abt doing that? Any help would be greatly appreciated....
If you want it to mount up as a permanent fixture on your system, and your system is picking it up, in KDE 3.2 you can right click on the desktop and choose new device. Then pick the device from the list, and it will drop an icon on the desktop for that device. Then you can right click on that icon when you need to mount it and choose MOUNT, and it will mount it for you. That's how I run my cd writer when changing cd's in and out.
You can also make sure it always appears as a directory your system can access by adding the device to the file
/etc/fstab
Do a bit of reading about that file before you edit it. Usually you can copy the settings from something else you have mounted that is a similar filesystem to make a new row in the file.
Make sure after you edit fstab that you have an empty line at the end or it will issue a warning during boot.
I have a USB HD which is run in NTFS mode, the reason for this is that I want to be able to read it on any Windows XP box.
My problem is that the disc is Read-only
First: When linux discovers the HD it's mounted as a "fat" partition, which for obvious reasons does not work.
What I did was to unmount the drive, and the mount it this way:
mount -t ntfs /dev/sda1 /mnt/windows
Which makes it possible for root to read the files on the drive.
If i do the mount command I get:
/dev/ide/host0/bus0/target0/lun0/part1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /proc/bus/usb type usbdevfs (rw)
none on /dev type devfs (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,mode=0620)
/dev/ide/host0/bus0/target0/lun0/part6 on /home type ext3 (rw)
none on /mnt/floppy type supermount (rw,sync,dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,codepage=850)
none on /mnt/removable type supermount (rw,dev=/dev/scsi/host1/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,codepage=850)
none on /mnt/removable2 type supermount (rw,dev=/dev/scsi/host0/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,codepage=850)
/dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/windows type ntfs (rw)
What I get from the last line is that the USB HD is mounted as r/w
But I get the message that the file system is "Read-only"
[root@dhcppc0 root]# chgrp users /mnt/windows
chgrp: ændrer gruppe for '/mnt/windows': Read-only file system
[root@dhcppc0 root]# chmod 770 /mnt/windows
chmod: ændrer rettigheder på '/mnt/windows': Read-only file system
I can still only access the /mnt/windows as root, I can still only read files, not write files to the HD
How do I correct this problem?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.