LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   DD-Tool - No Write Permissions on USB-Drive (https://www.linuxquestions.org/questions/linux-software-2/dd-tool-no-write-permissions-on-usb-drive-4175651959/)

Teso 04-11-2019 11:19 AM

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?

szboardstretcher 04-11-2019 11:33 AM

Mount the USB drive as read/write. If you need more info than that then share your Distro and Version.

freemedia2018 04-11-2019 11:38 AM

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.

szboardstretcher 04-11-2019 11:40 AM

Quote:

Originally Posted by freemedia2018 (Post 5983773)
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.

Teso 04-11-2019 11:45 AM

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


szboardstretcher 04-11-2019 11:55 AM

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/

Teso 04-11-2019 12:10 PM

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.

michaelk 04-11-2019 12:42 PM

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.

freemedia2018 04-11-2019 01:20 PM

Quote:

Originally Posted by szboardstretcher (Post 5983775)
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.

Teso 04-11-2019 02:05 PM

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.


All times are GMT -5. The time now is 12:56 AM.