FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-03-2011, 10:50 AM
lina
 
Default How to set up the portable hard drive

On Sat, Sep 3, 2011 at 6:25 PM, Camaleón <noelamac@gmail.com> wrote:
> On Sat, 03 Sep 2011 18:13:58 +0800, lina wrote:
>
>> I don't know how to set up the portable hard drive (external one).
>>
>> I failed to drag (copy) things into it.
>>
>> it showed me,
>> Error opening file '/media/FreeAgent GoFlex Drive/fulltext.pdf':
>> Permission denied
>>
>> but I can drag things out.
>>
>> :/media$ ls -l FreeAgent GoFlex Drive/
>> total 36172
>> -rw------- 1 lina lina * * *170 Jan 11 *2010 Autorun.inf
>> -rw------- 1 lina lina * *65643 Mar 18 *2010 GoFlex.ico
>> -rw------- 2 lina lina 36806329 Feb 16 *2011 Mac Installer.dmg
>> drwx------ 1 lina lina * * * *0 Aug 10 20:01 Seagate
>> -rw------- 1 lina lina * 156312 Jan 16 *2009 Setup.exe
>> drwx------ 1 lina lina * * * *0 Aug 10 20:01 System Volume Information
>> drwx------ 1 lina lina * * 4096 Aug 10 20:01 UserGuides
>
> (...)
>
> Run "mount" and put here the result.

It's surprisingly cool, when I tried to mount it on another computer
which is sid one,

it works, I can copy and paste and also no problems create new folder.

and the mount information is different:

/dev/sdb1 on /media/FreeAgent GoFlex Drive type fuseblk
(rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)

seems I don't need reformate?
>
>> I tried chmod a+x and a+w still not work.
>>
>> and once newly plugged into, it showed as before (unchanged).
>>
>> There are some .dmg and .exe which I do not plan to try and install in
>> respective OS.
>>
>> Can I remove them all?
>
> Those are files for managing the drive unit in windows and mac, I guess.
> They can be drivers and/or backup utilities you are not going to use in
> linux. Make a full copy of all of them so you can safely remove.
>
>> how do I reformat it?
>
> Using gparted, parted, cfdisk... as usual :-)
>
>> Thanks for any suggestions, (no need very intelligent set up, just basic
>> one, so I can use it to backup.)
>
> Then use a most suitable filesystem format, such as ext3/ext4/reiserfs/
> xfs... YMMV.
>
> Greetings,
>
> --
> Camaleón
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/pan.2011.09.03.10.25.18@gmail.com
>
>



--
Best Regards,

lina


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAG9cJm=7vWxsW5yghftsZfPSSofwJzXgB2oycJ9c795yrvosU Q@mail.gmail.com">http://lists.debian.org/CAG9cJm=7vWxsW5yghftsZfPSSofwJzXgB2oycJ9c795yrvosU Q@mail.gmail.com
 
Old 09-03-2011, 11:01 AM
Wolodja Wentland
 
Default How to set up the portable hard drive

On Sat, Sep 03, 2011 at 18:33 +0800, lina wrote:
> > Run "mount" and put here the result.
> /dev/sdb1 on /media/FreeAgent GoFlex Drive type ntfs
> (rw,nosuid,nodev,uid=1000,gid=1000,dmask=0077,fmas k=0177,uhelper=udisks)

Ok, you have a drive with at least one partition (/dev/sdb1) and a NTFS file
system on it.

> >> how do I reformat it?
> >
> > Using gparted, parted, cfdisk... as usual :-)
>
> I have never used above gparted, parted, cfdisk, I will check now.

These programs are used to change the partition layout of your drives, not to
"format" them. The latter typically just means that you create a filesystem on
a already partitioned drive.

Could you give us the output of

# fdisk -l /dev/sda

> >> Thanks for any suggestions, (no need very intelligent set up, just basic
> >> one, so I can use it to backup.)
> >
> > Then use a most suitable filesystem format, such as ext3/ext4/reiserfs/
> > xfs... YMMV.
>
> Which one is the best choice, better can be used both in linux and Mac.

What do you want to use this drive for? How large is it? Do you need to use it
from other operating systems as well? If so: which?

If you want to use this drive only from Debian and the fdisk command above
just lists a single partition I would recommend to create an ext3 or ext4
filesystem on it:

# mkfs.ext3 -L NAME_OF_YOUR_CHOICE /dev/sdb1
or
# mkfs.ext4 -L NAME_OF_YOUR_CHOICE /dev/sdb1

You might have to change the permission of the filesystem if you want to be
able to write as your normal user:

# mkdir /media/blargelbars
# mount /dev/sdb1 /media/blargelbars
# chown YOURUSERlugdev /media/blargelbars
# chmod 770 /media/blargelbars
# umount /media/blargelbars
# rmdir /media/blargelbars

For this to work your user should be a member of the plugdev group, which you
can check by running "groups" as your user. If it is not run "adduser YOURUSER
plugdev" and log out/in. You could also change the chmod command to "chmod
YOURUSER:YOURUSER /media/blargelbars" or "chmod rootlugdev
/media/blargelbars".

If for some reason you already have a directory /media/blargelbars please let
me know as I will invite you for a beer/wine/tea/nous nous/... and notice that
you would have to use another name.
--
Wolodja <babilen@gmail.com>

4096R/CAF14EFC
081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC
 
Old 09-03-2011, 11:04 AM
Wolodja Wentland
 
Default How to set up the portable hard drive

> > On Sat, 03 Sep 2011 18:13:58 +0800, lina wrote:

> It's surprisingly cool, when I tried to mount it on another computer
> which is sid one,
>
> it works, I can copy and paste and also no problems create new folder.
>
> and the mount information is different:
>
> /dev/sdb1 on /media/FreeAgent GoFlex Drive type fuseblk
> (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
>
> seems I don't need reformate?

That just means that NTFS support is already active/configured. If you use
this drive exclusively from Debian and in particular if you need it for
backups I would recommend to use a different filesystem such as ext3 or ext4.

Read the following wiki page for more information on NTFS

http://wiki.debian.org/NTFS
--
Wolodja <babilen@gmail.com>

4096R/CAF14EFC
081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC
 
Old 09-03-2011, 11:09 AM
Camaleón
 
Default How to set up the portable hard drive

On Sat, 03 Sep 2011 18:33:25 +0800, lina wrote:

>> (...)
>>
>> Run "mount" and put here the result.

> /dev/sdb1 on /media/FreeAgent GoFlex Drive type ntfs
> (rw,nosuid,nodev,uid=1000,gid=1000,dmask=0077,fmas k=0177,uhelper=udisks)

It's mounted read-write (rw) with the right user perms (uid,gid) and
dmask,fmask seems to be also good, at least it shoud allow your user
(lina) to manage the disk with no issues.

Weird. What happens if you manually mount the volume with less options?

(as root run)

umount "/media/FreeAgent GoFlex Drive"
mount -t ntfs-3g -o uid=1000,gid=1000 /dev/sdb1 /mnt

It will be mounted under "/mnt" so before running the above commands
ensure there is nothing there. And recheck if pasting operation works as
it should.

>>> how do I reformat it?
>>
>> Using gparted, parted, cfdisk... as usual :-)
>
> I have never used above gparted, parted, cfdisk, I will check now.

They're standard tools for formatting and making partitions in linux.

>>> Thanks for any suggestions, (no need very intelligent set up, just
>>> basic one, so I can use it to backup.)
>>
>> Then use a most suitable filesystem format, such as ext3/ext4/reiserfs/
>> xfs... YMMV.
>
> Which one is the best choice, better can be used both in linux and Mac.

