 | |
04-21-2008
|
#1 (permalink)
| | Linux Newbie
Join Date: Dec 2007 Location: Provo, UT
Posts: 200
| Change Permissions on slave drive As many of you know, I wiped my XP install and put PCLOS on instead. There was a slave drive in my XP machine that had all my music files saved on it. From PCLOS, I can see the files, but I can't write to the drive or change the contents of the folders, or the folders themselves. I tried changing the permission, but I keep getting an access denied error. I am sure I am not doing this right. Some please teach it to me? Thanks!
__________________
Using Linux since June 2007
Distros: PCLinuxOS
Virtual Machines: OpenGEU-7.10, Workbench
|
| |
04-22-2008
|
#2 (permalink)
| | Linux Newbie
Join Date: Dec 2007 Location: Provo, UT
Posts: 200
| I got to thinking, couldn't I just change the permissions in my fstab? If so, I am not sure what to change. So here's my fstab file-- slave drive=hdb1: Quote:
## fstab created by Livecd-install
none /proc proc defaults 0 0
none /dev/pts devpts mode=0620 0 0
none /proc/bus/usb usbfs defaults 0 0
# /dev/hda1, size=16370172, type=131: Journalised FS: ext3 (primary)
/dev/hda1 / ext3 noatime 1 1
# /dev/hda5, size=8177022, type=130: Linux swap (extended)
/dev/hda5 swap swap defaults 0 0
# /dev/hda6, size=366169482, type=131: Journalised FS: ext3 (extended)
/dev/hda6 /home ext3 noatime 1 2
# /dev/hdb1, size=78156162, type=7: NTFS (primary)
/dev/hdb1 /mnt/win_c ntfs user,exec,ro,auto,nls=utf8,umask=0 0 0
# cdrom: HL-DT-ST GCE-8481B
# /dev/hdc /media/cdrom auto user,exec,ro,noauto 0 0
# cdrom: PIONEER DVD-RW DVR-111D
# /dev/hdd /media/cdrom2 auto user,exec,ro,noauto 0 0
tmpfs /dev/shm tmpfs defaults 0 0
| P.S. Can a mod please correct my typo in the title? Changer should be Changing*** Thanks, it's just driving me nuts.
__________________
Using Linux since June 2007
Distros: PCLinuxOS
Virtual Machines: OpenGEU-7.10, Workbench
|
| |
04-22-2008
|
#3 (permalink)
| | Ghost
Join Date: Jun 2006 Location: Chandigarh, INDIA
Posts: 18,101
| You have to mount partition(s) first. You can edit /etc/fstab file to automount partition(s) as suggested by SkittleLinux18.
Open Terminal/Konsole and execute this Post output here. Quote: |
Originally Posted by SkittleLinux18 P.S. Can a mod please correct my typo in the title? Changer should be Changing*** Thanks, it's just driving me nuts. | Done ! 
__________________ New Users: Read This First If you woke up breathing, Congratulations! You get another chance. |
| |
04-22-2008
|
#4 (permalink)
| | Linux Newbie
Join Date: Dec 2007 Location: Provo, UT
Posts: 200
| Thanks for the edit!!
fdisk -l output: Quote:
Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1019 8185086 83 Linux
/dev/hda2 1020 24321 187173315 5 Extended
/dev/hda5 1020 1528 4088511 82 Linux swap / Solaris
/dev/hda6 1529 24321 183084741 83 Linux
Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4865 39078081 7 HPFS/NTFS
|
__________________
Using Linux since June 2007
Distros: PCLinuxOS
Virtual Machines: OpenGEU-7.10, Workbench
|
| |
04-22-2008
|
#5 (permalink)
| | Ghost
Join Date: Jun 2006 Location: Chandigarh, INDIA
Posts: 18,101
| I dont know if ntfs-3g package is pre-installed in PCLinuxOS or not. Check it using Pavakge Manger. Install it if its not pre-installed. It should be available in default repos.
Edit /etc/fstab : Code: /dev/hdb1 /mnt/win_c ntfs-3g defaults,umask=0 0 0
__________________ New Users: Read This First If you woke up breathing, Congratulations! You get another chance. |
| |
04-22-2008
|
#6 (permalink)
| | Linux Newbie
Join Date: Dec 2007 Location: Provo, UT
Posts: 200
| Quote:
Originally Posted by devils casper I dont know if ntfs-3g package is pre-installed in PCLinuxOS or not. Check it using Pavakge Manger. Install it if its not pre-installed. It should be available in default repos.
Edit /etc/fstab : Code: /dev/hdb1 /mnt/win_c ntfs-3g defaults,umask=0 0 0 | No they weren't installed, probably because this is MiniMe. I had to install a lot of base and core files after the live install. Anyway, packages are there now.
As su, I did and edited the file as you suggested. It didn't change much, though. Here is what my new fstab looks like: Quote:
/dev/hdb1 /mnt/win_c ntfs-3g defaults,umask=0 0 0## fstab created
by Livecd-install
none /proc proc defaults 0 0
none /dev/pts devpts mode=0620 0 0
none /proc/bus/usb usbfs defaults 0 0
# /dev/hda1, size=16370172, type=131: Journalised FS: ext3 (primary)
/dev/hda1 / ext3 noatime 1 1
# /dev/hda5, size=8177022, type=130: Linux swap (extended)
/dev/hda5 swap swap defaults 0 0
# /dev/hda6, size=366169482, type=131: Journalised FS: ext3 (extended)
/dev/hda6 /home ext3 noatime 1 2
# /dev/hdb1, size=78156162, type=7: NTFS (primary)
/dev/hdb1 /mnt/win_c ntfs-3g defaults,umask=0 0 0
# cdrom: HL-DT-ST GCE-8481B
# /dev/hdc /media/cdrom auto user,exec,ro,noauto 0 0
# cdrom: PIONEER DVD-RW DVR-111D
# /dev/hdd /media/cdrom2 auto user,exec,ro,noauto 0 0
tmpfs /dev/shm tmpfs defaults 0 0
| What next buddy? 
__________________
Using Linux since June 2007
Distros: PCLinuxOS
Virtual Machines: OpenGEU-7.10, Workbench
|
| |
04-22-2008
|
#7 (permalink)
| | Ghost
Join Date: Jun 2006 Location: Chandigarh, INDIA
Posts: 18,101
| Quote:
/dev/hdb1 /mnt/win_c ntfs-3g defaults,umask=0 0 0## fstab created
by Livecd-install
# /dev/hdb1, size=78156162, type=7: NTFS (primary)
/dev/hdb1 /mnt/win_c ntfs-3g defaults,umask=0 0 0
| You have two entires of /dev/hdb1 now. Delete one of those and execute mount -a command. You will have write access in /dev/hdb1 ( /mnt/win_c ).
__________________ New Users: Read This First If you woke up breathing, Congratulations! You get another chance. |
| |
04-22-2008
|
#8 (permalink)
| | Linux Newbie
Join Date: Dec 2007 Location: Provo, UT
Posts: 200
| Quote:
Originally Posted by devils casper ....execute mount -a command. | Wow, this is embarrassing. I can't believe I am asking this question. Why is mount -a not working for me? Quote:
[root@localhost Desktop]# mount -a
mount: mount point Livecd-install does not exist
[root@localhost Desktop]# mount -a /etc/fstab
mount: can't find /etc/fstab in /etc/fstab or /etc/mtab
[root@localhost Desktop]# mount -a /dev/hdb1
fuse: mount failed: Device or resource busy
[root@localhost Desktop]# mount -a /mnt/win_c
fuse: mount failed: Device or resource busy
[root@localhost Desktop]#
| Lets definitely keep this post between us. 
__________________
Using Linux since June 2007
Distros: PCLinuxOS
Virtual Machines: OpenGEU-7.10, Workbench
|
| |
04-22-2008
|
#9 (permalink)
| | Ghost
Join Date: Jun 2006 Location: Chandigarh, INDIA
Posts: 18,101
| You must have root privileges to do that. Try these : Or
__________________ New Users: Read This First If you woke up breathing, Congratulations! You get another chance. |
| |
04-23-2008
|
#10 (permalink)
| | Linux Newbie
Join Date: Dec 2007 Location: Provo, UT
Posts: 200
| Quote:
Originally Posted by devils casper You must have root privileges to do that. Try these : Or | If you look above in my last post, I had root when I was executing this command. When I execute the command, I get a message telling me that mount point LiveCD-Install does not exist??? I thought mount -a was for fstab, not LiveCD-Install. So I cd into /etc and execute the command and I get the same error message. So I did mount --help, and this is what shows up: Quote:
[root@localhost etc]# mount -a
mount: mount point Livecd-install does not exist
[root@localhost etc]# mount --help
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
|
__________________
Using Linux since June 2007
Distros: PCLinuxOS
Virtual Machines: OpenGEU-7.10, Workbench
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT. The time now is 07:49 AM. |
| |