Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

usb disk insists on being readonly

 
Goto page Previous  1, 2
   Soft32 Home -> Linux2 Arch -> Setup RSS
Next:  what is /dev/shm?  
Author Message
Matt Giwer

External


Since: Jun 08, 2006
Posts: 201



(Msg. 16) Posted: Fri Jul 06, 2007 2:21 pm
Post subject: Re: usb disk insists on being readonly [Login to view extended thread Info.]
Archived from groups: comp>os>linux>setup (more info?)

lalawawa wrote:
> Note that according to fstab, the drive is /dev/sda. According to df
> and /etc/mtab, the drive is /dev/sda1.
> If I do umount /dev/sda1 it complains it's not in fstab. If I do
> umount /dev/sda, it complains it's not in mtab. I'm not sure how to
> deal with this if I am to format the disk.

To format you do not want it mounted. If you try the format program will ask
you if you are stupid. So just issue the command and see what happens.

--
Drug use is a vice. Stealing to pay for drugs is a crime. The cost of drugs
is high because the vice is considered a crime. Is there any sense in this?
-- The Iron Webmaster, 3820
nizkor http://www.giwersworld.org/nizkook/nizkook.phtml
commentary http://www.giwersworld.org/opinion/running.phtml a5
flying saucers http://www.giwersworld.org/flyingsa.html a2
Back to top
Login to vote
lalawawa

External


Since: Jul 04, 2007
Posts: 12



(Msg. 17) Posted: Sat Jul 07, 2007 10:45 am
Post subject: Re: usb disk insists on being readonly [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

OK guys, here's my plan.

Formatting the device is not a very attractive option right now for
two reasons:
- I have two boxes, a windoze box as well as the Ubuntu box that I
have been talking about. I am afraid that if I reformat, it will no
longer be Windoze readable and I will no longer have the option of
putting the drive on my windoze box and reading my backups from there.
- as long as my usb port is 1.1, formatting a 400GB drive at 10MB /
sec will take all day If it takes a few tries to get it right that
will be a disaster.

I only have < 1GB of data that needs backing up. I have a 1GB usb ram
stick that works, I can do a backup to it in a couple minutes. So
this gives me the option of doing risky changes to my machine.

A few days ago, I ordered Ubuntu 7.0 from Amazon, it should show up
any day now. Last night I went to Circuit City and they didn't have
any USB 2.0 boards, so I just ordered one on the internet, it should
show up in a few days. By backing up to my ram stick, I can make both
those upgrades to my box. (I totally will not upgrade my OS without
backing up first. I did a routine backup of SuSE about a year ago and
it wound up screwing up my machine with complete loss of data. So I
no longer am willing to upgrade my OS without backing up first).
Then, since Bill Marcum told me I will have access to ntfs-3g,
hopefully everything will work. If that doesn't solve the problem, I
will then have the option of reformatting the drive at reasonably high
speed.

Bill
Back to top
Login to vote
lalawawa

External


Since: Jul 04, 2007
Posts: 12



(Msg. 18) Posted: Sat Jul 07, 2007 10:54 am
Post subject: Re: usb disk insists on being readonly [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you all very much for your help. I wasn't expecting to get so
much useful advice.
Back to top
Login to vote
Roby

External


Since: Sep 12, 2004
Posts: 84



(Msg. 19) Posted: Sat Jul 28, 2007 4:46 pm
Post subject: Re: usb disk insists on being readonly [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

lalawawa wrote:
(snip)

> I did eventually manage to manually mount the thing in a newly
> created directory /media/st that I created, but it just won't
> cooperate with going there when I tell it to in the fstab. Also,
> every time I reboot, the usb drive comes up wth a different /dev
> directory name. Failing to find the pattern, I wrote scripts based on
> "fdisk -l | grep NTFS" and sed that get the name of the appropriate
> wandering /dev drive and mount/umount it. That will do. I anticipate
> accessing this disk at most once per month for backup.
>

Put a disk label on the usb drive and use it to identify the right device by
putting something like this in /etc/fstab:

/dev/disk/by-label/my_usb_disk /media/st ntfs-3g defaults 0 0

The label is case-sensitive.

Methinks this was all just a ploy to get yourself Vista. Shame on you!!
Back to top
Login to vote
lalawawa

External


Since: Jul 04, 2007
Posts: 12



(Msg. 20) Posted: Sat Aug 11, 2007 4:26 am
Post subject: Re: usb disk insists on being readonly [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jul 28, 9:46 pm, Roby <r....DeleteThis@no-address.net> wrote:
> lalawawa wrote:
>
> Put a disk label on the usb drive and use it to identify the right device by
> putting something like this in /etc/fstab:
>
> /dev/disk/by-label/my_usb_disk /media/st ntfs-3g defaults 0 0
>
> The label is case-sensitive.

OK, sounds great. How do I put a label on the disk?
Back to top
Login to vote
Roby

External


Since: Sep 12, 2004
Posts: 84



(Msg. 21) Posted: Sat Aug 11, 2007 2:49 pm
Post subject: Re: usb disk insists on being readonly [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

lalawawa wrote:

> On Jul 28, 9:46 pm, Roby <r... RemoveThis @no-address.net> wrote:
>> lalawawa wrote:
>>
>> Put a disk label on the usb drive and use it to identify the right device
>> by putting something like this in /etc/fstab:
>>
>> /dev/disk/by-label/my_usb_disk /media/st ntfs-3g defaults 0 0
>>
>> The label is case-sensitive.
>
> OK, sounds great. How do I put a label on the disk?

For ntfs, use ntfslabel (or use windows).
For ext2/3, use either e2label or tune2fs -L.

Or just use a felt-tip marking pen!
Back to top
Login to vote
Matt Giwer

External


Since: Jun 08, 2006
Posts: 201



(Msg. 22) Posted: Sun Aug 12, 2007 3:21 am
Post subject: Re: usb disk insists on being readonly [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Roby wrote:
> lalawawa wrote:
>> On Jul 28, 9:46 pm, Roby <r....DeleteThis@no-address.net> wrote:
>>> lalawawa wrote:
>>> Put a disk label on the usb drive and use it to identify the right device
>>> by putting something like this in /etc/fstab:

>>> /dev/disk/by-label/my_usb_disk /media/st ntfs-3g defaults 0 0
>>>
>>> The label is case-sensitive.
>> OK, sounds great. How do I put a label on the disk?

> For ntfs, use ntfslabel (or use windows).
> For ext2/3, use either e2label or tune2fs -L.

> Or just use a felt-tip marking pen!

Cute but all of those are for labeling the /media/st not for labeling the /dev
which is the suggestion here. So the question here is involve the /dev and I
would like to know about that too if it is possible.

--
An entire cool summer is trumped by a warm day in January if you are a
global melter.
-- The Iron Webmaster, 3836
nizkor http://www.giwersworld.org/nizkook/nizkook.phtml
Blame Israel http://www.ussliberty.org a10
Back to top
Login to vote
Roby

External


Since: Sep 12, 2004
Posts: 84



(Msg. 23) Posted: Sun Aug 12, 2007 11:25 am
Post subject: Re: usb disk insists on being readonly [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Matt Giwer wrote:

> Roby wrote:
>> lalawawa wrote:
>>> On Jul 28, 9:46 pm, Roby <r... DeleteThis @no-address.net> wrote:
>>>> lalawawa wrote:
>>>> Put a disk label on the usb drive and use it to identify the right
>>>> device by putting something like this in /etc/fstab:
>
>>>> /dev/disk/by-label/my_usb_disk /media/st ntfs-3g defaults 0 0
>>>>
>>>> The label is case-sensitive.
>>> OK, sounds great. How do I put a label on the disk?
>
>> For ntfs, use ntfslabel (or use windows).
>> For ext2/3, use either e2label or tune2fs -L.
>
>> Or just use a felt-tip marking pen!
>
> Cute but all of those are for labeling the /media/st not for labeling the
> /dev which is the suggestion here. So the question here is involve the
> /dev and I would like to know about that too if it is possible.
>

All of those do indeed write labels to the physical devices (hard disk,
pen drive, etc.). udev handles the populating of /dev during bootup.
Have a look here:
# ls /dev/disk/by-label
.... then change a label (as root) using the utility of your choice.
Reboot to urge udev to update /dev, then look at the contents
of /dev/disk/by-label again. You'll see the changed label.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Making Files Readonly With a script - My goal is to make all files in my usershare directory readonly if the have not been modified within the last 14 days. ...

mandrake 10 installed OK w/out inserting UN & PW, but now .. - not at ALL sure how to proceed; hour ago I managed to 'dualboot' install mandrake 10 without entering a username and..

Sybase ASE insists on using tls libraries on CentOS4.2 - w.. - G'day all nixers, Having upgraded a RH7.3 server to CentOS 4.2 I am left with a problem getting the Sybase ASE..

Why RH9 install disk ignore my SCSI disk of VMWare ? - I first install RH7.3 in the SCSI disk without any problem. Then I add a new IDE disk to the virtual machine and use..

Too much disk - I know that this is the opposite of what you usually hear, so bear with me. When I recently installed Suse 9.1, I..

disk space - Hello, When I was downloading a big file which was about 500M I got the error message saying that I did not have enoug...
       Soft32 Home -> Linux2 Arch -> Setup All times are: Pacific Time (US & Canada) (change)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]