Mac? Hum.. I know very little about that beast but if in doubt and you
care about compatibility and filesystem perms, you can always make
differenet partitions for each system (that is, you can have ntfs in one,
ext3 in other and hfs+ for the mac).

> another question, do you know why my
> System -> Shutdown --> all the characters changed to square, the same
> size hallow square, I just updated the system today.

Yes! I also saw that after updating my wheezy :-)

Dunno why it happened, but it went away after restarting.

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2011.09.03.11.09.04@gmail.com">http://lists.debian.org/pan.2011.09.03.11.09.04@gmail.com
 
Old 09-03-2011, 11:14 AM
lina
 
Default How to set up the portable hard drive

>
> Could you give us the output of
>
> * *# fdisk -l /dev/sda

# fdisk -l /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util
fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x2dae8ac4

Device Boot Start End Blocks Id System
/dev/sda1 1 409639 204819+ ee GPT
Partition 1 does not start on physical sector boundary.
/dev/sda2 409640 156659639 78125000 af HFS / HFS+
/dev/sda3 156659640 156661727 1044 c0 Unknown
/dev/sda4 * 156661728 157110946 224609+ 83 Linux


> What do you want to use this drive for? How large is it? Do you need to use it
> from other operating systems as well? If so: which?

Only for backup.
1TB
Sometimes I guess I may use it in another OS to swatch things, but to
avoid trouble, here I will only focus on debian.

>
> If you want to use this drive only from Debian and the fdisk command above
> just lists a single partition I would recommend to create an ext3 or ext4
> filesystem on it:

# mount
/dev/sda5 on / type ext4 (rw,errors=remount-ro,commit=0)
tmpfs on /lib/init/rw type tmpfs
(rw,nosuid,size=5242880,mode=755,size=5242880,mode =755)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=755,size=10%,mode= 755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /run/shm type tmpfs
(rw,nosuid,nodev,size=20%,mode=1777,size=20%,mode= 1777)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620,gid=5,mode=620)
/dev/sda14 on /backup type ext4 (rw,commit=0)
/dev/sda4 on /boot type ext4 (rw,commit=0)
/dev/sda7 on /home type ext4 (rw,commit=0)
/dev/sda13 on /scratch type ext4 (rw,commit=0)
/dev/sda8 on /tmp type ext4 (rw,commit=0)
/dev/sda9 on /usr type ext4 (rw,commit=0)
/dev/sda10 on /usr/local type ext4 (rw,commit=0)
/dev/sda11 on /var type ext4 (rw,commit=0)
/dev/sda12 on /var/local type ext4 (rw,commit=0)
/dev/sdb1 on /media/FreeAgent GoFlex Drive type ntfs
(rw,nosuid,nodev,uid=1000,gid=1000,dmask=0077,fmas k=0177,uhelper=udisks)

Can I continue with your following mkfs ext4 -L NAME /dev/sdb1?

I am not experienced, so asked lots here, thanks for the patience.

>
> * *# mkfs.ext3 -L NAME_OF_YOUR_CHOICE /dev/sdb1
> or
> * *# mkfs.ext4 -L NAME_OF_YOUR_CHOICE /dev/sdb1
>
> You might have to change the permission of the filesystem if you want to be
> able to write as your normal user:
>
> * *# mkdir /media/blargelbars
> * *# mount /dev/sdb1 /media/blargelbars
> * *# chown YOURUSERlugdev /media/blargelbars
> * *# chmod 770 /media/blargelbars
> * *# umount /media/blargelbars
> * *# rmdir /media/blargelbars
>
> For this to work your user should be a member of the plugdev group, which you
> can check by running "groups" as your user. If it is not run "adduser YOURUSER
> plugdev" and log out/in. You could also change the chmod command to "chmod
> YOURUSER:YOURUSER /media/blargelbars" or "chmod rootlugdev
> /media/blargelbars".
>
> If for some reason you already have a directory /media/blargelbars please let
> me know as I will invite you for a beer/wine/tea/nous nous/... and notice that
> you would have to use another name.
I don't understand this part.
> --
> Wolodja <babilen@gmail.com>
>
> 4096R/CAF14EFC
> 081C B7CD FF04 2BA9 94EA *36B2 8B7F 7D30 CAF1 4EFC
>



