LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-27-2010, 04:39 AM   #1
GRS63
Member
 
Registered: Mar 2009
Posts: 87

Rep: Reputation: 1
hard disk docking from sata drive to USB


I have just been givn a SATA HDD docking station. It takes 3.5" and 2.5" Sata drives of any capacity and provides a USB 2.0 output that can be plugged into a USB poert.
I run Fedora 12 64bit. When I plug the USB cable in the drive mounted in /media/disk

The Hard drive I have pluged in is and 80GB drive, It has an old copy of Fedora 11 on it. When it mounts it says that it is a 200 mB drive only. It has the ext3 fle system on it.

I can not copy any files to the drive I assume there is a permission error

What I am trying to find out is how
1. how do I find and remove the partitions that are on the drive
2. how do I reformat the full drive for the ext3 file system
3. how do I set teh permissions so the user and read and write to it

What I want to do is have the full 80GB available as just normal data file storage that I can add to and subtract from at will.

I also have a Sata drive with ext4 on it so how do I refomat that if I want to

Thanks
 
Old 05-27-2010, 06:19 PM   #2
vigi
Member
 
Registered: May 2009
Location: australia
Distribution: slackware
Posts: 187

Rep: Reputation: 30
Check if you have "Gparted" in your linux system....and read the manual on it. It will do all you need regarding partitioning.
 
Old 05-27-2010, 06:30 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
FYI the default Fedora installation creates two partitions i.e. /boot and an Logical Volume Management (LVM) which contains / and a swap partition. The 200MB is the old /boot. Its a little more involved mounting logical volumes.

As stated gparted would be a good choice since it is a graphical tool.

Make sure you unmount any partition associated with the drives your going to modify.

Last edited by michaelk; 05-27-2010 at 10:00 PM.
 
Old 05-27-2010, 08:44 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Quote:
Originally Posted by GRS63 View Post
What I am trying to find out is how
1. how do I find and remove the partitions that are on the drive
2. how do I reformat the full drive for the ext3 file system
3. how do I set teh permissions so the user and read and write to it
$ cat /proc/partitions

And other options.

# sfdisk -l
# cfdisk -l

Basically they list what you have. 200MB is likely one partition of many.

# cfdisk /dev/sda
(or whatever name / location suits that drive)

Should allow you to delete what's there and allocate something else.

# mkfs.ext3 /dev/sda1

Creates a new filesystem on the /dev/sda1 partition. Change filesystem and device name where appropriate.

# mount -t ext3 /dev/sda1 /mnt/sda1
# mkdir /mnt/sda1/new_partition
# chown owner:group /mnt/sda1/new_partition
Change /etc/fstab to have defaults,user,noauto and whatever other options you want for that device.
# umount /dev/sda1

You cannot change the root partition to user perms on ext3, so they'll always have to work out of a modified directory with appropriate permissions. If it's just one user, you can use user:user on chown. Otherwise use an owner and group that meets your lowest common denominator among users. Or create a new group and put all users in it. Many means to an end.
 
Old 05-27-2010, 09:19 PM   #5
GRS63
Member
 
Registered: Mar 2009
Posts: 87

Original Poster
Rep: Reputation: 1
Thanks for the assistnce. I do not know what I would do without such valuable and appreciated assistance.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
External SATA HARD Drive via USB with chipset jm20329 userbrian Linux - Hardware 1 06-15-2009 07:54 AM
[SOLVED] USB SATA HD Docking Enclosure - AHDDU100F not recognized with Slackware 12.1 mostlyharmless Slackware 1 04-04-2009 06:39 PM
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
hard disk drive reliability (fc/sata) rblampain Linux - Hardware 5 04-15-2007 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration