LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-09-2015, 03:01 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
claim back my usb stick


I had trouble getting EFI Ubuntu installed, until I got the 64 bit iso. Now I want my usb stick back. I cannot copy anything to it. gparted cannot help me, it stays ro, I cannot copy anything to it.

gparted asked me if I knew whether it was gpt. I clicked yes, although I wasn't sure.

What where is telling Ubuntu that this stick is read only? I can't see any flags to change.

I thought I could create a 32 bit start up disk. That has always be writeable, but now startup disk creator can't do it, I get

org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):

The owner is Me, but when I try and change the permissions to rw, it says

Sorry, could not change the permissions of Ubuntu 14.04.2 LTS amd64: Error setting permissions: Read-only file system

How to get my stick back??

Last edited by Pedroski; 03-09-2015 at 03:02 AM.
 
Old 03-09-2015, 03:17 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
hi,
I think...you're not the owner of the thing (anymore)...
Some tech background. Say you use the stick on system A, and you have ID 1000, and "oops" the system goes dead, install a new system but...that system assigns you an other ID, say 1002...bamm...
Option (I do that all the time, I have an ext HD that I drag along since some five re-installs and different boxes) is to reassign ownership...
Mount the stick, go into Root mode and use the chown command...
Luck
Thor
 
Old 03-09-2015, 03:55 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
I didn't understand OP post's but is he trying to create new partitions with gparted erasing old ones. And he can't do it.

If so, OP can just write zero's to start of the usb drive.

Code:
dd if=/dev/zero of=/dev/sdx bs=1M count=1
And then try.
 
Old 03-09-2015, 04:04 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
If so, OP can just write zero's to start of the usb drive.
Be carefull to use the RIGHT disk, if there is a spare PC around, do it on THAT one, the danger to write on the main disk is not that remote...just me, rambling...
 
Old 03-09-2015, 04:16 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
One has to see dmesg output carefully after inserting the usb disk to see which block device is associated.
 
Old 03-09-2015, 04:17 AM   #6
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Ok, here is soem output

root@pedro-bedro2:/home/pedro# ls -al /media/pedro/Ubuntu\ 14.04.2\ LTS\ amd64
total 2556
dr-xr-xr-x 1 pedro pedro 2048 2 19 04:11 .
drwxr-x---+ 3 root root 4096 3 9 15:59 ..
-r--r--r-- 1 pedro pedro 134 2 19 04:08 autorun.inf
dr-xr-xr-x 1 pedro pedro 2048 2 19 04:11 boot
dr-xr-xr-x 1 pedro pedro 2048 2 19 04:11 casper
dr-xr-xr-x 1 pedro pedro 2048 2 19 04:11 .disk
dr-xr-xr-x 1 pedro pedro 2048 2 19 04:10 dists
dr-xr-xr-x 1 pedro pedro 2048 2 19 04:11 EFI
dr-xr-xr-x 1 pedro pedro 2048 2 19 04:11 install
dr-xr-xr-x 1 pedro pedro 18432 2 19 04:11 isolinux
-r--r--r-- 1 pedro pedro 21438 2 19 04:11 md5sum.txt
dr-xr-xr-x 1 pedro pedro 2048 2 19 04:10 pics
dr-xr-xr-x 1 pedro pedro 2048 2 19 04:10 pool
dr-xr-xr-x 1 pedro pedro 2048 2 19 04:10 preseed
-r--r--r-- 1 pedro pedro 231 2 19 04:10 README.diskdefines
lr-xr-xr-x 1 pedro pedro 1 2 19 04:10 ubuntu -> .
-r--r--r-- 1 pedro pedro 2551408 4 15 2014 wubi.exe
root@pedro-bedro2:/home/pedro#

And here is some more:

root@pedro-bedro2:/home/pedro# chown root /media/pedro/Ubuntu\ 14.04.2\ LTS\ amd64
chown: changing ownership of /media/pedro/Ubuntu 14.04.2 LTS amd64: Read-only file system

How can I change the owner of a file system that root cannot alter??

I made this boot stick on this computer.
 
Old 03-09-2015, 04:25 AM   #7
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
root@pedro-bedro2:/home/pedro# dd if=/dev/zero of=/dev/sdb bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.0099198 s, 106 MB/s
root@pedro-bedro2:/home/pedro#
 
Old 03-09-2015, 04:26 AM   #8
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Something to do with is being formatted to fit in with EFI firmware boot
 
Old 03-09-2015, 04:33 AM   #9
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Can you now run parted with it now?
 
Old 03-09-2015, 04:46 AM   #10
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
don't know much about computers. Would I have parted? Just entered parted in the terminal, nothing hapened
 
Old 03-09-2015, 04:48 AM   #11
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
I have parted running

I entered select /dev/sdb

Last edited by Pedroski; 03-09-2015 at 04:51 AM.
 
Old 03-09-2015, 05:06 AM   #12
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Don't know what was wrong. I put it in the new laptop, reformatted ok!
 
Old 03-09-2015, 05:31 AM   #13
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411

Quote:
Don't know what was wrong. I put it in the new laptop, reformatted ok!
your laptop????????????????????????????????
 
Old 03-09-2015, 08:58 AM   #14
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Either use parted or gparted.

OP: Did your original problem got solved or not?

Last edited by veerain; 03-09-2015 at 08:59 AM.
 
Old 03-09-2015, 05:23 PM   #15
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
No, not the laptop!

No, problem remains. In the new laptop I could format it using gparted, and give it a label. Just can't use it as it remains ro.
 
  


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
Why do some USB mice claim they're also keyboards? displace Linux - Hardware 8 01-09-2015 05:07 AM
Hauppauge wintv-hvr h006 - dvb-t tuner - usb-stick - hybrid tv stick Xeratul Linux - Hardware 5 12-23-2012 09:47 AM
[SOLVED] How can I use a USB stick to back up my files... I keep getting "root"-related errors OmegaD Linux - Newbie 1 02-10-2012 07:44 PM
Back-up AcerAspireOne fully to a USB stick (so that it is bootable) - any ideas? frank4360 Linux - Laptop and Netbook 2 11-06-2008 11:11 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:11 AM.

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