--
Best Regards,

lina


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAG9cJmkxQC2FYQQc3jrFW368zL430L95r7GeQuR2Y1ghZxGYQ A@mail.gmail.com">http://lists.debian.org/CAG9cJmkxQC2FYQQc3jrFW368zL430L95r7GeQuR2Y1ghZxGYQ A@mail.gmail.com
 
Old 09-03-2011, 11:27 AM
Camaleón
 
Default How to set up the portable hard drive

El 2011-09-03 a las 19:20 +0800, lina escribió:

(back to list)

> On Sat, Sep 3, 2011 at 7:09 PM, Camaleón <noelamac@gmail.com> wrote:
> > On Sat, 03 Sep 2011 18:33:25 +0800, lina wrote:
> >
> >>> (...)
> >>>
> >>> Run "mount" and put here the result.
> >
> >> /dev/sdb1 on /media/FreeAgent GoFlex Drive type ntfs
> >> (rw,nosuid,nodev,uid=1000,gid=1000,dmask=0077,fmas k=0177,uhelper=udisks)
> >
> > It's mounted read-write (rw) with the right user perms (uid,gid) and
> > dmask,fmask seems to be also good, at least it shoud allow your user
> > (lina) to manage the disk with no issues.
>
> still permission denied.

Yep, that's strange.

> > (as root run)
> >
> > umount "/media/FreeAgent GoFlex Drive"
> > mount -t ntfs-3g -o uid=1000,gid=1000 /dev/sdb1 /mnt
>
> # umount /media/FreeAgent GoFlex Drive/
> # mount -t ntfs-3g -o uid=1000,gid=1000 /dev/sdb1 /mnt
> mount: unknown filesystem type 'ntfs-3g'

(...)

Hum... is this driver not used anymore? :-?

Run:

cat /proc/filesystems

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110903112756.GC4937@stt008.linux.site">http://lists.debian.org/20110903112756.GC4937@stt008.linux.site
 
Old 09-03-2011, 11:48 AM
lina
 
Default How to set up the portable hard drive

I formated it as ext4.

and now no problems.

Sign ...
it's easier than I thought it was.
Getting old is bad, become more careful and more stupid (to me).

Thanks again,

On Sat, Sep 3, 2011 at 7:27 PM, Camaleón <noelamac@gmail.com> wrote:
> El 2011-09-03 a las 19:20 +0800, lina escribió:
>
> (back to list)
>
>> On Sat, Sep 3, 2011 at 7:09 PM, Camaleón <noelamac@gmail.com> wrote:
>> > On Sat, 03 Sep 2011 18:33:25 +0800, lina wrote:
>>
>> >>> (...)
>> >>>
>> >>> Run "mount" and put here the result.
>> >
>> >> /dev/sdb1 on /media/FreeAgent GoFlex Drive type ntfs
>> >> (rw,nosuid,nodev,uid=1000,gid=1000,dmask=0077,fmas k=0177,uhelper=udisks)
>> >
>> > It's mounted read-write (rw) with the right user perms (uid,gid) and
>> > dmask,fmask seems to be also good, at least it shoud allow your user
>> > (lina) to manage the disk with no issues.
>>
>> still permission denied.
>
> Yep, that's strange.
>
>> > (as root run)
>> >
>> > umount "/media/FreeAgent GoFlex Drive"
>> > mount -t ntfs-3g -o uid=1000,gid=1000 /dev/sdb1 /mnt
>>
>> # umount /media/FreeAgent GoFlex Drive/
>> # mount -t ntfs-3g -o uid=1000,gid=1000 /dev/sdb1 /mnt
>> mount: unknown filesystem type 'ntfs-3g'
>
> (...)
>
> Hum... is this driver not used anymore? :-?
>
> Run:
>
> cat /proc/filesystems
>
> Greetings,
>
> --
> Camaleón
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/20110903112756.GC4937@stt008.linux.site
>
>



