LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2019, 12:19 PM   #1
Teso
Member
 
Registered: Apr 2019
Posts: 45

Rep: Reputation: Disabled
Question DD-Tool - No Write Permissions on USB-Drive


H!@all

I've copy'd an *.iso file with the DD-Tool to a USB-Drive. Now i want to edit a file on the USB-Drive and have no permissions to do that.
I've tried it as User and as Root but have no write permission, only read permission (USER/ROOT Permission denied).

Code:
dd bs=4M if=/Path/To/File/*.iso of=/dev/sdX status=progress
How do i get permissions to edit files on this Drive?
 
Old 04-11-2019, 12:33 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Mount the USB drive as read/write. If you need more info than that then share your Distro and Version.
 
Old 04-11-2019, 12:38 PM   #3
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 216

Rep: Reputation: 207Reputation: 207Reputation: 207
Copy the entire USB immediately.

Unexpected Read-only permissions on a USB often point to a quickly failing stick.

It's possible you mounted it wrong, but how many times have you managed to mount it wrong previously? Copy, then diagnose.
 
Old 04-11-2019, 12:40 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Quote:
Originally Posted by freemedia2018 View Post
Copy the entire USB immediately.

Unexpected Read-only permissions on a USB often point to a quickly failing stick.

It's possible you mounted it wrong, but how many times have you managed to mount it wrong previously? Copy, then diagnose.

Meh. He has an ISO.
 
Old 04-11-2019, 12:45 PM   #5
Teso
Member
 
Registered: Apr 2019
Posts: 45

Original Poster
Rep: Reputation: Disabled
Am I doing something wrong?
Code:
# mount -w /dev/sdc1 /mnt/usb-drive/
mount: /mnt/usb-drive: /dev/sdc1 is write-protected but explicit read-write mode requested.
---EDIT---

Code:
mount -wav /dev/sdc /mnt/usb-drive/
/                        : ignored
/boot/efi                : already mounted
none                     : ignored

Last edited by Teso; 04-11-2019 at 12:54 PM.
 
Old 04-11-2019, 12:55 PM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Well... That really seems like you have a USB drive/Sd card with a toggle on it for read only mode. Its like a little tab that you can move. Sort of like an old 3.5 floppy.

https://www.techadvisor.co.uk/how-to...n-usb-3633096/
 
Old 04-11-2019, 01:10 PM   #7
Teso
Member
 
Registered: Apr 2019
Posts: 45

Original Poster
Rep: Reputation: Disabled
It's a SanDisk Cruzer Blade 16GB

---EDIT---

When I use Rufus on Windows i have full access to the USB-Drive (rede and write).
The USB-Drive is not the problem.

Last edited by Teso; 04-11-2019 at 01:18 PM.
 
Old 04-11-2019, 01:42 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,416

Rep: Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103Reputation: 3103
Quote:
Meh. He has an ISO.
I agree. But I could be wrong...

As I understand the process a bootable USB drive created with Rufus is built on a FAT32/NTFS filesystem. The files are extracted and a boot loader installed. No problem writing to the USB drive.

The dd command copies byte for byte an ISO hybrid image file to the USB drive. By definition an ISO file is read only. Although there are live systems with persistence they usually have a casper-rw file or a separate partition but not the same as editing the system files.
 
Old 04-11-2019, 02:20 PM   #9
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 216

Rep: Reputation: 207Reputation: 207Reputation: 207
Quote:
Originally Posted by szboardstretcher View Post
Meh. He has an ISO.
Fair point. Standard advice when USB is not mounting RW, doesn't really apply here. Missed that the first time.
 
Old 04-11-2019, 03:05 PM   #10
Teso
Member
 
Registered: Apr 2019
Posts: 45

Original Poster
Rep: Reputation: Disabled
OK, I created a new "Partition Table" on the USB-Drive, formatted to FAT32 and set the "Flag" to "LBA". Then i just extracted the "IMAGE.iso" file to the USB-Drive, edited the file i wanted to, saved and rebooted the computer.
Now it works, i can boot the IMAGE.iso from the USB-Drive.

But this is not the way it should be, it's like a hAcK and i don't like to hack me own computer.

Last edited by Teso; 04-11-2019 at 03:11 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:30 PM
[SOLVED] Trouble with external USB flash drive write permissions ScrambledLogic Slackware 4 08-04-2015 01:10 AM
[SOLVED] usb drive: cannot remount block device /dev/sdb1 read-write, is write-protected schneidz Linux - Hardware 5 01-06-2015 04:15 PM
Ubuntu 11.10 HELP NO longer have Read Write Permissions on external NTFS USB Drive rstoesser Ubuntu 1 10-25-2011 04:23 PM
read/write,write/write lock with smbclient fails swatidas11 Linux - Networking 1 03-10-2010 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration