M
maxim
Guest
Hello everyone.
I have created 4 partitions on my debian wheezy OS in ext4 format using gparted.
Now I'm finding I can't write to the partitions and create files/directories.
I'm guessing this is a 'permissions' issue and am trying to sort this out.
However, I want to configure them simply and neatly on the system.
If I use cat /proc/mounts, I get a list of mounted partitions:
As you can see, it's saying /dev/sda2 is mounted.
But if I use df -h, it tells me /dev/sda2 is unmounted:
As you can see, /dev/sda2 is not listed. So why does 'cat /proc/mounts' seem to show the partition is mounted?
Also, after creating the partitions do I then need to give permissions to each partition because I can't write to them? I have looked at a few tutorials on the net and they always skip the permissions part.
Thank you in advance.
I have created 4 partitions on my debian wheezy OS in ext4 format using gparted.
Now I'm finding I can't write to the partitions and create files/directories.
I'm guessing this is a 'permissions' issue and am trying to sort this out.
However, I want to configure them simply and neatly on the system.
If I use cat /proc/mounts, I get a list of mounted partitions:
Code:
root@debian:/# cat /proc/mounts
/dev/sda6 /mnt/part1 ext4 rw,nosuid,nodev,noexec,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sda7 /mnt/part2 ext4 rw,nosuid,nodev,noexec,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sda8 /mnt/part3 ext4 rw,nosuid,nodev,noexec,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/sda9 /mnt/part4 ext4 rw,nosuid,nodev,noexec,relatime,user_xattr,barrier=1,data=ordered 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
/dev/sda2 /media/dave ext4 rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
As you can see, it's saying /dev/sda2 is mounted.
But if I use df -h, it tells me /dev/sda2 is unmounted:
Code:
root@debian:/# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 39G 8.3G 29G 23% /
udev 10M 0 10M 0% /dev
tmpfs 176M 696K 175M 1% /run
/dev/disk/by-uuid/345ca57e-9947-462f-a828-be2f021e9cf3 39G 8.3G 29G 23% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.2G 220K 1.2G 1% /run/shm
/dev/sda6 5.8G 140M 5.4G 3% /mnt/part1
/dev/sda7 5.8G 140M 5.4G 3% /mnt/part2
/dev/sda8 5.8G 140M 5.4G 3% /mnt/part3
/dev/sda9 11G 154M 9.5G 2% /mnt/part4
As you can see, /dev/sda2 is not listed. So why does 'cat /proc/mounts' seem to show the partition is mounted?
Also, after creating the partitions do I then need to give permissions to each partition because I can't write to them? I have looked at a few tutorials on the net and they always skip the permissions part.
Thank you in advance.