LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 02-27-2020, 10:18 AM   #1
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Rep: Reputation: 28
Making a USB write able.


Having problem with this one.

I have a usb I use to install Mint 19.2 and want to make it write able.

I see Google ideas which all appear to say unmount it first

when I do this it disappears from the desktop so I cannot write to it.

Any ideas?

Thanks
 
Old 02-27-2020, 10:35 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,157

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
mount -o remount,rw /dev/sdq1

Replace "sdq1" with the actual name of the USB device.
 
Old 02-27-2020, 11:19 AM   #3
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by smallpond View Post
mount -o remount,rw /dev/sdq1

Replace "sdq1" with the actual name of the USB device.
Sorry does not work it says

cannot remount /dev/sdb1 read-write, is write-protected

When I use diskpart in Windows it does not say it is read only but in Windows it does not recognize the file system so I cannot add anything.

Any ideas
 
Old 02-27-2020, 12:35 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,151
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
What file system is on the usb drive?
If it is an install image then it is probably/likely read only.
Make an .iso of it and mount it looback to read it. Copy the contents to a new directory, make changes, make new iso.

Or if you want to edit it in place look at losetup

Do you still have the .iso that you burned to the usb drive? If so then use that. I don't know what Mint uses. It may use squashfs for the install image. You'll have to unsquash it to edit it.

Look at:
man mount (look at loopback)
man dd (or whatever you want to make an image with)
man losetup
 
Old 02-27-2020, 02:21 PM   #5
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by teckk View Post
What file system is on the usb drive?
If it is an install image then it is probably/likely read only.
Make an .iso of it and mount it looback to read it. Copy the contents to a new directory, make changes, make new iso.

Or if you want to edit it in place look at losetup

Do you still have the .iso that you burned to the usb drive? If so then use that. I don't know what Mint uses. It may use squashfs for the install image. You'll have to unsquash it to edit it.

Look at:
man mount (look at loopback)
man dd (or whatever you want to make an image with)
man losetup
Have made an iso from all the folders then made a bootable usb but then that would not boot

I have unsquashed and edited and resquashed, that is what I am trying to write back deleting first the old squash but cannot delete that or rename.

I just have to make the usb writable to solve this.
 
Old 02-28-2020, 10:05 AM   #6
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by teckk View Post
What file system is on the usb drive?
If it is an install image then it is probably/likely read only.
Make an .iso of it and mount it looback to read it. Copy the contents to a new directory, make changes, make new iso.

Or if you want to edit it in place look at losetup

Do you still have the .iso that you burned to the usb drive? If so then use that. I don't know what Mint uses. It may use squashfs for the install image. You'll have to unsquash it to edit it.

Look at:
man mount (look at loopback)
man dd (or whatever you want to make an image with)
man losetup
Have now found the reason it is iso9660 and that is read only.

I will look for looback and try that

Thanks
 
  


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
How to enable a Hard Disk to read/write to a USB device but disable the USB device to read/write to the hard disk without user permission? ce309 Linux - General 33 05-22-2019 04:30 PM
slackware64 14.1: not able to install LILO to MBR; not able to boot from USB drive. dcsst28 Slackware 1 11-17-2013 09:03 PM
Downloading .iso and making a boot-able usb drive _vaago Linux - Newbie 10 12-04-2011 06:56 PM
read/write,write/write lock with smbclient fails swatidas11 Linux - Networking 1 03-10-2010 12:27 PM
how to make my account on proftpd to be able to see all dirs and able to write. Mouse_103 Linux - Newbie 2 04-02-2003 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 02:38 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