[SOLVED] Access to other partitions: NTFS and FAT32
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.
I have 2 partitions on the Windows HD that I'd like to access, and another HD also installed in the She-Beast.
How do I mount a drive?
My computer is really screwy, and I think Eric became frustrated trying to help me get this going. At one point, The winderz partition was mounted, but it showed 0 files in the folder.
Eric has been so kind to offer many hours of his time on this, as well as other ailments. I just don't want to bother him with this one anymore. He needs a rest from me!!!
Disk /dev/hda: 20.4 GB, 20416757760 bytes
240 heads, 63 sectors/track, 2637 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x18b418b3
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1219 9215608+ 7 HPFS/NTFS
/dev/hda2 1220 2637 10720080 c W95 FAT32 (LBA)
Disk /dev/hdb: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf740f740
Device Boot Start End Blocks Id System
/dev/hdb1 1 7177 57649221 83 Linux
/dev/hdb2 7178 7390 1710922+ 5 Extended
/dev/hdb5 7178 7390 1710891 82 Linux swap / Solaris
Disk /dev/hdd: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x135cdb28
Device Boot Start End Blocks Id System
/dev/hdd1 1 38913 312568641 7 HPFS/NTFS
GREAT!!! Thank yous!
Now I have access to my music, movies, and porn!
;-D
Will the drives be automatically mounted the next time I start the box?
hdd is constantly changed out with other HDs; I have a dozen of them...
Will Debian recognize the new drive as hdd also? Any foreseen issues with this?
you'd better know what are you really doing. what if we adviced you to rm -fr ~ ? =) or, say, paste an output from execution of an obfuscated perl command that will copy /etc/shadow and encrypt it, then returned?)))
well, to be on-topic, /etc/fstab is a config that is read by kernel on boot, it means all partitions added in there are going to be mounted by kernel, if possible(if they really exist and have valid fs).
--
upd: i used vol_id that returned me an UUID of partition. i too have 3 HDDs, linux won't boot if i use standard method of specifying /dev/sda1 or /dev/sdc1 in /etc/fstab. my current fstab was created by me from an outputs of vol_id in the past, it looks like:
it's simply made by replacing your paths of /dev/hda1 with it's UUID returned from vol_id /dev/hda1
in fact 1-2, 3 and 4 entries here are separate HDDs.
Last edited by Web31337; 12-13-2009 at 09:29 PM.
Reason: UUID
These drives will be automatically mounted at the specified mount points.
Suppose you have a HDD X which is ntfs and you place it where HDD Y [which was FAT32], then you will run into unable to mount problem at boot. But you can always edit your fstab like I showed and mount them accordingly. Also if you wouldn't want to make the change permanent , that is, you would like to just plugin a HDD and mount it and do your work and plug it out. Then use this instead [it will temporarily mount your HD]:
Code:
mount -t ntfs-3g[or vfat incase of fat32] -o rw,users /dev/hda[N] /mount/point
Replace /hdaN accordingly, check your fdisk -l output and it will show where your HDD was plugged.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.