|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have a usb memory stick which I successfully used for a netinst
several months ago. When I connected it today it was recognized as sg1 but it was not recognized as a block device when I tried to mount it. Returning to the Debian-Installer directions I found I can mount it with the command mount /dev/sda /mnt but only as root. At the moment I just want to store some files and there is plenty of space free so I don't really have a problem. I'm just puzzled as I have an entry in /etc/fstab reading /dev/sda1 /usbkey vfat rw,user,noauto 0 0 and I believe in the past the memory stick was recognized as sda1 and I could mount it as an ordinary user. If using it for netinst has modified it how can I restore the original configuration? Tom -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On 01/25/08 15:05, Thomas H. George wrote: > I have a usb memory stick which I successfully used for a netinst > several months ago. When I connected it today it was recognized as sg1 > but it was not recognized as a block device when I tried to mount it. > Returning to the Debian-Installer directions I found I can mount it > with the command mount /dev/sda /mnt but only as root. At the moment I > just want to store some files and there is plenty of space free so I > don't really have a problem. I'm just puzzled as I have an entry in > /etc/fstab reading /dev/sda1 /usbkey vfat rw,user,noauto 0 0 > and I believe in the past the memory stick was recognized as sda1 and I > could mount it as an ordinary user. If using it for netinst has > modified it how can I restore the original configuration? To install Debian onto the machine that now recognizes it as sg1? - -- Ron Johnson, Jr. Jefferson LA USA "I'm not a vegetarian because I love animals, I'm a vegetarian because I hate vegetables!" unknown -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHmlGDS9HxQb37XmcRAml1AJ9aMBX0nFqz37Y1O1Z3sf 1e3vn0gACfc5J+ 2GpwMtgDfLaXH6p7nAzNBZc= =OjCw -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Fri, Jan 25, 2008 at 03:15:47PM -0600, Ron Johnson wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 01/25/08 15:05, Thomas H. George wrote: > > I have a usb memory stick which I successfully used for a netinst > > several months ago. When I connected it today it was recognized as sg1 > > but it was not recognized as a block device when I tried to mount it. > > Returning to the Debian-Installer directions I found I can mount it > > with the command mount /dev/sda /mnt but only as root. At the moment I > > just want to store some files and there is plenty of space free so I > > don't really have a problem. I'm just puzzled as I have an entry in > > /etc/fstab reading /dev/sda1 /usbkey vfat rw,user,noauto 0 0 > > and I believe in the past the memory stick was recognized as sda1 and I > > could mount it as an ordinary user. If using it for netinst has > > modified it how can I restore the original configuration? > > To install Debian onto the machine that now recognizes it as sg1? > No, just to use it to store data. As it is I can only mount it as root and to just store data I would prefer to mount it as a normal user. > - -- > Ron Johnson, Jr. > Jefferson LA USA > > "I'm not a vegetarian because I love animals, I'm a vegetarian > because I hate vegetables!" > unknown > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFHmlGDS9HxQb37XmcRAml1AJ9aMBX0nFqz37Y1O1Z3sf 1e3vn0gACfc5J+ > 2GpwMtgDfLaXH6p7nAzNBZc= > =OjCw > -----END PGP SIGNATURE----- > > > -- > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org > -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On Fri, Jan 25, 2008 at 04:05:38PM -0500, Thomas H. George wrote:
> I have a usb memory stick which I successfully used for a netinst several > months ago. When I connected it today it was recognized as sg1 but it was > not recognized as a block device when I tried to mount it. well, if the kernel/udev recignized it as /dev/sg1 then your command below won't work because that command tries to mount /dev/sda. > Returning to the Debian-Installer directions I found I can mount it with > the command mount /dev/sda /mnt but only as root. At the moment I just --------------------^^^^^^^^ that won't work with a /dev/sdg* try mount /dev/sdg1 /mnt > want to store some files and there is plenty of space free so I don't > really have a problem. I'm just puzzled as I have an entry in /etc/fstab > /dev/sda1 /usbkey vfat rw,user,noauto 0 0 that also tries to mount /dev/sda1. With your memory stick id'ed as /dev/sdg1, it won't work. > and I believe in > the past the memory stick was recognized as sda1 and I could mount it as an > ordinary user. the 'user' option in the fstab line above allows the user to mount the device. But again, it needs to specify the right device... > If using it for netinst has modified it how can I restore > the original configuration? all the netinst has done is but some files on it, essentially. That doesn't affect how the stick is recognized by the kernel or udev. SOmething else is causing the change to sdg. If you want to revert the stick to it's original, pre-netinst condition, probably you need to just reformat the filesystem. A -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHm0kDaIeIEqwil4YRAgwPAJ42vo5HB6l8SpmOARFcui HEQGbCTwCffpk1 R73TNG4EuLJu4dzrTRvj9kc= =CpzR -----END PGP SIGNATURE----- |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On 01/26/08 08:43, Thomas H. George wrote: > On Fri, Jan 25, 2008 at 03:15:47PM -0600, Ron Johnson wrote: >> On 01/25/08 15:05, Thomas H. George wrote: >>> I have a usb memory stick which I successfully used for a netinst >>> several months ago. When I connected it today it was recognized as sg1 >>> but it was not recognized as a block device when I tried to mount it. >>> Returning to the Debian-Installer directions I found I can mount it >>> with the command mount /dev/sda /mnt but only as root. At the moment I >>> just want to store some files and there is plenty of space free so I >>> don't really have a problem. I'm just puzzled as I have an entry in >>> /etc/fstab reading /dev/sda1 /usbkey vfat rw,user,noauto 0 0 >>> and I believe in the past the memory stick was recognized as sda1 and I >>> could mount it as an ordinary user. If using it for netinst has >>> modified it how can I restore the original configuration? >> >> To install Debian onto the machine that now recognizes it as sg1? >> > No, just to use it to store data. As it is I can only mount it as root > and to just store data I would prefer to mount it as a normal user. > What I mean is: The first sentence of your original mail indicates that *this* exact stick was used to install Debian on *this* exact machine. Is that what you meant to say? - -- Ron Johnson, Jr. Jefferson LA USA "I'm not a vegetarian because I love animals, I'm a vegetarian because I hate vegetables!" unknown -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHm0zNS9HxQb37XmcRAnTJAJ0W+/157wFyZwJk4czA0O3eTyKCfgCeOtER vhlY+mKdQy0KGTUiTL9k5bE= =gegJ -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
Thomas H. George:
> > No, just to use it to store data. As it is I can only mount it as root > and to just store data I would prefer to mount it as a normal user. I still don't understand your problem, but what a user is able to mount is determined by the contents of /etc/fstab. If you want ordinary users to be able to mount a specific filesystem, just add the "user" option: $ grep user /etc/fstab /dev/iriver1 /media/iriver vfat noauto,user,noatime 0 0 /dev/stick1 /media/stick vfat noauto,user,noatime,async,utf8=true 0 0 /dev/sda1 /media/usbdisk auto noauto,user,noatime,async 0 0 /dev/hdc /media/cdrom0 udf,iso9660 user,noauto,ro 0 0 J. -- I frequently find myself at the top of the stairs with absolutely nothing happening in my brain. [Agree] [Disagree] <http://www.slowlydownward.com/NODATA/data_enter2.html> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHm1iG+AfZydWK2zkRAqVoAJ9YHPzufw9cY9SwWf2k0S ZzVfbfXACcDwVn QpKXeROG0XkGSkDkCuarv2A= =UAeu -----END PGP SIGNATURE----- |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
On Sat, Jan 26, 2008 at 06:51:47AM -0800, Andrew Sackville-West wrote:
> all the netinst has done is but some files on it, essentially. That > doesn't affect how the stick is recognized by the kernel or > udev. SOmething else is causing the change to sdg. If you want to > revert the stick to it's original, pre-netinst condition, probably you > need to just reformat the filesystem. And while you're at it, add a label to the filesystem, then mount with LABEL= instead of /dev/xxxx. Doug. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
On Sat, Jan 26, 2008 at 09:07:57AM -0600, Ron Johnson wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 01/26/08 08:43, Thomas H. George wrote: > > On Fri, Jan 25, 2008 at 03:15:47PM -0600, Ron Johnson wrote: > >> On 01/25/08 15:05, Thomas H. George wrote: > >>> I have a usb memory stick which I successfully used for a netinst > >>> several months ago. When I connected it today it was recognized as sg1 > >>> but it was not recognized as a block device when I tried to mount it. > >>> Returning to the Debian-Installer directions I found I can mount it > >>> with the command mount /dev/sda /mnt but only as root. At the moment I > >>> just want to store some files and there is plenty of space free so I > >>> don't really have a problem. I'm just puzzled as I have an entry in > >>> /etc/fstab reading /dev/sda1 /usbkey vfat rw,user,noauto 0 0 > >>> and I believe in the past the memory stick was recognized as sda1 and I > >>> could mount it as an ordinary user. If using it for netinst has > >>> modified it how can I restore the original configuration? > >> > >> To install Debian onto the machine that now recognizes it as sg1? > >> > > No, just to use it to store data. As it is I can only mount it as root > > and to just store data I would prefer to mount it as a normal user. > > > > What I mean is: > The first sentence of your original mail indicates that *this* > exact stick was used to install Debian on *this* exact machine. > > Is that what you meant to say? > No, this stick was prepared for netinst on this machine but used to install debian on another machine. Does this make a difference? > - -- > Ron Johnson, Jr. > Jefferson LA USA > > "I'm not a vegetarian because I love animals, I'm a vegetarian > because I hate vegetables!" > unknown > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFHm0zNS9HxQb37XmcRAnTJAJ0W+/157wFyZwJk4czA0O3eTyKCfgCeOtER > vhlY+mKdQy0KGTUiTL9k5bE= > =gegJ > -----END PGP SIGNATURE----- > > > -- > To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org > -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
On Sat, Jan 26, 2008 at 04:57:58PM +0100, Jochen Schulz wrote:
> Thomas H. George: > > > > No, just to use it to store data. As it is I can only mount it as root > > and to just store data I would prefer to mount it as a normal user. > > I still don't understand your problem, but what a user is able to mount > is determined by the contents of /etc/fstab. > > If you want ordinary users to be able to mount a specific filesystem, > just add the "user" option: > > $ grep user /etc/fstab > /dev/iriver1 /media/iriver vfat noauto,user,noatime 0 0 > /dev/stick1 /media/stick vfat noauto,user,noatime,async,utf8=true 0 0 > /dev/sda1 /media/usbdisk auto noauto,user,noatime,async 0 0 > /dev/hdc /media/cdrom0 udf,iso9660 user,noauto,ro 0 0 > > J. I had a line: /dev/sg1 /usbdrive vfat rw,user,noauto 0 0 in /etc/fstab but when I tried to mount /usbdrive the system responded, "This is not a block device". It was after this that I found that as root I could mount the memory stick with mount /dev/sda /mnt. - Tom > -- > I frequently find myself at the top of the stairs with absolutely > nothing happening in my brain. > [Agree] [Disagree] > <http://www.slowlydownward.com/NODATA/data_enter2.html> -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On 01/27/08 08:14, Thomas H. George wrote: >> On Sat, Jan 26, 2008 at 09:07:57AM -0600, Ron Johnson wrote: >>> On 01/26/08 08:43, Thomas H. George wrote: >>>> On Fri, Jan 25, 2008 at 03:15:47PM -0600, Ron Johnson wrote: >>>>> On 01/25/08 15:05, Thomas H. George wrote: >>>>>> I have a usb memory stick which I successfully used for a netinst >>>>>> several months ago. When I connected it today it was recognized as sg1 >>>>>> but it was not recognized as a block device when I tried to mount it. >>>>>> Returning to the Debian-Installer directions I found I can mount it >>>>>> with the command mount /dev/sda /mnt but only as root. At the moment I >>>>>> just want to store some files and there is plenty of space free so I >>>>>> don't really have a problem. I'm just puzzled as I have an entry in >>>>>> /etc/fstab reading /dev/sda1 /usbkey vfat rw,user,noauto 0 0 >>>>>> and I believe in the past the memory stick was recognized as sda1 and I >>>>>> could mount it as an ordinary user. If using it for netinst has >>>>>> modified it how can I restore the original configuration? >>>>> To install Debian onto the machine that now recognizes it as sg1? >>>>> >>>> No, just to use it to store data. As it is I can only mount it as root >>>> and to just store data I would prefer to mount it as a normal user. >>>> >>> What I mean is: >>> The first sentence of your original mail indicates that *this* >>> exact stick was used to install Debian on *this* exact machine. >>> >>> Is that what you meant to say? > >> No, this stick was prepared for netinst on this machine but used to >> install debian on another machine. Does this make a difference? Hmmm. It shouldn't. Grep /etc/udev/rules.d for "sg". Maybe that will provide a clue. - -- Ron Johnson, Jr. Jefferson LA USA "I'm not a vegetarian because I love animals, I'm a vegetarian because I hate vegetables!" unknown -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHnKZMS9HxQb37XmcRAnhjAKDrZxC8KEofg3mxBe1ko/IWDTNLwgCgw91f iUKE9h2qK+m7sxue4ePmQ7M= =7nvZ -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
On Jan 27, 2008 10:22 PM, Thomas H. George <lists@tomgeorge.info> wrote:
> in /etc/fstab but when I tried to mount /usbdrive the system responded, > "This is not a block device". It was after this that I found that as > root I could mount the memory stick with mount /dev/sda /mnt. - Tom Hi, then try modifying you /etc/fstab to point to /dev/sda and not /dev/sda1. Looking from your post, you can mount /dev/sda and not /dev/sda1, your fstab on the other hand only gives normal permission to mount /dev/sda and not /dev/sda1. It's a little bit puzzling why there is no number, it might be because you meant you mounted /dev/sda1, in which case I'm totally wrong and you can ignore this post entirely. ): Chris -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#12 |
|
Messages: n/a
Hébergeur: |
El vie, 25-01-2008 a las 16:05 -0500, Thomas H. George escribió: > I have a usb memory stick which I successfully used for a netinst > several months ago. When I connected it today it was recognized as sg1 > but it was not recognized as a block device when I tried to mount it. > Returning to the Debian-Installer directions I found I can mount it > with the command mount /dev/sda /mnt but only as root. At the moment I > just want to store some files and there is plenty of space free so I > don't really have a problem. I'm just puzzled as I have an entry in > /etc/fstab reading /dev/sda1 /usbkey vfat rw,user,noauto 0 0 > and I believe in the past the memory stick was recognized as sda1 and I > could mount it as an ordinary user. If using it for netinst has > modified it how can I restore the original configuration? > If you want it to be sda1 instead of sda, try making a partition on it. OTOH, if you want it to be sda1 because you don't want to modify your fstab, you could try using pmount instead of mount. 'aptitude show pmount'. Checkout udev if you want it to have the same name each time you connect it, you can name it whatever you want. -- Gabriel Parrondo GNU/Linux User #404138 GnuPG Public Key ID: BED7BF43 JID: gabrielp@xmpp.us "The only difference between theory and practice is that, in theory, there's no difference between theory and practice." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: GnuPG digital signature iD8DBQBHnL29IOmrXr7Xv0MRArBrAKCFkrttqvdADCoURc9NV8 +7+UHiagCfSNA5 lAG0RJzREe0dxGmWjwiXKeM= =ic9S -----END PGP SIGNATURE----- |
|
|
|
#13 |
|
Messages: n/a
Hébergeur: |
After trying various suggestions I found I was unable to mount the
memory stick at all. I went back to the begining and executed: zcat boot.img.gz > /dev/sda which puts a FAT file system on the memory stick. Next I unplugged and replugged it and it was still recognized as sg1. As root the command mount /dev/sda /mnt worked. Next I added the line: /dev/sda /media/usb1 vfat rw,user,auto 0 0 to /etc/fstab and found that as a normal user the command: mount /media/usb1 worked. Thus my objective of using the memory stick as a normal user is achieved. I don't understand why sg1 and not sda1. For the curious I ran parted with the following result: Script started on Sun 27 Jan 2008 04:41:31 PM EST Dragon:~# parted /dev/sda print Disk /dev/sda: 2080MB Sector size (logical/physical): 512B/512B Partition Table: loop Number Start End Size File system Flags 1 0.00kB 2080MB 2080MB fat16 Information: Don't forget to update /etc/fstab, if necessary. Dragon:~# exit Script done on Sun 27 Jan 2008 04:41:56 PM EST Tom -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#14 |
|
Messages: n/a
Hébergeur: |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On 01/27/08 15:45, Thomas H. George wrote: > After trying various suggestions I found I was unable to mount the > memory stick at all. > > I went back to the begining and executed: > > zcat boot.img.gz > /dev/sda > > which puts a FAT file system on the memory stick. > > Next I unplugged and replugged it and it was still recognized as sg1. > As root the command mount /dev/sda /mnt worked. > > Next I added the line: > > /dev/sda /media/usb1 vfat rw,user,auto 0 0 > > to /etc/fstab and found that as a normal user the command: > > mount /media/usb1 > > worked. Thus my objective of using the memory stick as a normal user is > achieved. > > I don't understand why sg1 and not sda1. For the curious I ran parted > with the following result: > > > Script started on Sun 27 Jan 2008 04:41:31 PM EST > Dragon:~# parted /dev/sda print > > Disk /dev/sda: 2080MB > > Sector size (logical/physical): 512B/512B > > Partition Table: loop > > Number Start End Size File system Flags > > 1 0.00kB 2080MB 2080MB fat16 > > > Information: Don't forget to update /etc/fstab, if necessary. If this is a desktop system running GNOME/KDE/XFCE when you plug the stick in, you shouldn't really have to do any of this. Since you *are* having all this trouble, I guess that implies that you aren't running a DE. - -- Ron Johnson, Jr. Jefferson LA USA "I'm not a vegetarian because I love animals, I'm a vegetarian because I hate vegetables!" unknown -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHnSLhS9HxQb37XmcRAtnLAJ9Pxgu/IN65NNp4CrFwRBl6cVfpQACbBbpc X8AbAf3hotY5qrqKoAEvugk= =TAOq -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#15 |
|
Messages: n/a
Hébergeur: |
Chris Henry:
> > It's a little bit puzzling why there is no number, it might be because > you meant you mounted /dev/sda1, in which case I'm totally wrong and > you can ignore this post entirely. ): It is possible to create a filesystem on the plain device without any partition table. In that case, mounting /dev/sda should work. J. -- I frequently find myself at the top of the stairs with absolutely nothing happening in my brain. [Agree] [Disagree] <http://www.slowlydownward.com/NODATA/data_enter2.html> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHnal9+AfZydWK2zkRAh9wAKCeUIB4zaAwocW46HjeWJ JmCQM6lACglYwg SHzIszJCGNF49QAKdBH6LZg= =JR1r -----END PGP SIGNATURE----- |
|
![]() |
| Outils de la discussion | |
|
|