Problems getting a second hard drive fully functional.
I have added a 160G hbd to my system. [root@pacman mnt]# fdisk /dev/hdb Command (m for help): p Disk /dev/hdb: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 13 104391 83 Linux /dev/hdb2 14 19457 156183930 83 Linux --------------------- As /dev/hdb2 it has 777 privileges. [root@pacman dev]# ls -la /dev/hdb2 brwxrwxrwx 1 root disk 3, 66 Sep 15 18:26 /dev/hdb2 <=== ------------------ Mounted as /mnt/HDB2 it also shows 777 privileges. [root@pacman mnt]# ls -l total 146 drwxr-xr-x 2 root root 4096 Aug 30 22:04 150G drwxr-xr-x 2 root root 4096 Jul 21 2006 cdrom drwxrwxr-x 2 kjones kjones 4096 May 23 2006 fitch01 drwxr-xr-x 2 root root 4096 Sep 4 22:46 HDB drwxr-xr-x 4 root root 1024 Aug 26 23:25 HDB1 drwxrwxrwx 3 root root 4096 Sep 15 21:25 HDB2 <=== ------------------ But I can not make a ordinary directory on it. What am I not doing? [root@pacman mnt]# ls -la /mnt/HDB2 total 60 drwxrwxrwx 3 root root 4096 Sep 15 21:25 . drwxrwxrwx 22 root root 4096 Sep 7 22:37 .. drwxr-xr-x 2 root root 49152 Sep 15 21:25 lost+found [root@pacman mnt]# mkdir -m 777 /mnt/HDB2/PICTURES mkdir: cannot create directory `/mnt/HDB2/PICTURES': Read-only file system [root@pacman mnt]#
On Fri, Sep 16, 2011 at 05:52:43PM +0000, Ken Jones wrote:
As /dev/hdb2 it has 777 privileges.
[root@pacman dev]# ls -la /dev/hdb2 brwxrwxrwx 1 root disk 3, 66 Sep 15 18:26 /dev/hdb2 <===
It is a very bad idea and not necessary at all for the device node to have world-writable permissions. Keep it at 600 or 660 (whatever your other disk devices have).
drwxrwxrwx 3 root root 4096 Sep 15 21:25 HDB2 <=== ------------------ But I can not make a ordinary directory on it. What am I not doing?
It says riht here:
[root@pacman mnt]# mkdir -m 777 /mnt/HDB2/PICTURES mkdir: cannot create directory `/mnt/HDB2/PICTURES': Read-only file system
The filesystem is mounted read-only. If you didn't mount it yourself read-only, the kernel could have changed it to read-only as a precautionary measure if errors were encountered on the filesystem. I suggest you unmount it and check for errors. Check for kernel errors on the device: dmesg|grep hdb Check the filesystem for errors: umount /dev/hdb2 fsck -f /dev/hdb2 If all is well, re-mounting it read-write: mount -o rw /dev/hdb2
On Friday, September 16, 2011 13:52:43 Ken Jones wrote:
As /dev/hdb2 it has 777 privileges. [root@pacman dev]# ls -la /dev/hdb2 brwxrwxrwx 1 root disk 3, 66 Sep 15 18:26 /dev/hdb2 <===
doesnt matter
------------------ Mounted as /mnt/HDB2 it also shows 777 privileges.
[root@pacman mnt]# ls -l drwxrwxrwx 3 root root 4096 Sep 15 21:25 HDB2 <===
------------------ But I can not make a ordinary directory on it. What am I not doing?
what is the `mount` output for that mount point ? is there anything interesting in the `dmesg` log ? -mike
Assuming that the drive has already been partioned with fdisk/cfdisk and formatted with whatever filesystem you choose to put on it, I try the following. when logged in as root: 1) does /etc/fstab properly show the filesystem type of hdb2? if it does not, I would specify the filesystem in the mount command. (mount -t type device dir) 2) Unmount the disk and reinstall the filesystem on the hard drive. Check for errors in the output. 3) check out hdparm, it might be worth a try. On Friday, September 16, 2011 2:13 PM, "Mike Frysinger" <vapier@gentoo.org> wrote:
On Friday, September 16, 2011 13:52:43 Ken Jones wrote:
As /dev/hdb2 it has 777 privileges. [root@pacman dev]# ls -la /dev/hdb2 brwxrwxrwx 1 root disk 3, 66 Sep 15 18:26 /dev/hdb2 <===
doesnt matter
------------------ Mounted as /mnt/HDB2 it also shows 777 privileges.
[root@pacman mnt]# ls -l drwxrwxrwx 3 root root 4096 Sep 15 21:25 HDB2 <===
------------------ But I can not make a ordinary directory on it. What am I not doing?
what is the `mount` output for that mount point ? is there anything interesting in the `dmesg` log ? -mike
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
Email had 1 attachment: + signature.asc 1k (application/pgp-signature) --
kstratton@fastmail.us
participants (4)
-
Chuck Anderson
-
Ken Jones
-
kstratton@fastmail.us
-
Mike Frysinger