• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

how to make linux see new partition

Vad3r

Senior member
I've added two new partitions with PM unders WinXP. I don't see them listed under mandrake 10. One is NTFS and one is FAT32, I really only care about using the FAT32.
Is there something I need to do to get Mandrake to see it ?

thx for any help
 
Mandrake has a GUI tool (diskdrake?) that will enable you to mount the partition under a new name.
you should be able to mount it , say , as /mnt/win without rebooting.

Else do it the *easier* way
as sudo or root:
> fdisk /dev/hdx (x = the disk on which the FAT partition existi)
type 'p' at the command to get a list of the available partitions you should see the fFAT partition as a /dev/hdxy (e.g /dev/hda5)
type 'q' to exit fdisk.

as sudo or root, type
>mkdir /mnt/win --> or any other name you wish to call it by)
>mount /dev/hdxy /mnt/win

use a text editor ( I prefer nano, but then I am still a semi-n00b)
>nano -w /etc/fstab
add the information about the new drive
/dev/hdxy /mnt/win vfat defaults 0 0
save the file

*** Too late in the night for me to correct any errors in what I typed (if any)***
 
if you are locked out of any files and want to view them as a regular user, "chmod -R 777 /mnt/dir" will change the permissions accordingly
 
the best way of doing it is
mkdir /mnt/fat32
mkdir /mnt/ntfs
mount -t ntfs /dev/hdxy /mnt/ntfs
mount -t vfat /dev/hdxy /mnt/fat32

you can get the "xy" from going to fdisk or cfdisk and looking at the names of the partitions.
 
thx guys. I've got it working, but can only access it as "root".

chmod -R 777 /mnt/fat32 I did this as root, but still can't access as regular user.

I know it's done correctly, as I can see the files on fat32 as root user.
 
Originally posted by: Vad3r
thx guys. I've got it working, but can only access it as "root".

chmod -R 777 /mnt/fat32 I did this as root, but still can't access as regular user.

I know it's done correctly, as I can see the files on fat32 as root user.

Unmount the drive first (umount /mnt/fat32) and put a line in your /etc/fstab with this info:

/dev/hdxy /mnt/fat32 vfat user,umask=0000 0 0

I think that's the correct format. Just follow what's already there and use common sense. The umask=0000 part just allows all users read, write, and execute priviliges. It's basically a chmod 777 on the entire thing done automatically at mount.

Oh and then mount it after using

mount /mnt/fat32
 
if you are locked out of any files and want to view them as a regular user, "chmod -R 777 /mnt/dir" will change the permissions accordingly

That won't do anything because vfat doesn't support permissions, you have to use the mount options that silverpig mentioned to have the Linux VFS layer emulate the permissions you want.
 
Back
Top