Best way to format a new USB drive

Forum rules
Before you post please read this
dave8671
Level 2
Level 2
Posts: 60
Joined: Sat Jul 23, 2016 7:04 pm

Best way to format a new USB drive

Postby dave8671 » Sun Jan 08, 2017 11:32 am

I purchased a new My Passport Ultra a few days ago. I formatted it as ex4 since this will be a backup only for my Linux systems. I been using clonezilla to image the primary drive. Well I go thought the steps of selecting the source and the backup location the new drive called backup. For some reason the image always ends up in the root directory with root access. I have done this twice with the new version of clonezilla the drive path is

/media/main/backup <-- is this correct path?

All backup is only root accessible on this drive. I am wondering what I did wrong if anything?. I know this has one
USB 2.0 connection but how do I find out which one it is on the laptop? once I find it I am going to mark it. Maybe I have to permissions wrong?


Code: Select all

Bus 002 Device 002: ID 1058:259b Western Digital Technologies, Inc.
[b]Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub[/b]
Bus 008 Device 002: ID 17ef:1003 Lenovo Integrated Smart Card Reader
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[b]Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub[/b]
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub







thanks

User avatar
austin.texas
Level 20
Level 20
Posts: 11696
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Best way to format a new USB drive

Postby austin.texas » Sun Jan 08, 2017 11:54 am

If you want to verify the mount point for the drive, run the command:

Code: Select all

lsblk -f

/media/main/backup should be correct.

If you want to change ownership of everything on the drive to yourself, do:

Code: Select all

sudo chown -R $USER:$USER /media/main/backup
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

dave8671
Level 2
Level 2
Posts: 60
Joined: Sat Jul 23, 2016 7:04 pm

Re: Best way to format a new USB drive

Postby dave8671 » Sun Jan 08, 2017 4:28 pm

I checked the mount point which was

Code: Select all

sdb                                                       
└─sdb1 ext4   backup 510c86a8-fdd0-4fb9-bd79-a5f528a0ac6b /media/main/backup


All seems correct above.

When I change the ownership do i use main which is my user account like

sudo chown -R $MAIN:$MAIN /media/main/backup

Or keep it as
sudo chown -R $USER:$USER /media/main/backup

I still am learning this

dave8671
Level 2
Level 2
Posts: 60
Joined: Sat Jul 23, 2016 7:04 pm

Re: Best way to format a new USB drive

Postby dave8671 » Sun Jan 08, 2017 9:40 pm

Ok gotta

User avatar
austin.texas
Level 20
Level 20
Posts: 11696
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Best way to format a new USB drive

Postby austin.texas » Mon Jan 09, 2017 12:55 am

Just $USER:$USER
Don't change it to anything else.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017

dave8671
Level 2
Level 2
Posts: 60
Joined: Sat Jul 23, 2016 7:04 pm

Re: Best way to format a new USB drive

Postby dave8671 » Thu Jul 27, 2017 7:23 pm

Sorry this took long I had personal issues, I perform the command and it worked of course. I do have a question about my desktop with mint.

I have a SATA backup drive as a slave in this system which has the same issue its owned by root. would this same command work for this issue or would it need a tweak?

Thanks

User avatar
austin.texas
Level 20
Level 20
Posts: 11696
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Best way to format a new USB drive

Postby austin.texas » Thu Jul 27, 2017 11:31 pm

Yes, it is the same thing.
See

Code: Select all

man chown
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2017


Return to “Mounting Partitions”