--
Best Regards,

lina


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAG9cJmk5jw2aNN4LMYJwYvXHkasX9P0C2zyh-ggefgeSSyZkDw@mail.gmail.com">http://lists.debian.org/CAG9cJmk5jw2aNN4LMYJwYvXHkasX9P0C2zyh-ggefgeSSyZkDw@mail.gmail.com
 
Old 09-03-2011, 12:36 PM
Wolodja Wentland
 
Default How to set up the portable hard drive

On Sat, Sep 03, 2011 at 19:14 +0800, lina wrote:
> >
> > Could you give us the output of
> >
> > * *# fdisk -l /dev/sda

Sorry, I meant "fdisk -l /dev/sdb"
--
Wolodja <babilen@gmail.com>

4096R/CAF14EFC
081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC
 
Old 09-03-2011, 12:46 PM
lina
 
Default How to set up the portable hard drive

On Sat, Sep 3, 2011 at 8:36 PM, Wolodja Wentland <babilen@gmail.com> wrote:
> On Sat, Sep 03, 2011 at 19:14 +0800, lina wrote:
>> >
>> > Could you give us the output of
>> >
>> > * *# fdisk -l /dev/sda
>
> Sorry, I meant "fdisk -l /dev/sdb"

# fdisk -l /dev/sdb

Disk /dev/sdb: 1000.2 GB, 1000204885504 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525167 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: 0xa9a5ecc3

Device Boot Start End Blocks Id System
/dev/sdb1 63 1953520127 976760032+ 7 HPFS/NTFS/exFAT


A further question, how do I know the cache of the drive?

Thanks,


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAG9cJm?F-DKaPTSKN7ymJEZ2S_VGk4hPt_dd-OC0wn7rJV_w@mail.gmail.com
 
Old 09-03-2011, 01:00 PM
Wolodja Wentland
 
Default How to set up the portable hard drive

On Sat, Sep 03, 2011 at 20:46 +0800, lina wrote:
> On Sat, Sep 3, 2011 at 8:36 PM, Wolodja Wentland <babilen@gmail.com> wrote:
> > On Sat, Sep 03, 2011 at 19:14 +0800, lina wrote:
> >> >
> >> > Could you give us the output of
> >> >
> >> > * *# fdisk -l /dev/sda
> >
> > Sorry, I meant "fdisk -l /dev/sdb"
>
> # fdisk -l /dev/sdb
>
> Disk /dev/sdb: 1000.2 GB, 1000204885504 bytes
> 255 heads, 63 sectors/track, 121601 cylinders, total 1953525167 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: 0xa9a5ecc3
>
> Device Boot Start End Blocks Id System
> /dev/sdb1 63 1953520127 976760032+ 7 HPFS/NTFS/exFAT

Ok, that is fine. One thing you might want to consider is to create two
partitions on the drive. That would allow you to use the first with an ext3/4
filesystem for Debian and the other with an vfat filesystem for Debian, MS
Windows and OSX.

You can use, cfdisk, fdisk, parted and other programs to partition. cfdisk is
probably easier to user use than fdisk and you can run it with "cfdisk
/dev/sdb" -- Delete the existing partition and create two new (primary) ones.
Something like 950GB for ext4 and the rest for vfat might make sense, but that
depends on your usage.

You can then create the ext3/4 filesystem (on /dev/sdb1) with the commands I
mentioned in my other post and the vfat one with "mkfs.vfat /dev/sdb2". You
find mkfs.vfat in the dosfstools package.
--
Wolodja <babilen@gmail.com>

4096R/CAF14EFC
081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC
 

Thread Tools




All times are GMT. The time now is 07:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org