LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   HDD Format and Ownership for a Humax (https://www.linuxquestions.org/questions/linux-newbie-8/hdd-format-and-ownership-for-a-humax-4175424553/)

shubbar 08-29-2012 05:03 AM

HDD Format and Ownership for a Humax
 
Hi,
I am trying to connect an external HDD (1TB) to Humax IR2000HD PVR box so I can record the videos, but it needs to format it first to ext2 or ext3 (based on what I've searched). And I am having a problem with the filesystem ownership.

First attempts the box was taking too long in format, so I forced stopped it and did the format with my PC (running Ubuntu) using Disk Utility (created a partition then formatted the partition); file system Ext3 and unchecked Take Ownership. But I could not write to the disk; so I tried fixing that by running the command
Code:

sudo chmod 777 /media/myHDD
But when I connected the HDD, the box wanted to format it again. So I let it.
After the box formatted it, I connected it to my PC and could see the files but cannot make any changes to them.
Now, how can I fix ownership of the HDD file system and keep it working with the Humax box?
Or is the problem with the way I formatted it and not wit the ownership?
And is formatting from Disk Utility any different from running
Code:

sudo mkfs.ext3 /dev/sdb
? [assuming my HDD is sdb]

theNbomr 08-29-2012 08:02 AM

The ownership and permissions are not associated with the filesystem, but rather the mountpoint. You should be able to move any partition freely across systems without change. Only the attached host will dictate who can read/write the device. Files created on the filesystem will have specific ownership and permission attributes, and those will remain associated with the files. When the box formatted the drive, it apparently created some files that it uses for its own purposes, and these will have have been created with ownership and permission attributes that are meaningful to it. You may be able to create a user & group that matches whatever the box used to create the files, and using that UID/GID, or as root, access the files. The files created by the box will not have been created by your Linux host, which probably accounts for the box's insistence to reformat the device.
--- rod.

shubbar 09-06-2012 07:02 AM

Thanks.
The folders on the drive were created/owned by root. So I "sudo mkdir" another one and changed it's ownership to myself to add my files conveniently. May be the box didn't like my format to ext3 because it needed its specific folders to exist.

Anyway, here is the partition information for this external drive formatted by this Humax box:
Code:

sudo fdisk -l /dev/sdb

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 62 sectors/track, 123562 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6bc3ddcb

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              8  1953520063  976760028  83  Linux



All times are GMT -5. The time now is 07:07 PM.