You are not logged in.

#1 2010-01-27 01:12:05

xiaweitang
Member
Registered: 2010-01-03
Posts: 61

Why can't I change files in usb even as root ?!

fdisk -l:
Disk /dev/sdb: 16.1 GB, 16131293184 bytes
255 heads, 63 sectors/track, 1961 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00042930

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1961    15751701    7  HPFS/NTFS
sudo mount /dev/sdb1 /media/usb/
ls /media/ -l:
drwx------ 1 root root 4096 Jan 19 21:02 usb
sudo chmod -R 777 usb
su
cp /home/user/.alias.bash /media/usb/
cp: cannot create regular file `/media/usb/.alias.bash': Permission denied

Offline

#2 2010-01-27 02:54:59

michy99
Member
Registered: 2010-01-23
Posts: 21

Re: Why can't I change files in usb even as root ?!

Make sure you have ntfs-3g installed and then

sudo mount -t ntfs-3g /dev/sdb1 /media/usb

Offline

#3 2010-01-27 12:12:04

samsom
Member
Registered: 2009-07-17
Posts: 88

Re: Why can't I change files in usb even as root ?!

michy99 wrote:

Make sure you have ntfs-3g installed and then

sudo mount -t ntfs-3g /dev/sdb1 /media/usb

Why do you need ntfs-3g for accesing a fat32 partition?
Would it work if he used the vfat option instead of ntfs-3g?
Samsom

Last edited by samsom (2010-01-27 12:14:06)


Samsom

Offline

#4 2010-01-27 13:35:13

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Why can't I change files in usb even as root ?!

samsom wrote:

Why do you need ntfs-3g for accesing a fat32 partition?

It's not a fat32 partition according to the output of fdisk -l.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

Board footer

Powered by FluxBB