Best way to format a new USB drive

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
dave8671
Level 4
Level 4
Posts: 337
Joined: Sat Jul 23, 2016 7:04 pm

Best way to format a new USB drive

Post by dave8671 »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Best way to format a new USB drive

Post by austin.texas »

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 2018
User avatar
dave8671
Level 4
Level 4
Posts: 337
Joined: Sat Jul 23, 2016 7:04 pm

Re: Best way to format a new USB drive

Post by dave8671 »

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
User avatar
dave8671
Level 4
Level 4
Posts: 337
Joined: Sat Jul 23, 2016 7:04 pm

Re: Best way to format a new USB drive

Post by dave8671 »

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

Re: Best way to format a new USB drive

Post by austin.texas »

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 2018
User avatar
dave8671
Level 4
Level 4
Posts: 337
Joined: Sat Jul 23, 2016 7:04 pm

Re: Best way to format a new USB drive

Post by dave8671 »

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: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Best way to format a new USB drive

Post by austin.texas »

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 2018
Locked

Return to “Storage”